.vim/autoload/vimrc.vim

changeset 632
9a87ce42aa3c
parent 631
8e07c29f2672
child 640
f8985ae54969
--- a/.vim/autoload/vimrc.vim
+++ b/.vim/autoload/vimrc.vim
@@ -1,5 +1,5 @@
 func! vimrc#CommandAlias(abbrev, expand) abort
-  execute printf('cnoreabbrev <expr> %s (getcmdtype()==":" && getcmdpos()==1) ? "%s" : "%s"', a:abbrev, a:expand, a:abbrev)
+  execute printf('cnoreabbrev <expr> %s (getcmdtype()==":" && getcmdline()=="%s") ? "%s" : "%s"', a:abbrev, a:abbrev, a:expand, a:abbrev)
 endfunc
 
 func! vimrc#AutoFmtToggle() abort

mercurial