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!

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 Git Basics Getting Started With Git Committing Changes

VIM opening as default editor on PC and vim controls don't work

My default editor in windows is Vim, but when I use escape, : wq to write and close, nothing happens. I could change my default to notepad, but wouldn't mind learning and using vim. Anyone else have these issues? And when I close out the vim window, I get an error in my Git window and have to close out and reopen. I have no idea if my README file was committed. Also. I added a txt instead of an md as file type. Is this part of the problem? Thanks for any help on how to get passed this editor problem.

3 Answers

Try hitting esc, and using ZQ command instead :wq

If anybody is having trouble with the commit process like I was. This page, and pages linked to this one helped me out http://stackoverflow.com/questions/6098742/using-git-commit-a-with-vim

Kevin Phillips
Kevin Phillips
15,693 Points

Here's how to get git to use nano instead of vim:

git config --global core.editor "nano"

as stated here: http://superuser.com/questions/503844/git-on-mac-how-to-set-nano-as-the-default-text-editor