Vim Tips Wiki
We recommend that you log in before editing. This will allow other users to leave you a message about your edit, and will let you track edits via your Watchlist. Creating an account is quick and free.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 21: Line 21:
 
execute currwin . 'wincmd w'
 
execute currwin . 'wincmd w'
 
endfunction
 
endfunction
com! -nargs=+ -complete=command Windo call WinDo(<q-args>)
+
com! -nargs=+ -complete=command Windo call WinDo(<q-args>)
   
 
" Just like Windo, but disable all autocommands for super fast processing.
 
" Just like Windo, but disable all autocommands for super fast processing.
com! -nargs=+ -complete=command Windofast noautocmd call WinDo(<q-args>)
+
com! -nargs=+ -complete=command Windofast noautocmd call WinDo(<q-args>)
   
 
" Just like bufdo, but restore the current buffer when done.
 
" Just like bufdo, but restore the current buffer when done.
Line 32: Line 32:
 
execute 'buffer ' . currBuff
 
execute 'buffer ' . currBuff
 
endfunction
 
endfunction
com! -nargs=+ -complete=command Bufdo call BufDo(<q-args>)
+
com! -nargs=+ -complete=command Bufdo call BufDo(<q-args>)
 
</pre>
 
</pre>
   
Line 64: Line 64:
 
if expand('%') == ''
 
if expand('%') == ''
 
return
 
return
elseif &ro || !&modified
+
elseif &amp;ro || !&amp;modified
 
return
 
return
 
endif
 
endif
Line 76: Line 76:
   
 
==Comments==
 
==Comments==
  +
  +
----
Please note that all contributions to the Vim Tips Wiki are considered to be released under the CC-BY-SA
Cancel Editing help (opens in new window)