Hi,
I guess it evaluates as I type ? So no real way around this.
Perhaps a cmap could trigger a cmdline substitution ?
Maybe there is such a plugin already.
thx,
-m
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying
Hi,
Does anyone know what would be the vim regex for getcmdline() =~ for both
'q' and 'q!' ?
ie, something like:
cnoreabbrev q (getcmdtype() == ':' && getcmdline() =~ '\s*q\s*$')
? 'call Quit()' : 'q'
cnoreabbrev q! (getcmdtype() == ':' && getcmdline() =~ '\s*q!\s*$')
? 'call QuitBang()' :
On 10/3/2019 9:17 AM, Christian Brabandt wrote:
Have you read the answers?
I assume you are referring to the answers at stackexchange -- I did try
the three answers as specifically itemized (1,2,3) in the original post
(use of cat inside term was misleading since it did not allow scrolling