Advertisement
Guest User

Untitled

a guest
Jan 29th, 2015
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.54 KB | None | 0 0
  1. set nocompatible " be iMproved, required
  2. filetype off " required
  3.  
  4. """""""""""
  5. " PLUGINS "
  6. """""""""""
  7.  
  8. " set the runtime path to include Vundle and initialize
  9. set rtp+=~/.vim/bundle/Vundle.vim
  10. call vundle#begin()
  11.  
  12. " let Vundle manage Vundle, required
  13. Plugin 'gmarik/Vundle.vim'
  14.  
  15. " Git wrapper
  16. Plugin 'tpope/vim-fugitive'
  17. " Syntax checking
  18. Plugin 'scrooloose/syntastic'
  19. " Fuzzy search
  20. Plugin 'kien/ctrlp.vim'
  21. " Markdown support
  22. Plugin 'godlygeek/tabular'
  23. Plugin 'tpope/vim-markdown'
  24. Plugin 'junegunn/goyo.vim'
  25. Plugin 'amix/vim-zenroom2'
  26. " Use better words
  27. Plugin 'reedes/vim-wordy'
  28. " Get dat sweet ruler
  29. Plugin 'bling/vim-airline'
  30. " tmux
  31. Plugin 'christoomey/vim-tmux-navigator'
  32. " Easy navigation
  33. Plugin 'Lokaltog/vim-easymotion'
  34. " Snipmate and dependencies
  35. Plugin 'MarcWeber/vim-addon-mw-utils'
  36. Plugin 'tomtom/tlib_vim'
  37. Plugin 'garbas/vim-snipmate'
  38. " Sweet undo history
  39. Plugin 'mbbill/undotree'
  40. " Fuzzy autocomplete
  41. Plugin 'Valloric/YouCompleteMe'
  42.  
  43. " Syntax highlighting options
  44. Plugin 'altercation/vim-colors-solarized'
  45. Plugin 'chriskempson/base16-vim'
  46. Plugin 'flazz/vim-colorschemes'
  47. Plugin 'morhetz/gruvbox'
  48. Plugin 'sickill/vim-monokai'
  49.  
  50. " Clojure
  51. Plugin 'vim-scripts/VimClojure'
  52. Plugin 'kien/rainbow_parentheses.vim'
  53.  
  54. " All of your Plugins must be added before the following line
  55. call vundle#end() " required
  56. filetype plugin indent on " required
  57.  
  58. """"""""
  59. " MISC "
  60. """"""""
  61. set ruler
  62. set background=dark
  63. set number
  64. set scrolloff=5 " Keeps cursor 5 lines away from top and bottom
  65. set wildmenu " Autocomplete vim commands
  66. set hid " Maybe deal with double ruler issue?
  67. set mouse=a " Move cursor with mouse
  68.  
  69. set autoindent " Auto indent new lines
  70. set smartindent " Return ending brackets
  71.  
  72. set ignorecase " Ignore case when searching
  73. set incsearch " Search like a browser
  74.  
  75. """"""""""""""""""
  76. " Key remappings "
  77. """"""""""""""""""
  78. " Don't require shift to execute commands from vim`
  79. nnoremap ; :
  80. " Move cursor vertically by wordwrapped line
  81. nnoremap j gj
  82. nnoremap k gk
  83. " Remap Leader key
  84. let mapleader = "\<Space>"
  85. " <Space>o to open a new file
  86. nnoremap <Leader>o :CtrlP<CR>
  87. " <Space>w to save files
  88. nnoremap <Leader>w :w<CR>
  89. " Use system copy/paste
  90. vmap <Leader>y "+y
  91. vmap <Leader>d "+d
  92. nmap <Leader>p "+p
  93. nmap <Leader>P "+P
  94. vmap <Leader>p "+p
  95. vmap <Leader>P "+P
  96. " Sweet distraction free mode
  97. nnoremap <silent> <leader>z :Goyo<cr>
  98. " Remap search keys
  99. map <c-space> /
  100. " Undotree toggle (not ready)
  101. " nnoremap <F5> :UndotreeToggle<cr>
  102. " Become a man
  103. map <Left> <Nop>
  104. map <Right> <Nop>
  105. map <Up> <Nop>
  106. map <Down> <Nop>
  107.  
  108.  
  109. """""""""""""""
  110. " ERROR BELLS "
  111. """""""""""""""
  112. set ruler
  113. set noerrorbells
  114. set novisualbell
  115. set t_vb=
  116. set tm=500
  117. """"""""""""""""""""
  118. " Turn off backups "
  119. """"""""""""""""""""
  120. set nobackup
  121. set nowb
  122. set noswapfile
  123.  
  124. """"""""
  125. " Tabs "
  126. """"""""
  127. set ai "Auto indent
  128. set si "Smart indent
  129. set wrap "Wrap lines
  130. " Use spaces instead of tabs
  131. set expandtab
  132. " Be smart when using tabs ;)
  133. set smarttab
  134. " 1 tab == 2 spaces
  135. set shiftwidth=2
  136. set tabstop=2
  137. " Linebreak on 500 characters
  138. set lbr
  139. set tw=500
  140.  
  141. """""""""""""""
  142. " Status Line "
  143. """""""""""""""
  144. " Always show the status line
  145. set laststatus=2
  146. let g:airline_powerline_fonts = 1
  147.  
  148. let g:airline_theme='powerlineish'
  149. let g:airline_left_sep=''
  150. let g:airline_right_sep=''
  151. let g:airline_section_z=''
  152.  
  153.  
  154. """""""""""
  155. " Clojure "
  156. """""""""""
  157. au VimEnter * RainbowParenthesesToggle
  158. au Syntax * RainbowParenthesesLoadRound
  159. au Syntax * RainbowParenthesesLoadSquare
  160. au Syntax * RainbowParenthesesLoadBraces
  161.  
  162. """"""""""
  163. " SYNTAX "
  164. """"""""""
  165. if !has("gui_running")
  166. colorscheme Tomorrow-Night-Eighties
  167. syntax on
  168. set t_Co=256
  169. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement