aboutsummaryrefslogblamecommitdiff
path: root/vim/autoload/filter.vim
blob: 0a39f23a2d181c8578de63e1d71ff5b786758a2f (plain) (tree)
1
2
3
4
5
6
7



                                                                       
                          

                          
" Run a filter over the entire buffer, but save the window position and
" restore it after doing so
function! filter#Stable(command) abort
  let l:view = winsaveview()
  execute '%!' . a:command
  call winrestview(l:view)
endfunction