daily pastebin goal
70%
SHARE
TWEET

bwayne .vimrc

a guest Jun 10th, 2012 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. " Don't use Ex mode, use Q for formatting
  2. map Q gq
  3.  
  4. " CTRL-U in insert mode deletes a lot.  Use CTRL-G u to first break undo,
  5. " so that you can undo CTRL-U after inserting a line break.
  6. inoremap <C-U> <C-G>u<C-U>
  7.  
  8. set nobackup
  9. set nowritebackup
  10. set nocompatible
  11. set backspace=indent,eol,start
  12. set history=50          " keep 50 lines of command line history
  13. set ruler               " show the cursor position all the time
  14. set showcmd             " display incomplete commands
  15. set incsearch           " do incremental searching
  16. set cursorline
  17. set number
  18. set numberwidth=4
  19. set ignorecase
  20. syntax on
  21. nohlsearch
  22. filetype plugin on
  23.  
  24. colorschem delek
  25.  
  26. " automatically chmod +x shell and python scripts
  27. au BufWritePost *.sh !chmod +x %
  28. au BufWritePost *.csh !chmod +x %
  29. au BufWritePost *.py !chmod +x %
  30.  
  31. " automatic indents, shifts are 4 space soft tabs.
  32. set tabstop=4
  33. set shiftwidth=4
  34. set expandtab
  35. set textwidth=79
  36.  
  37.  
  38. " MinBufWinExplorer
  39. let g:miniBufExplMapWindowNavVim = 1
  40. let g:miniBufExplMapWindowNavArrows = 1
  41. let g:miniBufExplMapCTabSwitchBufs = 1
  42. let g:miniBufExplModSelTarget = 1
  43.  
  44. " Omnicompletion
  45. set ofu=syntaxcompelete#Complete
  46. set completeopt=menuone
  47. autocmd FileType python set omnifunc=pythoncomplete#Complete
  48.  
  49.  
  50. "NerdTree
  51. map <F5> :NERDTreeToggle<CR>
  52.  
  53. "Taglist/Ctags
  54. let Tlist_Ctags_Cmd='~/usr/bin/ctags'
  55. let Tlist_GainFocus_On_ToggleOpen = 1
  56. let Tlist_Close_On_Select = 1
  57. let Tlist_Use_Right_Window = 1
  58. let Tlist_File_Fold_Auto_Close = 1
  59. map <F7> :TlistToggle<CR>
  60.  
  61. "Viewport Controls"
  62. " ie moving between split panes
  63. map <silent>,h <C-w>h
  64. map <silent>,j <C-w>j
  65. map <silent>,k <C-w>k
  66. map <silent>,l <C-w>l
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top