tvb2kg
Last Updated: February 25, 2016
·
799
· tlackemann
Me

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

Say Thanks
Respond

5 Responses
Add your response

1526
86e33dee4a89a8879a26487051c216a8

That should be :!git init etc.

over 1 year ago ·
1528
Me

@manveru correct! fixed

over 1 year ago ·
1533
over 1 year ago ·
1534
Me

@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 ·
15716

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 ·