On 26/10/08 19:56, Martin dum8d0g Kopta wrote:
> Thanks to Tony I've got something into my .vimrc. It does not work
> because I don't have a clue how to write it properly - please correct
> me:
>
> :map<F9> :w<CR>
> if filereadable('Makefile')
> make
> else
> !./%
> endif<CR>
ALL ON ONE LINE I SAID:
:map <F9> :w <Bar> if filereadable('Makefile') <Bar> make <Bar> else
<Bar> !./% <Bar> endif <CR>
and after :w it isn't <CR> but <Bar>, typed as less-than big-B small-a
small-r greater-than.
Best regards,
Tony.
--
Death is only a state of mind.
Only it doesn't leave you much time to think about anything else.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---