From: Oleg Broytman Date: Sun, 13 Jul 2014 18:50:49 +0000 (+0400) Subject: Fix misspelling: position_resored => position_restored X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=483fa08b6bc0f5fa6d5720cda59e9c1f8de21b41;p=dotfiles.git Fix misspelling: position_resored => position_restored --- diff --git a/.vim/ftplugin/vcscommit.vim b/.vim/ftplugin/vcscommit.vim index 2ce1476..03d05e2 100644 --- a/.vim/ftplugin/vcscommit.vim +++ b/.vim/ftplugin/vcscommit.vim @@ -1,4 +1,4 @@ " Go home! call cursor(1, 1) -let b:position_resored = 1 +let b:position_restored = 1 nmap \c 1G0p8dwkdd diff --git a/.vimrc b/.vimrc index 0f51857..c365a95 100644 --- a/.vimrc +++ b/.vimrc @@ -274,14 +274,14 @@ autocmd BufReadPost * syntax on " Restore last known cursor position function! RestorePosition() - if exists('b:position_resored') + if exists('b:position_restored') return endif if line("'\"") > 0 call cursor(line("'\""), col("'\"")) endif - let b:position_resored = 1 + let b:position_restored = 1 endfunction " When editing a file, always jump to the last cursor position (if saved)