Guest User

Untitled

a guest
May 23rd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. " Use Vim settings, rather than Vi settings
  2. set nocompatible
  3.  
  4. " Use The Pope's awesome pathogen.vim to load plugins
  5. call pathogen#runtime_append_all_bundles()
  6.  
  7. " Automatically detect filetypes
  8. filetype on
  9.  
  10. " Use syntax highlighting
  11. syntax on
  12.  
  13. " Show line numbers
  14. set number
  15. set numberwidth=5
  16.  
  17. " No backup
  18. set nobackup
  19. set nowritebackup
  20.  
  21. " Autoindent and use 2-space tabs
  22. set tabstop=2
  23. set smarttab
  24. set shiftwidth=2
  25. set autoindent
  26. set expandtab
  27.  
  28. " Allow backspacing over everything
  29. set backspace=start,indent,eol
  30.  
  31. " Highlight searches
  32. set hlsearch
  33.  
  34. " No backups
  35. set nobackup
  36. set nowritebackup
  37.  
  38. " Always display the status line
  39. set laststatus=2
  40.  
  41. " Use , as the leader
  42. let mapleader = ","
  43.  
  44. " Get quick blame for any highlighted lines (,b for svn, ,g for git, ,h for hg)
  45. vmap <Leader>b :<C-U>!svn blame <C-R>=expand("%:p") <CR> \| sed -n <C-R>=line("'<") <CR>,<C-R>=line("'>") <CR>p <CR>
  46. vmap <Leader>g :<C-U>!git blame <C-R>=expand("%:p") <CR> \| sed -n <C-R>=line("'<") <CR>,<C-R>=line("'>") <CR>p <CR>
  47. vmap <Leader>h :<C-U>!hg blame -fu <C-R>=expand("%:p") <CR> \| sed -n <C-R>=line("'<") <CR>,<C-R>=line("'>") <CR>p <CR>
  48.  
  49. " Open NERDTree
  50. map <Leader>n :NERDTree <CR>
Add Comment
Please, Sign In to add comment