From 1ac783f1fc402c4eecf8c9f2e6895095076d8092 Mon Sep 17 00:00:00 2001 From: Boris Egorov Date: Wed, 20 Apr 2016 16:43:31 +0600 Subject: [PATCH] vim: Use lastplace plugin. Do not close YCM preview window --- vim/.vim/vimrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc index 98cbf29..389cc0f 100644 --- a/vim/.vim/vimrc +++ b/vim/.vim/vimrc @@ -13,6 +13,7 @@ Plugin 'VundleVim/Vundle.vim' Plugin 'altercation/vim-colors-solarized.git' Plugin 'ctrlpvim/ctrlp.vim' Plugin 'derekwyatt/vim-scala' +Plugin 'dietsche/vim-lastplace.git' Plugin 'ervandew/ag' Plugin 'honza/vim-snippets' Plugin 'idris-hackers/idris-vim' @@ -100,7 +101,6 @@ let g:solarized_termcolors=256 let g:ycm_global_ycm_extra_conf = '~/.vim/.ycm_extra_conf.py' let g:ycm_always_populate_location_list = 1 let g:ycm_add_preview_to_completeopt = 1 -let g:ycm_autoclose_preview_window_after_completion = 1 let g:ycm_confirm_extra_conf = 0 let mapleader = "," @@ -112,6 +112,7 @@ let g:UltiSnipsUsePythonVersion = 2 let g:UltiSnipsExpandTrigger="" let g:UltiSnipsJumpForwardTrigger="" let g:UltiSnipsJumpBackwardTrigger="" +let g:lastplace_ignore = "gitcommit" function! Replace() let s:word = input("Replace " . expand('') . " with:")