Search code examples
gitnotepad++

notepad++ not working in Git Bash


I'm on windows 7 64 bit os and I'm trying to setup notepadd++ as my tex teditor in Git Bash

here's what I've already done

  1. git config --global core.editor "\"C:/Program Files (x86)/Notepad++/notepad++.exe\" -multiInst -notabbar -nosession -noPlugin"

  2. set up notepadd++ in my system variables

now, when I try to edit a file (i.e. notepad++ myfile), it says command not found. even when I try just to open notepad++, it says command not found

I'm totally new in Git and I think I'm totally lost in what I'm doing. What I basically want is to get my notepad++ work with Git Bash

Please help. Thanks!


Solution

  • You can use a combination of double and single quotes, as in "How can I set up an editor to work with Git on Windows?":

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

    Note also the use of '/' instead of '\' in this case.