How do I start Vim in insert mode?

You can start Vim in insert mode using the “:startinsert” ex command.

    $ vim +startinsert myfile.txt

The above command will open the file “myfile.txt” and start insert mode with the cursor in front of the first character on the first line. To open the file and start appending after the last character on the last line, you can use the following command:

    $ vim + +startinsert! myfile.txt

Comments (1)


Pepsh Pepshinsky

Let’s see you to :help viminfo-file-name (option -i) :set viminfofile=NONE


Speak Your Mind