.vim/autoload/vimrc.vim

changeset 640
f8985ae54969
parent 632
9a87ce42aa3c
child 641
60b56bbfc143
--- a/.vim/autoload/vimrc.vim
+++ b/.vim/autoload/vimrc.vim
@@ -4,9 +4,9 @@ endfunc
 
 func! vimrc#AutoFmtToggle() abort
   if &formatoptions =~ 'a'
-    setl fo-=a | echo '-a'
+    setl formatoptions-=a | echo '-a'
   else
-    setl fo+=a | echo '+a'
+    setl formatoptions+=a | echo '+a'
   endif
 endfunc
 
@@ -50,6 +50,6 @@ func! vimrc#VundleInstallAndBegin() abor
     echo "Installed Vundle, run :PluginInstall if desired"
   endif
 
-  let &rtp .= ',' . bundlepath . '/vundle'
+  let &runtimepath .= ',' . bundlepath . '/vundle'
   call vundle#begin(bundlepath)
 endfunc

mercurial