Execute a command under the cursor in VIM?

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 fu ExecuteCommand() let l:Command = expand("") execute "! " .

L:Command endfu Alternatively, you might want to change the value of keywordprg : :set keywordprg=!

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 fu ExecuteCommand() let l:Command = expand("") execute "! " .

L:Command endfu Alternatively, you might want to change the value of keywordprg: :set keywordprg=!

Ok Thank you. It's working fine. – ungalnanban Apr 29 '10 at 9:35.

Another tip: if you want to put the word under current cursor into the command-line mode, you can use "CTRL+r+w" to do so.

The CTRL+r+w is not working for me. – ungalnanban Apr 30 '10 at 6:05 1 C-r, C-w in sequence is meant here – sehe Mar 29 at 11:44.

How can I execute a command in vim, under the cursor. We know that Shift+k is used to open a man page under the cursor. Command instead of opening the man page.

How can I take the current word under the cursor in VIM?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions