>
> Hi,
>
> I want to assign the current line under the cursort to an external
> program. Example
>
> Textfile:
> 1 foo
> 2 bar
> 3 calvin
> 4 hobbes
>
> If the cursor is in line 2, want to assign the line "2 bar" to a
> script, like foo.sh.
:.w !foo.sh
all chars are important (their order etc.):
'.' means current line; see ':help :range'
"w !" is important to write well as it is a big difference between ':w! ' and
':w !'
No functions are needed. This is vim, not emacs :-)
Milan
--
Milan Vancura, Prague, Czech Republic, Europe
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---