Guest User

_common.vim

a guest
Jun 16th, 2014
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 0.61 KB | None | 0 0
  1. " Common options used for code editing
  2.  
  3. " Set colorscheme for code editing
  4. if has('gui_running')
  5.     colorscheme desert
  6. endif
  7.  
  8. " Indentation style
  9. setlocal tabstop=4     "width of hard tabs
  10. setlocal softtabstop=4 "width of soft tabs
  11. setlocal shiftwidth=4  "width of auto indent and >> and <<
  12.  
  13. " Set text width
  14. setlocal textwidth=79
  15. if has('gui_running')
  16.     setlocal colorcolumn=+1 "highlight column at textwidth+1
  17. endif
  18.  
  19. " Display line numbers and set columns to fit
  20. if has('gui_running')
  21.     setlocal number
  22.     setlocal numberwidth=4
  23.     if &columns < 84
  24.         set columns=84
  25.     endif
  26. endif
Advertisement
Add Comment
Please, Sign In to add comment