|
|
As I learn more about vim, I plan to document the tips and tricks I learn here.
Add the following into your .vimrc file:
set tabstop=4
set shiftwidth=4
set expandtab
:%s/\t/ /g
set spell spelllang=en_us
This is a list of some common commands when using vimdiff:
switch windows
diff obtain, take the other window's differences. Pull the change.
diff put, give the other window our differences. Push the change.
move focus to previous difference.
move focus to next difference.
diff update
get changes from specified window number and place them into current window.
put changes from current window into specified window number.
open folded text
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.
Source: https://foxhop.net/f33d4f88-2f95-11f1-821d-e86a64d24d78/vim-tips-and-tricks
Snapshot: 2026-05-25T22:25:04Z
Generator: Remarkbox 1527ef7