Put before the command the number of times you want to repeat the action. And this works with many of vim
commands. It would be:
30p
Put before the command the number of times you want to repeat the action. And this works with many of vim
commands. It would be:
30p
In order to reload .vimrc file in Vim without having to reload Vim:
vim filename
:vs ~/.vimrc
set number
or syntax on
:wq
to save these alterations and close .vimrc file:so $MYVIMRC
or :source ~/.vimrc
In order to undo a change, while in Normal mode, press:
u
This will undo very last action made. Can be used repeatedly to alter several actions.
In order to redo a change, while in Normal mode, press:
<CTRL>-r
To create a vertical split in Vim, type:
:vsp
To create a horizontal split in Vim, type:
:sp
To open a file in a new split, type:
:vsp ~/.vimrc
To make splits in VIM editor wider:
<CTRL>-W + >
To make splits in VIM editor more narrow:
<CTRL>-W + <
To make splits in VIM editor more wide by 30 characters:
:30winc >
OR:
30 + <CTRL>-W + >
To make splits in VIM editor more narrow by 30 characters:
:30winc <
OR:
30 + <CTRL>-W + <