This does NOT work with files opened in several tabs (put in ~/.vimrc
obviously):
noremap <F5> :wa<CR> <bar> :!global_stack_build_run.sh<CR>
Neither it works when I use |
instead of <bar>
.
It appears to run only :wa
.
According to the documentation :help map_bar
using should work. A simple mapping I tried did just work. So try removing the <cr>
from your mapping and see if it will be put into the command line
:help map_bar
using<bar>
should work. A simple mapping did just work. Try removing the<cr>
from your mapping and see if it will be put into the command line<cr>
afterwa:
worked:noremap <F5> :wa <bar> :!global_stack_build_run.sh<CR>
. Consider it an answer.