- Immediately after searching a pattern with
/usec//eto replace the currently highlighted match. - Refer to
:help pattern-atomsfor some basic info about Vim’s default GREP flavor.[fn:1]
- See
:help key-notationfor key abbreviations
- Quickly open Netrw to the path of the current file:
:E - go to file under cursor:
gf- Go to previous cursor position (in the jumplist):
<C-o> - Go to next cursor position (in the jumplist):
<C-i>
- Go to previous cursor position (in the jumplist):
- In Netrw file tree view, use
gnto change root directory to selected - Change root directory:
:cd path/to/new/root - Clear highlighting till next search:
:nohlsearchor:noh
- Around (whole noun):
<verb> i <noun> - Inside (inner content):
<verb> i <noun>
- Scroll up:
<C-u> - Scroll down:
<C-d> - Go to previous
{:[{ - Go to next
}:]}
[fn:1] /TODO/ Write a note about Vim GREP, referring to this superb article: https://thevaluable.dev/regular-expression-basics-vim-grep/