Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

how to use vim to save?

I am working on my git and I would like to using vim but I have tried "CTRL + S" , quit, wq, w, I am stuck at http://imgur.com/JT0njdH I have to close out. do all over again. How do I save the message?

I am familiarly with git commit -m "any message here".

1 Answer

To save in Vim, you'll want to leave insert mode (if you're in it) by hitting Esc, then type one of the options, followed by Enter, to save:

  • :w

  • You can also use :x to save an exit

There are other options, listed and explained here: http://vim.wikia.com/wiki/Saving_a_file