Gary Johnson (2008-12-08 23:12 -0800) wrote:
> On 2008-12-09, Steven Woody wrote:
>> nmap <F5> :!./recs-sh | :cs reset<CR>
>>
>> but it failed.
> The :execute command can help here.
>
> nmap <F5> :exe '!./recs-sh' | cs reset<CR>
>
> Note that the colon is needed only at the start of the command line,
> not in front of each command.
it's also possible to put <CR> between the commands. Then the colon is
needed with the second command:
nmap <F5> :!./recs-sh<CR>:cs reset<CR>
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---