Advertisement
Guest User

Untitled

a guest
Jan 31st, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 0.96 KB | None | 0 0
  1. set nocompatible
  2. filetype off
  3. syntax on
  4.  
  5. set rtp+=~/.vim/bundle/Vundle.vim
  6. call vundle#begin()
  7.  
  8. Plugin 'VundleVim/Vundle.vim'
  9. Plugin 'scrooloose/nerdtree'
  10. Plugin 'easymotion/vim-easymotion'
  11.  
  12. call vundle#end()
  13. filetype plugin indent on
  14.  
  15. "nerdtree tab commands
  16. map <C-n> :NERDTreeToggle<CR>
  17. nnoremap tn :tabnew<CR>
  18. nnoremap tk :tabnext<CR>
  19. nnoremap tj :tabprev<CR>
  20. nnoremap th :tabfirst<CR>
  21. nnoremap tl :tablast<CR>
  22.  
  23. map <C-w> :q<CR>
  24. map <C-s> :w<CR>
  25. map <F6> :setlocal spell! spelllang=en_us<CR>
  26.  
  27. "nerdtree window commands
  28. nnoremap <C-h> <C-w>h
  29. nnoremap <C-j> <C-w>j
  30. nnoremap <C-k> <C-w>k
  31. nnoremap <C-l> <C-w>l
  32.  
  33. "copy and paste
  34. vnoremap <C-c> "*y :let @+=@*<CR>
  35. map <C-p> "+P
  36.  
  37. "git shortcuts
  38. nnoremap gs :!git status<CR>
  39. nnoremap gc :!git commit<CR>
  40. nnoremap gpl :!git pull<CR>
  41. nnoremap gps :!git push<CR>
  42.  
  43. set relativenumber
  44. set number
  45. set autoindent
  46. set expandtab
  47. set shiftwidth=4
  48. set shiftround
  49. set tabstop=4
  50. set history=1000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement