map command in VI editor
Hi All,
I am trying to map z for save the file and execute that file without exiting to vi. so i did :map z :w^M:!%^M but it is giving message like - :!<file name> /bin/ksh: line 1: <file name>: not found shell returned 127[/COLOR] Please Advice!!! |
Hi,
Try this: Code:
:map z :w^M:!./%^M |
All times are GMT -5. The time now is 08:02 PM. |