Rename in several files in vim at once



notes for Rename in several files in vim at once:

:args **/*.txt (projectfolder/subfolder) :set hidden (navigate away without save) :argdo %s/OLDWORD/NEWWORD/ge | update (ge to supress error msg, update to save) :ls :b 4 (to jump to buffer 4) :b tab (really cool with wild menu)

put this in .gvimrc to tab through buffers

set wildchar=<Tab> wildmenu wildmode=full set wildcharm=<C-Z> nnoremap <F10> :b <C-Z> <f10> :b tab



Tags:
Veröffentlicht: 12.2014