Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. set hlsearch
  2.  
  3. au WinLeave * set nocursorline nocursorcolumn
  4. au WinEnter * set cursorline cursorcolumn
  5. set cursorline
  6.  
  7. set encoding=utf-8 " The encoding displayed.
  8. set fileencoding=utf-8 " The encoding written to file.
  9.  
  10. "FIXME: why do I have both of these lines? must investigate them:
  11. syntax on
  12. syntax enable
  13.  
  14. "------------------------------------------------------------------
  15. "Solarized Colorscheme Config
  16. "------------------------------------------------------------------
  17. "set background=light
  18. "set background=dark
  19. "colorscheme solarized
  20.  
  21. "set tabs to 4 spaces.
  22. set tabstop=4
  23. set expandtab
  24. set shiftwidth=4
  25.  
  26. "ruby and yaml files are indented by two
  27. autocmd FileType ruby,rdoc,cucumber,yaml set softtabstop=2 tabstop=2 shiftwidth=2
  28.  
  29. "automatically indent
  30. set smartindent
  31. set cindent
  32.  
  33. "show line numbers on the left
  34. set number
  35.  
  36. "case insensitive search
  37. set ignorecase
  38. set smartcase
  39.  
  40. "search the whole build tree for ctags
  41. set tags=tags;/
  42.  
  43. "give me that nice little gutter so i don't make stuff too wide
  44. set formatoptions=qrn1
  45. set colorcolumn=120
  46.  
  47. " smartcase makes it so:
  48. " /copyright " Case insensitive
  49. " /Copyright " Case sensitive
  50. " /copyright\C " Case sensitive
  51. " /Copyright\c " Case insensitive
  52. set smartcase
  53.  
  54. " Do some sweet status line magic!
  55. set statusline=\b%n%m\:\ %f "buffer/filename /modified, e.g. `b3[+]: ~/.vimrc`
  56. set statusline+=\ (%v\,%l/%L) "column/line/total lines, e.g. `(41,144/145)`
  57. set statusline+=%{exists('g:loaded_fugitive')?fugitive#statusline():''}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement