# HG changeset patch # User Meredith Howard # Date 1503465517 14400 # Node ID 9a87ce42aa3c850c48ca9846943a00437ea8669e # Parent 8e07c29f26726c7a6b563698c1933ad9a50708e9 getcmdpos is cursor position in expr mode here, wont work diff --git a/.vim/autoload/vimrc.vim b/.vim/autoload/vimrc.vim --- a/.vim/autoload/vimrc.vim +++ b/.vim/autoload/vimrc.vim @@ -1,5 +1,5 @@ func! vimrc#CommandAlias(abbrev, expand) abort - execute printf('cnoreabbrev %s (getcmdtype()==":" && getcmdpos()==1) ? "%s" : "%s"', a:abbrev, a:expand, a:abbrev) + execute printf('cnoreabbrev %s (getcmdtype()==":" && getcmdline()=="%s") ? "%s" : "%s"', a:abbrev, a:abbrev, a:expand, a:abbrev) endfunc func! vimrc#AutoFmtToggle() abort