Using q: or CTRL-F make mappings easier to write, by acting on a buffer with normal mode commands, but it doesn't seem like it's possible to dismiss that window upon returning to the command-line. CTRL-\ e is the most flexible way to write mappings for the command-line mode.In particular, I agree with dedowsdi's choice of Vim features to implement this: This is useful to turn the last typed word to uppercase by simply typing it and pressing CTRL-U, and you'll be able to resume the command-line from there. If the cursor is on whitespace, on a non-keyword character, or at the end of the line, it will act on the word before the cursor. Acts on keyword characters (as you mentioned and not, and I assume you did so intentionally.). ![]()
0 Comments
Leave a Reply. |