5 ms·
How can you execute the current buffer line as a vim command? I have this shortcut on one of my machines, but it's really tough to search the Internet for. It
by metadat 2y ago
How can you execute the current buffer line as a vim command? I have this shortcut on one of my machines, but it's really tough to search the Internet for.
It's so useful for one-off report generation, I use it daily on my (last remaining) Windoze machine.
Vomscript isn't that bad! Not any worse than Bash, haha. It turns out that you can get plenty done with only arrays and without a native Map data structure. If you get desperate, use SQLite. *Grin*
- jmholla 2y agoThis should do it (without the spaces): : C-r C-l <Enter> The `C-l` buffer is the line you are currently on in command mode. (Might be in other modes too.)
- metadat 2y agoBravo!
- qazxcvbnm 2y agoAnother way: yy@" In other words, execute the " register (what you just copied) as a macro. In the same vein, yy@0 would work as well (the 0 register is the last yank). Also, what do you mean without a native map structure? Vimscript has Dictionaries just fine.