Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.36 KB | None | 0 0
  1. set nocompatible " be iMproved, required
  2. set hidden
  3. set nobackup
  4. set noswapfile
  5. set list
  6. set listchars=tab:>.,trail:.,extends:#,nbsp:.
  7. set pastetoggle=<F2>
  8. filetype off " required
  9. set ruler
  10. set number
  11. set incsearch
  12. set hlsearch
  13. set autoindent
  14. set smartcase
  15. set showmode " Show the mode we're in
  16. set smarttab " Insert tabs according to shiftwidth
  17. set expandtab " Use 4 spaces as tab
  18. set backspace=indent,eol,start
  19. set formatoptions=cqrt " Formatting options, see :h fo-table
  20. set laststatus=2 " Always display a status line
  21. set shortmess=at " Short messages in statusline
  22. set whichwrap=<,>,h,l " Allow cursor keys and h/l to wrap lines
  23. set termencoding=utf-8 " UTF8 as default encoding
  24. set encoding=utf-8 " ...
  25. set tabstop=4 " Tab options
  26. set shiftwidth=4 " ...
  27. set softtabstop=4 " ...
  28. set scrolloff=30 " Always show 4 lines before/after cursor
  29.  
  30. let mapleader = ','
  31. let g:netrw_liststyle=3
  32. nmap <silent> ,/ :nohlsearch<CR>
  33.  
  34. nnoremap <C-h> <C-w>h
  35. nnoremap <C-j> <C-w>j
  36. nnoremap <C-k> <C-w>k
  37. nnoremap <C-l> <C-w>l
  38.  
  39. " bind K to grep word under cursor
  40. nnoremap K :grep! "\b<C-R><C-W>\b"<CR>:cw<CR>
  41.  
  42. " set the runtime path to include Vundle and initialize
  43. set rtp+=~/.vim/bundle/Vundle.vim
  44. call vundle#begin()
  45. " alternatively, pass a path where Vundle should install plugins
  46. "call vundle#begin('~/some/path/here')
  47.  
  48. " let Vundle manage Vundle, required
  49. Plugin 'gmarik/Vundle.vim'
  50.  
  51. "Syntastic
  52. Plugin 'scrooloose/syntastic'
  53.  
  54. let g:syntastic_check_on_open = 1
  55. let g:syntastic_aggregate_errors = 1
  56.  
  57. "Syntastic HTML Settings
  58.  
  59. "Syntastic Python settings
  60. let g:syntastic_python_checkers = ['flake8']
  61. let g:syntastic_python_flake8_post_args='--ignore=E501,N802,E121,E128,E123'
  62.  
  63. Plugin 'Keithbsmiley/tmux.vim'
  64. Bundle 'lervag/vim-latex'
  65.  
  66. "Vim Peekaboo
  67. Plugin 'junegunn/vim-peekaboo'
  68.  
  69. "Vim-markdown
  70. Plugin 'godlygeek/tabular'
  71. Plugin 'plasticboy/vim-markdown'
  72.  
  73. let g:vim_markdown_frontmatter=1
  74. let g:vim_markdown_folding_disabled=1
  75.  
  76.  
  77. Plugin 'bling/vim-airline'
  78.  
  79. let g:airline_detect_modified=1
  80. let g:airline_powerline_fonts = 1
  81. let g:airline#extensions#branch#enabled = 1
  82. let g:airline#extensions#syntastic#enabled = 1
  83. let g:airline#extensions#tabline#enabled = 1
  84.  
  85. if !exists('g:airline_symbols')
  86. let g:airline_symbols = {}
  87. endif
  88.  
  89. " unicode symbols
  90. let g:airline_left_sep = '»'
  91. let g:airline_left_sep = '▶'
  92. let g:airline_right_sep = '«'
  93. let g:airline_right_sep = '◀'
  94. let g:airline_symbols.linenr = '␊'
  95. let g:airline_symbols.linenr = '␤'
  96. let g:airline_symbols.linenr = '¶'
  97. let g:airline_symbols.branch = '⎇'
  98. let g:airline_symbols.paste = 'ρ'
  99. let g:airline_symbols.paste = 'Þ'
  100. let g:airline_symbols.paste = '∥'
  101. let g:airline_symbols.whitespace = 'Ξ'
  102.  
  103. " powerline symbols
  104. let g:airline_left_sep = ''
  105. let g:airline_left_alt_sep = ''
  106. let g:airline_right_sep = ''
  107. let g:airline_right_alt_sep = ''
  108. let g:airline_symbols.branch = ''
  109. let g:airline_symbols.readonly = ''
  110. let g:airline_symbols.linenr = ''
  111.  
  112. " Tim Pope's Fugitive
  113. Plugin 'tpope/vim-fugitive'
  114. Plugin 'tpope/vim-git'
  115.  
  116. " CtrlP omnifind bar
  117. Plugin 'kien/ctrlp.vim'
  118. let g:ctrlp_match_window = 'bottom,order:ttb'
  119. let g:ctrlp_working_path_mode = 'ra'
  120. let g:ctrlp_extensions = ['mixed', 'line']
  121.  
  122. " The Silver Searcher
  123. if executable('ag')
  124. " Use ag over grep
  125. set grepprg=ag\ --nogroup\ --nocolor
  126.  
  127. " Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
  128. let g:ctrlp_user_command = 'ag %s --nocolor --nogroup -g ""'
  129.  
  130. " ag is fast enough that CtrlP doesn't need to cache
  131. let g:ctrlp_use_caching = 0
  132. endif
  133.  
  134. " Rainbow Parens
  135. Plugin 'kien/rainbow_parentheses.vim'
  136. au VimEnter * RainbowParenthesesToggle
  137. au Syntax * RainbowParenthesesLoadRound
  138. au Syntax * RainbowParenthesesLoadSquare
  139. au Syntax * RainbowParenthesesLoadBraces
  140.  
  141. " EasyMotion: <leader><leader>motion
  142. Plugin 'Lokaltog/vim-easymotion'
  143.  
  144. " Indent Line
  145. Bundle 'Yggdroot/indentLine'
  146.  
  147. " Colorschemes
  148. Plugin 'flazz/vim-colorschemes'
  149. Plugin 'junza/Spink'
  150. Plugin 'altercation/vim-colors-solarized'
  151.  
  152. Plugin 'stephpy/vim-yaml'
  153.  
  154. "Ag.vim
  155. Plugin 'rking/ag.vim'
  156.  
  157. "Screensaver
  158. Plugin 'itchyny/screensaver.vim'
  159.  
  160. "Vim to Haskell
  161. Plugin 'dag/vim2hs'
  162.  
  163. call vundle#end() " required
  164. filetype plugin indent on " required
  165.  
  166. autocmd BufNewFile,BufReadPost *.md set filetype=markdown
  167.  
  168. colorscheme mushroom
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement