Skip to content

Instantly share code, notes, and snippets.

@gayanvirajith
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gayanvirajith/b22b4a0d877977605f37 to your computer and use it in GitHub Desktop.
Save gayanvirajith/b22b4a0d877977605f37 to your computer and use it in GitHub Desktop.
Enable soft tabs, ruler in VIM Editor
"------------------------------------------------------------
" To control the number of space characters that will be inserted when the
" Tab key is pressed, set the 'tabstop' option. For example, to insert 4 spaces for a tab
"------------------------------------------------------------
set tabstop=4
"------------------------------------------------------------
" makes the spaces feel like real tabs.
"------------------------------------------------------------
set softtabstop=4
"------------------------------------------------------------
" change the number of space characters inserted for indentation
"------------------------------------------------------------
set shiftwidth=4
"------------------------------------------------------------
" insert space characters whenever the tab key is pressed
"------------------------------------------------------------
set expandtab
"------------------------------------------------------------
" set ruler
" To set the colors in a terminal version of Vim
"------------------------------------------------------------
set colorcolumn=85
highlight ColorColumn ctermbg=DarkGray
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment