diff options
author | Max Christian Pohle | 2018-02-10 00:54:40 +0100 |
---|---|---|
committer | Max Christian Pohle | 2018-02-10 00:54:40 +0100 |
commit | e9240eed645370fca1a5cdec19076d1374e9d86d (patch) | |
tree | 9c4ddddccab9e6c3d48890a0fef09ab6d817c0b2 | |
parent | aa9ed1ced697734a2ffbc5d2c7a83e2557115f84 (diff) | |
download | vim-karlmarks-e9240eed645370fca1a5cdec19076d1374e9d86d.tar.bz2 vim-karlmarks-e9240eed645370fca1a5cdec19076d1374e9d86d.zip |
Fixed Bug: Automatically save the first change
This was introduced by the autocmd used to return the cursor to the
previous position and appeared only sometimes, when vim was loading
slower than usual.
-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>'| |