Guest User

Untitled

a guest
Oct 20th, 2017
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. " +-----------------+
  2. " | MY CUSTOM VIMRC |
  3. " +-----------------+
  4. set nocompatible " be iMproved
  5.  
  6. " PLUGIN MANAGER
  7. " ==============
  8. filetype off " required for Vundle
  9. set rtp+=~/.vim/bundle/Vundle.vim
  10. call vundle#begin()
  11. Plugin 'VundleVim/Vundle.vim'
  12. " > ADD YOUR PLUGINS HERE <
  13.  
  14. Plugin 'scrooloose/nerdtree' " Visual file browser
  15. Plugin 'morhetz/gruvbox' " Guru Theme
  16. Plugin 'flazz/vim-colorschemes' " other themes
  17.  
  18. " > --------------------- <
  19. call vundle#end() " required for Vundle
  20. filetype plugin indent on " required for Vundle
  21.  
  22. " APPEARANCE
  23. " ==========
  24. colorscheme wombat
  25. syntax on
  26. set expandtab
  27. set tabstop=4
  28. set softtabstop=4
  29. set shiftwidth=4
  30. set autoindent
  31. set textwidth=80
  32. set nowrap
  33. set backspace=indent,eol,start
  34. set copyindent
  35. set number
  36. set relativenumber
  37. set showmatch
  38. set ignorecase
  39. set smartcase
  40. set smarttab
  41. set hlsearch
  42. set incsearch
  43. set nobackup
  44. set noswapfile
  45. set history=1000
  46. set undolevels=1000
  47. set title
  48. set visualbell
  49. set noerrorbells
  50. set scrolloff=10
  51. set autoread
  52.  
  53. " FUNCTIONALITIES
  54. " ===============
  55. " \sc calls an English spelling checker
  56. func! SpellChecker()
  57. setlocal textwidth=80
  58. setlocal smartindent
  59. setlocal spell spelllang=en_us
  60. setlocal noexpandtab
  61. endfu
  62. com! SpellCheck call SpellChecker()
  63. nnoremap <leader>sc :SpellCheck<CR>
  64. nnoremap <leader><Esc> :nohlsearch<CR>
  65. " \ev to edit .vimrc
  66. nnoremap <leader>ev :e $MYVIMRC<CR>
  67. " \sv to edit .vimrc
  68. nnoremap <leader>sv :so $MYVIMRC<CR>
  69. " \q to save and quit
  70. nnoremap <leader>q :wqa!<CR>
  71. " F2 to enter Paste Mode
  72. set pastetoggle=<F2>
  73. " Easy window navigation
  74. nnoremap <C-h> <C-w>h
  75. nnoremap <C-j> <C-w>j
  76. nnoremap <C-k> <C-w>k
  77. nnoremap <C-l> <C-w>l
  78. nnoremap j gj
  79. nnoremap k gk
  80.  
  81. " STARTUP
  82. " =======
  83. au VimEnter * NERDTree
  84. au VimEnter * wincmd l
Add Comment
Please, Sign In to add comment