Last Updated: February 25, 2016
·
1.251K
· tlackemann

Use the command line without leaving Vim

Open vim

vim myfile.html

Save the file

:w

Start a new git repo (use ':!' + any command you like)

:!git init

Code and commit your heart out without ever leaving Vim

5 Responses
Add your response

That should be :!git init etc.

over 1 year ago ·

@manveru correct! fixed

over 1 year ago ·
over 1 year ago ·

@vimrocks Have it installed ;) I sometimes just find this way a little easier for machines I don't use often (or servers I don't have fugitive installed on)

over 1 year ago ·

You can also type :sh to obtain a full shell. When you've done type exit (or Ctrl+d) to come back in vim

over 1 year ago ·