Plugin 'gmarik/vundle'
+Plugin 'airblade/vim-gitgutter'
Plugin 'bling/vim-airline'
Plugin 'elzr/vim-json'
-Plugin 'rking/ag.vim'
Plugin 'http://git.code.sf.net/p/vim-latex/vim-latex'
+Plugin 'junegunn/vim-easy-align'
Plugin 'kien/ctrlp.vim'
Plugin 'kshenoy/vim-signature'
Plugin 'majutsushi/tagbar'
+Plugin 'rking/ag.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'scrooloose/syntastic'
+Plugin 'sirver/ultisnips'
Plugin 'sjl/gundo.vim'
Plugin 'tomtom/tcomment_vim'
-Plugin 'tpope/vim-endwise'
Plugin 'tpope/vim-fugitive'
Plugin 'tpope/vim-repeat'
Plugin 'tpope/vim-surround'
" Plugin 'jalcine/cmake.vim'
" Plugin 'powerman/vim-plugin-viewdoc'
-Plugin 'airblade/vim-gitgutter'
+" endwise needs to be after delimitmate
Plugin 'raimondi/delimitmate'
-Plugin 'sirver/ultisnips'
+Plugin 'tpope/vim-endwise'
Plugin 'lokaltog/vim-easymotion'
-Plugin 'junegunn/vim-easy-align'
Plugin 'chrisbra/checkattach'
+Plugin 'klen/python-mode'
+Plugin 'nathanaelkane/vim-indent-guides'
" remove entries first
set runtimepath -=$HOME/.vim
cnoremap <C-L> <Right>
" close all folds open fold in cursor
-nnoremap zx zMzxzz15<C-e>
+nnoremap zx zMzxzt
" edit vimrc in new tab
nmap <leader>ev :tabedit $MYVIMRC<CR>:lcd %:p:h<CR>
" checkattach {{{2
let g:checkattach_filebrowser = 'ranger'
-" Gundo {{{2
-nnoremap <F7> :GundoToggle<CR>
+" delimitmate {{{2
+let delimitMate_expand_cr = 2
+let g:delimitMate_expand_space = 1
" fswitch {{{2
nnoremap <silent> <Leader>ff :FSHere<CR>
nnoremap <silent> <leader>gd :Gdiff<CR>
nnoremap <silent> <leader>gc :tab Gcommit -v<CR>
nnoremap <silent> <leader>ga :Gwrite<cr>
+nnoremap <silent> <leader>gb :Gblame<cr>
+
+" Gundo {{{2
+nnoremap <F7> :GundoToggle<CR>
+
+" indent-guides {{{2
+let g:indent_guides_default_mapping = 0
+let g:indent_guides_guide_size = 1
+nmap <silent> cog <Plug>IndentGuidesToggle
+nmap <silent> [og <Plug>IndentGuidesEnable
+nmap <silent> ]og <Plug>IndentGuidesDisable
" NERDTree {{{2
" open/close NERDTree with \e
" close vim if only NERDTree is open
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
+" python-mode {{{2
+
+let g:pymode_rope_completion = 0
+let g:pymode_folding = 1
+
" synastic {{{2
let g:syntastic_enable_highlighting = 0
let g:syntastic_error_symbol='E'
"let g:ycm_extra_conf_vim_data = ['%:p']
nnoremap <leader>jd :YcmCompleter GoTo<CR>
-" vim-easy-align
+" vim-easy-align {{{2
" start interactive EasyAlign in visual mode
-vnoremap <Enter> <Plug>(EasyAlign)
+vmap <Enter> <Plug>(EasyAlign)
" vim-json {{{2
let g:vim_json_syntax_conceal = 0
nnoremap <silent> <Leader>S :call SwitchSpell()<CR>
" fix spelling with first choice
nnoremap <Leader>f 1z=
-
-" Toggle line numbers {{{2
-function! g:ToggleNumber()
- if !exists("b:relanum")
- let b:relanum=1
- endif
- if &l:number
- let b:relanum = &relativenumber
- setlocal nonumber norelativenumber
- else
- let &l:relativenumber = b:relanum
- setlocal number
- endif
-endfunction
-nnoremap <silent><leader>n :call g:ToggleNumber()<cr>
-nnoremap <silent><leader>N :setlocal relativenumber!<cr>