Posted in Ubuntu 14/16

Vim: Setting up with .vimrc

I use Vim 6+. I like to have basic things set up on vim to get going. Often though, I do not remember the setting commands. Simple things like syntax highlighting, auto-numbering of file lines, auto indentation, tab expansion and tab width in character spaces.

After installing vim on your POSIX compliant machine, go to your home directory and edit or create the new .vimrc file:

user@machine:~$ cd && vim .vimrc

Below is what I enter to get started:

:set syntax=on
:set number
:set autoindent
:set expandtab
:set shiftwidth=2
:set softtabstop=2

 

Advertisements

Author:

I am a software developer located in the Washington, DC Metro Area.

Leave a Reply

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