Useful vim options for techies


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.

Advertisements

Ask J

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s