-
Notifications
You must be signed in to change notification settings - Fork 5
PracticalVim Tip96
Shuai YUAN edited this page May 29, 2015
·
1 revision
Example: find and replace to change each occurrence of "Pragmatic Vim" to "Practical Vim" in each txt file.
- Each match returned by vimgrep is recorded in the quickfix list, and we can browse the results by running `:copen`, which opens the quickfix window.
- qargs.vim
* using qargs.vim
* `:update` saves the file, but only if it has been changed
* the last three commands could be combined into one
* On Vim’s command line, `|` simply stands for a command separator, making it equivalent to the semicolon in the Unix shell.