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
Written by Thomas Lackemann
Related protips
5 Responses
That should be :!git init
etc.
over 1 year ago
·
@manveru correct! fixed
over 1 year ago
·
For git
in vim
: https://github.com/tpope/vim-fugitive
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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Viml
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#