aboutsummaryrefslogtreecommitdiff
path: root/vimrc-full
diff options
context:
space:
mode:
authorMax Christian Pohle2018-02-10 00:54:40 +0100
committerMax Christian Pohle2018-02-10 00:54:40 +0100
commite9240eed645370fca1a5cdec19076d1374e9d86d (patch)
tree9c4ddddccab9e6c3d48890a0fef09ab6d817c0b2 /vimrc-full
parentaa9ed1ced697734a2ffbc5d2c7a83e2557115f84 (diff)
downloadvim-e9240eed645370fca1a5cdec19076d1374e9d86d.tar.bz2
vim-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.
Diffstat (limited to 'vimrc-full')
-rw-r--r--vimrc-full12
1 files changed, 4 insertions, 8 deletions
diff --git a/vimrc-full b/vimrc-full
index 9354b77..ec4f3db 100644
--- a/vimrc-full
+++ b/vimrc-full
@@ -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/=
698Plug 'severin-lemaignan/vim-minimap' 693Plug 'severin-lemaignan/vim-minimap'
699Plug 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with ' 694Plug 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with '
700let g:signify_vcs_list = [ 'git' ] | " use signify only with git (improves speed when loading buffers, see :h signify) 695let g:signify_vcs_list = [ 'git' ] | " use signify only with git (improves speed when loading buffers, see :h signify)
701let g:signify_cursorhold_insert = 1 696let g:signify_cursorhold_insert = 0
702let g:signify_cursorhold_normal = 1 697let g:signify_cursorhold_normal = 0
703let g:signify_update_on_bufenter = 0 698let g:signify_update_on_bufenter = 0
704let g:signify_update_on_focusgained = 1 699let 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>'|
..