opening vim with a flag: ready to write?

Karl Vogel vogelke+unix at
Fri Dec 16 04:44:58 UTC 2011

>> On Wed, 14 Dec 2011 16:42:31 -0800
>> Gary Kline <kline at> may have said:

G> is the a way of starting off vim or gvim and be able to type into the
G> editor _without_ first typing: a,i,o,O,I,A, or any other character?

   The command
       vim --cmd start /some/file
   works for new files, and puts you into insert mode on the first line of
   an existing file.

   If you want to have vim start by appending to an existing file, use
   something like
       echo >> /some/file
       vim + --cmd start /some/file

   to append a line first, or your session will start in "insert" mode with
   the cursor at the beginning of the last line.

Karl Vogel                      I don't speak for the USAF or my company

Leighton Meester beats her mom in court
              --Dec 2011 headline that really could have been phrased better

More information about the freebsd-questions mailing list