Vim is very useful tool for editing files, especially for techies to edit configuration and code files. There are some useful options for them in vim. You can set them in the vim configuration file vimrc usually found in /etc. Here are some of those options:
syntax on " Turn on syntax highlighting set incsearch " Used for incremental searching set hlsearch " Turns on highlighting for matched search patterns set tabstop=4 " Sets the tab size to 4 set shiftwidth=4 " Sets spaces used for (auto)indent set shiftround " Indent to nearest tabstop set autoindent " Carries over previous indent to the next line
Note: Double quotes (“) are used for comments.
Add a Comment