On Oct 26, 2:58 pm, Tony Mechelynck <[EMAIL PROTECTED]>
wrote:
>
> 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.

Though, if you like looking at multiple lines better, assuming you are
have set "nocompatible", you can use line continuations:

map <F9>
      \ :w <Bar>
      \ if filereadable('Makefile') <Bar>
      \   make <Bar>
      \ else <Bar>
      \   !./% <Bar>
      \ endif <CR>
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to