Guest User

vimrc

a guest
May 5th, 2013
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. syntax on
  2. set background=dark
  3. color jellybeans
  4. set number " line numbers
  5. set hidden
  6. set noautowrite " don't automagically write on :next
  7. set nocompatible " vim, not vi
  8.  
  9. set autoindent " auto/smart indentation
  10. set cindent
  11. set preserveindent
  12. set copyindent
  13. set smarttab " tab and backspace are smart
  14. set tabstop=4 " 4 spaces
  15. set softtabstop=4
  16.  
  17. set shiftwidth=4
  18. set scrolloff=5 " keep at least 5 lines above/below
  19. set sidescrolloff=5 " keep at least 5 lines left/right
  20. set backspace=indent,eol,start
  21. set linebreak
  22. set complete=.,w,b,u,U,t,i,d " do lots of scanning on tab completion
  23. set ttyfast " we have a fast terminal
  24. set noerrorbells " No error bells please
  25. set shell=bash
  26. filetype on " Enable filetype detection
  27. filetype indent on " Enable filetype-specific indenting
  28. filetype plugin on " Enable filetype-specific plugins
  29. let maplocalleader=',' " all my macros start with ,
  30. set laststatus=2
  31.  
  32. " searching
  33. set incsearch " incremental search
  34. set ignorecase " search ignoring case
  35. set hlsearch " highlight the search
  36. set showmatch " show matching bracket
  37. set diffopt=filler,iwhite " ignore all whitespace and sync
  38.  
  39. " spelling
  40. if v:version >= 700
  41. " Enable spell check for text files
  42. autocmd BufNewFile,BufRead *.txt setlocal spell spelllang=en
  43. endif
  44.  
  45. " GUI Stuff
  46. set guioptions-=m "menubar
  47. set guioptions-=T "toolbar
  48. set guioptions-=r
  49. set guioptions-=l
  50. set guioptions-=R
  51. set guioptions-=L
  52. set guioptions-=b
Advertisement
Add Comment
Please, Sign In to add comment