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 trialMary Chadwick
10,683 PointsVIM 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
Jonathan Perdomo
Python Development Techdegree Student 11,506 PointsTry hitting esc, and using ZQ command instead :wq
Chance Lane
11,974 PointsIf 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
15,693 PointsHere'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