Advertisement
Guest User

My Vimrc

a guest
Mar 29th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 2.91 KB | None | 0 0
  1. """"""""""""""""""""""""""""""""""""""""
  2. " Initialization                       "
  3. """"""""""""""""""""""""""""""""""""""""
  4.  
  5. " Turn on syntax highlighting
  6. syntax on
  7.  
  8. " Turn on 'Filetype Plugins'
  9. filetype on
  10. filetype indent on
  11. filetype plugin on
  12.  
  13. " Make Vim use modern stuff
  14. set nocompatible
  15.  
  16.  
  17. """"""""""""""""""""""""""""""""""""""""
  18. " Custom keybindings                   "
  19. """"""""""""""""""""""""""""""""""""""""
  20.  
  21. " Make going into command mode faster
  22. nnoremap ; :
  23. nnoremap : :!
  24.  
  25. " Quickly reload/edit the vimrc
  26. nnoremap <C-l> :so ~/.vimrc<CR>
  27. nnoremap <C-e> :e ~/.vimrc<CR>
  28.  
  29. " Insert newlines
  30. nnoremap ]<space> o<esc>
  31. nnoremap [<space> O<esc>j
  32.  
  33. " Quickly access blackhole register
  34. nnoremap <leader> "_
  35.  
  36. " Better way to get out of some modes
  37. inoremap jk <esc>
  38.  
  39. " Switch between tabs/buffers
  40. nnoremap <C-n> :bnext<CR>
  41. nnoremap <C-p> :brewind<CR>
  42. nnoremap <C-x> :bdelete<CR>
  43.  
  44.  
  45. """"""""""""""""""""""""""""""""""""""""
  46. " Graphics & Visuals                   "
  47. """"""""""""""""""""""""""""""""""""""""
  48.  
  49. " Make Vim use 256 colors
  50. set term=screen-256color
  51.  
  52. " Set the line numbers
  53. set number
  54. set relativenumber
  55.  
  56. " Make an item list appear when searching
  57. set wildmenu
  58.  
  59. " Make Vim search recursively
  60. set path+=**
  61.  
  62. " Keep cursor in the center of the screen
  63. set scrolloff=999
  64.  
  65. " Tabbing
  66. set tabstop=2
  67. set shiftwidth=2
  68. set expandtab
  69.  
  70.  
  71. """"""""""""""""""""""""""""""""""""""""
  72. " Plugins                              "
  73. """"""""""""""""""""""""""""""""""""""""
  74.  
  75. " Set the runtime path to the Vundle location
  76. set rtp+=~/.vim/bundle/Vundle.vim
  77.  
  78. " Begin the Plugin list
  79. filetype off
  80. call vundle#begin()
  81.  
  82. """"""""""""""""""""""""""""""""""""""""
  83. " Core Plugins to make life awesome    "
  84. """"""""""""""""""""""""""""""""""""""""
  85.  
  86. " Lets Vundle manage Vundle (Required)
  87. Plugin 'VundleVim/Vundle.vim'
  88.  
  89. " Show the bottom bar
  90. Plugin 'vim-airline/vim-airline'
  91. Plugin 'vim-airline/vim-airline-themes'
  92.  
  93. " Github integration with Vim
  94. Plugin 'tpope/vim-fugitive'
  95.  
  96. " Many colorschemes
  97. Plugin 'flazz/vim-colorschemes'
  98.  
  99. " It's syntastic
  100. Plugin 'vim-syntastic/syntastic'
  101.  
  102.  
  103. """"""""""""""""""""""""""""""""""""""""
  104. " Language system specifc plugins      "
  105. """"""""""""""""""""""""""""""""""""""""
  106.  
  107. " Purescript build support
  108. Plugin 'raichoo/purescript-vim'
  109. " Plugin 'FrigoEU/psc-ide-vim'
  110.  
  111. " End the Plugin list
  112. call vundle#end()
  113. filetype on
  114.  
  115.  
  116. """"""""""""""""""""""""""""""""""""""""
  117. " Plugin specific configurations       "
  118. """"""""""""""""""""""""""""""""""""""""
  119.  
  120. " Vim Airline
  121. set laststatus=2
  122. let g:airline#extensions#tabline#enabled = 1
  123. let g:airline_powerline_fonts = 1
  124.  
  125. " Vim colorschemes
  126. colorscheme Tomorrow-Night
  127.  
  128. " Syntastic
  129. set statusline+=%#warningmsg#
  130. set statusline+=%{SyntasticStatuslineFlag()}
  131. set statusline+=%*
  132. let g:syntastic_always_populate_loc_list = 1
  133. let g:syntastic_auto_loc_list = 1
  134. let g:syntastic_check_on_open = 1
  135. let g:syntastic_check_on_wq = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement