Guest User

Untitled

a guest
May 26th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. source ~/.vim/vimrc
  2.  
  3. " For spaces instead of tabs
  4. set tabstop=4
  5. set softtabstop=4
  6. set shiftwidth=4
  7. set expandtab
  8.  
  9. " Tabs represented as a dot
  10. set listchars=tab:\.\ ,trail:-
  11. set list
  12.  
  13. " Disable word wrap
  14. set nowrap
  15.  
  16. " This highlights the background in a subtle red for text that goes over the 80 " column limit (subtle in GUI mode, anyway - in terminal mode it's less so).
  17. highlight OverLength ctermbg=darkred ctermfg=white guibg=#3F3F3F
  18. match OverLength /\%81v.\+/
  19.  
  20. " Shortcuts
  21. :imap <C-Space> <C-X><C-O>
  22. map th :tabfirst<CR>
  23. map tk :tabnext<CR>
  24. map tj :tabprev<CR>
  25. map tl :tablast<CR>
  26. map td :tabclose<CR>
  27. map te :tabnew<CR>
  28.  
  29. map <leader>p :NERDTreeToggle<CR>
  30. map <leader>c :TagbarToggle<CR>
  31. map <C-z> :GundoToggle<CR>
  32.  
  33. " Easier Searches
  34. set ignorecase
  35. set smartcase
  36.  
  37. colorscheme wombat256
  38.  
  39. let g:ackprg="ack-grep -H --nocolor --nogroup --column"
  40.  
  41. nmap <leader>p :NERDTreeToggle<CR>
  42.  
  43. " GUI options
  44. :set guioptions-=T "remove toolbar
  45.  
  46. " Ignore *.pyc files
  47. let NERDTreeIgnore = ['\.pyc$']
Add Comment
Please, Sign In to add comment