Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set nocompatible " be iMproved filetype off " required!
- set rtp+=~/.vim/bundle/vundle/
- call vundle#rc()
- " let Vundle manage Vundle
- " required!
- Bundle 'gmarik/vundle'
- " My Bundles here:
- " original repos on github
- Bundle 'altercation/vim-colors-solarized'
- Bundle 'tpope/vim-sensible'
- Bundle 'tpope/vim-surround'
- Bundle 'gregsexton/MatchTag'
- Bundle 'jiangmiao/auto-pairs'
- Bundle 'elzr/vim-json'
- Bundle 'HTML-AutoCloseTag'
- "Bundle 'Townk/vim-autoclose'
- " vim-scripts repos
- Bundle 'AutoComplPop'
- Bundle 'L9'
- Bundle 'FuzzyFinder'
- Bundle 'xmledit'
- "Bundle 'ctrlp.vim'
- "Bundle 'AutoClose'
- "Bundle 'AutoClose--Alves'
- " --------------- VUNDLE ----------------
- " -------------------------------------
- filetype plugin indent on " required!
- syntax on
- " Solarized theme
- let g:solarized_termtrans=1
- set background=dark
- let g:solarized_termcolors=256
- colorscheme solarized
- set incsearch
- set number
- set shiftwidth=2
- set tabstop=2
- set hls
- set timeoutlen=1
- set ttimeoutlen=1
- set backspace=2
- " pretty-print JSON files
- autocmd BufRead,BufNewFile *.json set filetype=json
- autocmd BufRead,BufNewFile *.html set filetype=html
- " json.vim is here: http://www.vim.org/scripts/script.php?script_id=1945
- "autocmd Syntax json sou ~/.vim/syntax/json.vim
- " json_reformat is part of yajl: http://lloyd.github.com/yajl/
- "autocmd FileType json set equalprg=json_reformat
- "
- " prettify for javascript
- autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
- "au FileType html,xhtml,xml so ~/.vim/bundle/HTML-AutoCloseTag/ftplugin/html_autoclosetag.vim
- "au FileType html,xhtml,xml so ~/.vim/bundle/vim-autoclose/plugin/AutoClose.vim
- " Allow saving of files as sudo when I forgot to start vim using sudo.
- cmap w!! w !sudo tee > /dev/null %
- " autocomplete (' and (" for code
- " inoremap [' ['']<Left><Left>
- " inoremap [" [""]<Left><Left>
- " inoremap (' ('')<Left><Left>
- " inoremap (" ("")<Left><Left>
- let g:Powerline_symbols = 'fancy'
- "python powerline
- set rtp+=$HOME/.local/lib/python2.7/site-packages/powerline/bindings/vim/
- " Always show statusline
- set laststatus=2
- " mappings
- imap <C-Space> <C-x><C-o>
- imap <C-@> <C-Space>
- map <F2> <Esc>:w<CR>
- map <F3> <Esc>:wq<CR>
- set pastetoggle=<F5>
- map <F6> <Esc>:tabe
- map <F7> <Esc>:tabp<CR>
- map <F8> <Esc>:tabn<CR>
- map <F9> <Esc>:tabc<CR>
- "imap <Esc> <Esc><Esc>
- map Q <Nop>
- nnoremap % v%
- inoremap <C-e> <End>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement