> Well...duh..there's an easy fix for this. Just prefix the command with '#'
> Then hit :wq to save it and "run" it. Still...why does it behave this
> way?
> Shouldn't I be able to choose not to run the command when I exit
> from Bash's vi editing mode?
> This is on a Centos 5 machine, and the terminal is a Gnome terminal.
>
It looks like several of the answers presume you're using vim/gvim
rather than the bash shell's vi-mode (ie. :cq, which doesn't work under
bash shell). Assuming that you actually meant to ask what should you
type while in the shell, not while in vim:
Try 0D
(move cursor to beginning of line, delete contents from cursor to
end-ofline)
Regards,
Chip Campbell
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment