VIM commands
1 min readSep 2, 2020
highlight search word
# enable
:set hlsearch
# disable
:set nohlsearch
How to make the setting permanent?
type the following command
vim ~/.vimrc
and put the setting in the file
syntax onset tabstop=4 " The width of a TAB is set to 4." Still it is a \t. It is just that" Vim will interpret it to be having" a width of 4.
set shiftwidth=4 " Indents will have a width of 4set softtabstop=4 " Sets the number of columns for a TABset expandtab " Expand TABs to spacesset hlsearch " Enable highlight search
Set line color
set colorcolumn=88
Vim words auto-complete
“The default auto-complete functionality completes the words you type by checking the available terms in the buffer. To use this functionality, Type some words in the file. Next, type a few characters of the word you need to write and press
Ctrl + N
to complete the word automatically. If Vim finds only one match, it will automatically complete the term.” [1]