:g/pattern/normal command
-
Execute a macro store in @a in every line starting with
//
::g/\/\//normal @a
-
Delete every line starting with
//
::g/\/\//normal dd
command | effect |
---|---|
zi | switch folding on or off |
za | toggle current fold open/closed |
zA | toggle current fold recursively |
zR | open all folds |
zM | close all folds |
zv | expand folds to reveal cursor |
zj | move to next fold |
zk | move to previous fold |
:bufdo <command>
:windo <command>
:cdo <command>
- Select where you have to find something.
<ESC>
- Prepend
\%V
to the search:/\%Vpattern
/string1/;/string2
The last executed ex-command is stored in :
register, thus you can execute it through the @:
then @@
.
:windo set scrollbind
- Switch to vertical:
ctrl+w + H
- Switch to horizontal:
ctrl+w + K
:verbose map [keymap]