Advertisement
Guest User

Untitled

a guest
Nov 19th, 2013
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 2.42 KB | None | 0 0
  1. set nocompatible               " be iMproved filetype off                   " required!
  2.  
  3. set rtp+=~/.vim/bundle/vundle/
  4. call vundle#rc()
  5.  
  6. " let Vundle manage Vundle
  7. " required!
  8. Bundle 'gmarik/vundle'
  9.  
  10. " My Bundles here:
  11. " original repos on github
  12. Bundle 'altercation/vim-colors-solarized'
  13. Bundle 'tpope/vim-sensible'
  14. Bundle 'tpope/vim-surround'
  15. Bundle 'gregsexton/MatchTag'
  16. Bundle 'jiangmiao/auto-pairs'
  17. Bundle 'elzr/vim-json'
  18. Bundle 'HTML-AutoCloseTag'
  19. "Bundle 'Townk/vim-autoclose'
  20.  
  21. " vim-scripts repos
  22. Bundle 'AutoComplPop'
  23. Bundle 'L9'
  24. Bundle 'FuzzyFinder'
  25. Bundle 'xmledit'
  26. "Bundle 'ctrlp.vim'
  27. "Bundle 'AutoClose'
  28. "Bundle 'AutoClose--Alves'
  29. " --------------- VUNDLE ----------------
  30. "  -------------------------------------
  31.  
  32.  
  33. filetype plugin indent on     " required!
  34. syntax on
  35.  
  36. " Solarized theme
  37. let g:solarized_termtrans=1
  38. set background=dark
  39. let g:solarized_termcolors=256
  40. colorscheme solarized
  41.  
  42. set incsearch
  43. set number
  44. set shiftwidth=2
  45. set tabstop=2
  46. set hls
  47. set timeoutlen=1
  48. set ttimeoutlen=1
  49. set backspace=2
  50.  
  51. " pretty-print JSON files
  52. autocmd BufRead,BufNewFile *.json set filetype=json
  53. autocmd BufRead,BufNewFile *.html set filetype=html
  54. " json.vim is here: http://www.vim.org/scripts/script.php?script_id=1945
  55. "autocmd Syntax json sou ~/.vim/syntax/json.vim
  56. " json_reformat is part of yajl: http://lloyd.github.com/yajl/
  57. "autocmd FileType json set equalprg=json_reformat
  58. "
  59. " prettify for javascript
  60. autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
  61. "au FileType html,xhtml,xml so ~/.vim/bundle/HTML-AutoCloseTag/ftplugin/html_autoclosetag.vim
  62. "au FileType html,xhtml,xml so ~/.vim/bundle/vim-autoclose/plugin/AutoClose.vim
  63.  
  64.  
  65. " Allow saving of files as sudo when I forgot to start vim using sudo.
  66. cmap w!! w !sudo tee > /dev/null %
  67. " autocomplete (' and (" for code
  68. " inoremap [' ['']<Left><Left>
  69. " inoremap [" [""]<Left><Left>
  70. " inoremap (' ('')<Left><Left>
  71. " inoremap (" ("")<Left><Left>
  72.  
  73. let g:Powerline_symbols = 'fancy'
  74.  
  75. "python powerline
  76. set rtp+=$HOME/.local/lib/python2.7/site-packages/powerline/bindings/vim/
  77.  
  78. " Always show statusline
  79. set laststatus=2
  80.  
  81. " mappings
  82. imap <C-Space> <C-x><C-o>
  83. imap <C-@> <C-Space>
  84. map <F2> <Esc>:w<CR>
  85. map <F3> <Esc>:wq<CR>
  86. set pastetoggle=<F5>
  87. map <F6> <Esc>:tabe
  88. map <F7> <Esc>:tabp<CR>
  89. map <F8> <Esc>:tabn<CR>
  90. map <F9> <Esc>:tabc<CR>
  91. "imap <Esc> <Esc><Esc>
  92.  
  93. map Q <Nop>
  94. nnoremap % v%
  95. inoremap <C-e> <End>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement