- How can I execute a command in Vim, under the cursor? On the (word) under the cursor?
We know that Shift+k is used to open a man page under the cursor. I want to execute the command instead of opening the man page.
Or:
- How can I take the current word under the cursor in Vim?
How can I take the current word under the cursor in VIM?
or
How can I execute the command under the cursor? I am not exactly sure what kind
of commands you’re refering to, but since you mentioned man pages, I’d assume
that you want to execute unix and or cmd commands. If this is the case you’ll
want something like
Alternatively, you might want to change the value of
keywordprg: