]> git.phdru.name Git - dotfiles.git/commitdiff
Fix misspelling: position_resored => position_restored
authorOleg Broytman <phd@phdru.name>
Sun, 13 Jul 2014 18:50:49 +0000 (22:50 +0400)
committerOleg Broytman <phd@phdru.name>
Sun, 13 Jul 2014 18:50:49 +0000 (22:50 +0400)
.vim/ftplugin/vcscommit.vim
.vimrc

index 2ce147608acbc0301631efa33d926db369ee77c0..03d05e2c9eb9f0ab6c561043a441477bacf28dcd 100644 (file)
@@ -1,4 +1,4 @@
 " Go home!
 call cursor(1, 1)
 " Go home!
 call cursor(1, 1)
-let b:position_resored = 1
+let b:position_restored = 1
 nmap \c 1G0p8dwkdd
 nmap \c 1G0p8dwkdd
diff --git a/.vimrc b/.vimrc
index 0f51857368e923e6984d869de6108727af0efcc3..c365a9559360c1e4239eb748e89a498e1e02448a 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -274,14 +274,14 @@ autocmd BufReadPost * syntax on
 
 " Restore last known cursor position
 function! RestorePosition()
 
 " 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
       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)
 endfunction
 
 " When editing a file, always jump to the last cursor position (if saved)