4

I have set up Notepad++ as my default editor as in this topic: How can I set up an editor to work with Git on Windows?

with this command:

git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"

Now, I'm working through a Ruby on Rails tutorial. On one step, the author uses the command: $mate README.markdown to launch his TextMate editor and edit the readme file.

My question is, now that I have set up Notepad++ as my default editor, what is the equivalent command that I should use to launch Notepad++ and edit the file?

Note: I'm a beginner with this Git and Ruby on Rails. Please go easy on me! Thanks in advance.

Community
  • 1
  • 1
Flux Capacitor
  • 1,151
  • 4
  • 21
  • 37
  • 1
    You don't have to launch your text editor from the command line. People tend to do that in tutorials because it's easier to understand (or because they like to do everything from the command line). You can also just double-click on the file you want to edit, and then if Windows says "What program should I use to open this?" then of course choose Notepad++. – MatrixFrog Jan 24 '11 at 05:46
  • Sure, but that's way more effort. It's much easier now that I've added notepad++ to my windows path variables. – Flux Capacitor Jan 24 '11 at 05:53
  • @MatrixFrog Hi, I know it have been passed a long time since this post was created, but I want to address exactly the problem I'm confronting with which is related some how to your answer. You said files can be edited just by double clicking them when using git. How do you do that? The Sublime editor pops up the "Unable to save..." error and Notepad++ doesn't even allow me to type in it. I appreciate your help. Thank you. – Carmen Cojocaru Jun 16 '14 at 17:04

2 Answers2

4
C:/Program Files/Notepad++/notepad++.exe README.markdown

And since you'll probably want to use notepad++ a lot from the command line, you may want to alter your PATH to include its root directory, so you don't need to write the full path each time.

rampion
  • 82,104
  • 41
  • 185
  • 301
1

Add notepad++.exe to your Windows path enviromental variable( the whole path), this option is in computer, right click, advance system setting enviromental variables. After from command promp just do: notepad++ markdown.README

You could also just use the whole path to notepad.exe everytime but that gets old, just learn how to edit your enviromental variables in windows.

daniel
  • 9,178
  • 7
  • 38
  • 57