.. contents::
As I learn more about vim, I plan to document the tips and tricks I learn here.
Add the following into your .vimrc file:
.. code-block:: vim
set tabstop=4
set shiftwidth=4
set expandtab
.. code-block:: vim
:%s/\t/ /g
.. code-block:: vim
set spell spelllang=en_us
This is a list of some common commands when using vimdiff:
ctrl w (twice) switch windows
do diff obtain, take the other window’s differences. Pull the change.
dp diff put, give the other window our differences. Push the change.
[c move focus to previous difference.
]c move focus to next difference.
:diffupdate diff update
:diffget
:diffput
zo open folded text
zc close folded text
You should take a look at my vimrc
here <http://bukzor.hopto.org/hgroot/home/file/c0078b4417f2/.vimrc>_.
It solves some common annoyances without changing the way vim works
much.