jaspersonal.blogg.se

Vim text editor for windows
Vim text editor for windows











For example, I normally set my ruler to 120 chars in most projects, but for Git commit messages I want it to be 72 characters so that it fits nicely in a terminal when you call git log or git lg.ġ. In Windows, I like to use Git Bash so that it feels more like Linux.įirst, we want to create a special Sublime Text project so that we can specify special project settings we want set whenever Git calls the editor, to make things easier when editing in Git. To follow these instructions in Windows make sure you have installed Git for Windows. (and hope no flags are needed for optimal usage.)īest settings for Sublime Text 3 or 4 as your Git editor (Windows & Linux instructions): If you have a different editor, just replace with the path to your editor, using either method above. On a windows machine home is likely to be C:\Users\your-user-name, where your-user-name is your login name.įrom the command line, you can reach this directory by typing in cd ~.įor example, a command above would be add the following line under the section like so:Įditor = 'C:/Program Files/sublime text 3/subl.exe' -w

vim text editor for windows

The commands basically add the text between double-quotes to.

vim text editor for windows

The commands above assume your editor has been installed in the default directory for a windows machine. Git config -global core.editor "atom -wait" Git config -global core.editor "'c:/Program Files/sublime text 3/subl.exe' -w" Git config -global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin" Github's post shows exactly what to type in to your command line for various editors, including the options/flags specific to each editor for it to work best with git. The linked resource, by Github,is likely to be kept up to date, when editors are updated, even if answers on SO (including this one) are not. This provides an answer for people who arrive at this Question that may want to link an editor other than vim.













Vim text editor for windows