X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/f48bc8404d5d7d0ddbf073e6c02339b067d7a1fe..c20554a13a4689f821cf17bb78a422dbd6d9a050:/vim/vimrc?ds=sidebyside diff --git a/vim/vimrc b/vim/vimrc index 2301dc3..d927be1 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -21,7 +21,8 @@ Plugin 'elzr/vim-json' Plugin 'firef0x/pkgbuild.vim' Plugin 'junegunn/vim-easy-align' Plugin 'kien/ctrlp.vim' -Plugin 'klen/python-mode' +" Plugin 'klen/python-mode' +Plugin 'wilywampa/python-mode' Plugin 'kshenoy/vim-signature' Plugin 'majutsushi/tagbar' Plugin 'raimondi/delimitmate' @@ -56,6 +57,11 @@ Plugin 'http://git.code.sf.net/p/vim-latex/vim-latex' Plugin 'justinmk/vim-sneak' Plugin 'chrisbra/checkattach' Plugin 'nathanaelkane/vim-indent-guides' +Plugin 'alx741/vinfo' + +Plugin 'kana/vim-textobj-user' +Plugin 'julian/vim-textobj-variable-segment' +Plugin 'sgur/vim-textobj-parameter' " remove entries first set runtimepath -=$HOME/.vim @@ -167,7 +173,7 @@ set foldmethod=marker " folding type set foldlevelstart=0 " value for 'foldlevel' when starting to edit a file " save and restore folds -set viewoptions=folds,cursor " don't save local options +set viewoptions=cursor " only save cursor position " diff mode {{{2 set diffopt=filler,vertical @@ -372,8 +378,7 @@ noremap O :set pastem`O``:set nopaste " Don't use Ex mode, use Q for formatting map Q gq -" allow undoing in insert-mode -inoremap u +" break undo sequence before removing word inoremap u nmap b :set expandtab tabstop=4 shiftwidth=4 softtabstop=4 @@ -392,6 +397,9 @@ autocmd BufWinEnter *.* silent loadview " save with sudo cnoremap w!! w !sudo tee % > /dev/null +" uppercase previous word +inoremap gUiwgi + " plugins options {{{1 " ag {{{2 let g:AgSmartCase = 1 @@ -523,7 +531,7 @@ let g:ycm_extra_conf_globlist = ['~/src/*','/mnt/data/src/*'] let g:ycm_global_ycm_extra_conf = expand('$XDG_CONFIG_HOME/vim/ycm_extra_conf.py') let g:ycm_extra_conf_vim_data = ['getcwd()'] let g:ycm_add_preview_to_completeopt = 1 -let g:ycm_autoclose_preview_window_after_insertion = 1 +let g:ycm_autoclose_preview_window_after_insertion = 0 "let g:ycm_extra_conf_vim_data = ['%:p'] nnoremap jd :YcmCompleter GoTo