diff options
Diffstat (limited to 'vimrc-full')
-rw-r--r-- | vimrc-full | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -403,12 +403,7 @@ if has("autocmd") | |||
403 | 403 | ||
404 | " autocmd BufNewFile set nobuflisted | 404 | " autocmd BufNewFile set nobuflisted |
405 | " use the shada/viminfo file to return the cursor to where it was... | 405 | " use the shada/viminfo file to return the cursor to where it was... |
406 | function! ReturnCursor() | 406 | autocmd BufReadPost * call setpos(".", getpos("'\"")) |
407 | if line("'\"") > 1 && line("'\"") <= line("$") | ||
408 | exe "normal! g`\"" | ||
409 | endif | ||
410 | endfunction | ||
411 | autocmd! BufReadPost * call ReturnCursor() | ||
412 | 407 | ||
413 | 408 | ||
414 | augroup ToggleQuickFix | 409 | augroup ToggleQuickFix |
@@ -698,8 +693,8 @@ Plug 'godlygeek/tabular' | " align code on a sign, like :Tab/= | |||
698 | Plug 'severin-lemaignan/vim-minimap' | 693 | Plug 'severin-lemaignan/vim-minimap' |
699 | Plug 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with ' | 694 | Plug 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with ' |
700 | let g:signify_vcs_list = [ 'git' ] | " use signify only with git (improves speed when loading buffers, see :h signify) | 695 | let g:signify_vcs_list = [ 'git' ] | " use signify only with git (improves speed when loading buffers, see :h signify) |
701 | let g:signify_cursorhold_insert = 1 | 696 | let g:signify_cursorhold_insert = 0 |
702 | let g:signify_cursorhold_normal = 1 | 697 | let g:signify_cursorhold_normal = 0 |
703 | let g:signify_update_on_bufenter = 0 | 698 | let g:signify_update_on_bufenter = 0 |
704 | let g:signify_update_on_focusgained = 1 | 699 | let g:signify_update_on_focusgained = 1 |
705 | 700 | ||
@@ -844,6 +839,7 @@ if has("python") | |||
844 | " ULTISNIPS: code snippet ============================================================================================ | 839 | " ULTISNIPS: code snippet ============================================================================================ |
845 | Plug 'honza/vim-snippets' " dependency of ultisnips (see below) | 840 | Plug 'honza/vim-snippets' " dependency of ultisnips (see below) |
846 | Plug 'SirVer/ultisnips' " replaces loremipsum (and many more) | 841 | Plug 'SirVer/ultisnips' " replaces loremipsum (and many more) |
842 | " let g:UltiSnipsExpandTrigger = '<Tab>'| " expands the snippet, be careful not to use <tab> elsewhere (ycm uses it by default, but it has been deactivated by g:ycm_key_list_select_completion) | ||
847 | let g:UltiSnipsExpandTrigger = '<Tab>'| " expands the snippet, be careful not to use <tab> elsewhere (ycm uses it by default, but it has been deactivated by g:ycm_key_list_select_completion) | 843 | let g:UltiSnipsExpandTrigger = '<Tab>'| " expands the snippet, be careful not to use <tab> elsewhere (ycm uses it by default, but it has been deactivated by g:ycm_key_list_select_completion) |
848 | 844 | ||
849 | let g:UltiSnipsJumpForwardTrigger = '<Tab>'| | 845 | let g:UltiSnipsJumpForwardTrigger = '<Tab>'| |