Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to change vim's default mode

Tags:

linux

shell

vim

Does anyone know how to change vim's default mode? Its default mode is command mode, but could I change it to insert mode?

like image 290
user1033390 Avatar asked Nov 07 '11 08:11

user1033390


People also ask

How do I change the mode in vi editor?

Vi edit modesTo enter Insert mode, press i . In Insert mode, you can enter text, use the Enter key to go to a new line, use the arrow keys to navigate text, and use vi as a free-form text editor. To return to Command mode, press the Esc key once. [ Looking for a different text editor?

How do I go to normal mode in Vim?

Normal Mode By default, Vim starts in “normal” mode. Normal mode can be accessed from other modes by pressing Esc or <C-[> .

How do I switch between Insert modes in Vim?

Type i to switch into insert mode so that you can start editing the file. Enter or modify the text with your file. Once you're done, press the escape key Esc to get out of insert mode and back to command mode. Type :wq to save and exit your file.


1 Answers

Just add the following line to your vimrc:

start

Vim's default mode will be changed to Insert mode. Just press Esc to enter Command mode.

like image 135
Kirill Avatar answered Oct 30 '22 07:10

Kirill