New
#1
Set text editor other than Notepad for New Text File
Seems I can't set the text editor other than Notepad on Windows for New Text File?
Seems I can't set the text editor other than Notepad on Windows for New Text File?
Sure you can. Just associate .txt and .text files with the text editor of your choice. The easy way is to find a .txt file in File Explorer, right-click it, choose Open With, and then use as much clicking and scrolling as you need to use until you find your text editor, then check the Always Use box, and you're done.
If you hit a snag, c'mon back and post again. Someone here will gladly help.
Dan
I don't see why you can't associate "GVim.exe -y" with .txt files. Have you tried opening .txt files with GVim Easy? Have you checked the GVim settings to see whether all GVim files can be saved as ,txt?
I don't think you can get the right-click menu to include "VimFile."
There is a program called Context Menu Tuner
Download Context Menu Tuner - MajorGeeks
that can add a custom item to the desktop context menu. Double-click Add Custom Item and fill in the blanks and click Add and Desktop, and I think you can figure it out from there. You'll just have to navigate to your GVim.exe file and add the -y parameter to the command.
Now I see that Steve 108 has responded while I was searching, trying a program, and typing, so maybe his solution is the right one for you: uninstall your GVim and re-install it with the Windows installer.
Dan
Hello @benlimanto,
Although I haveNotepad
as myDefault
selection by choice, I also haveNotepad++
installed. What I do is to right-click the.txt
file and selectEdit with Notepad++
. . .
About Notepad++:
Notepad++ is a FREE source code editor and Notepad replacement that supports several languages. Running in the MS Windows environment, its use is governed by GNU General Public License.
Based on the powerful editing component Scintilla, Notepad++ is written in C++ and uses pure Win32 API and STL which ensures a higher execution speed and smaller program size. By optimizing as many routines as possible without losing user friendliness, Notepad++ is trying to reduce the world carbon dioxide emissions. When using less CPU power, the PC can throttle down and reduce power consumption, resulting in a greener environment.
Basically, Notepad++ it is a text and source code editor that is more powerful than the basic Notepad editor. One advantage that I find extremely useful on a regular basis is that it canCompare
text files andHighlights
the differences between two or more files. To use theCompare
feature you will need to download theCompare Plugin
.
Notepad++
and theCompare Plugin
areFREE
.
> Website & Download => Notepad++ [ Download ]
> Compare Plugin Download => Notepad++ [ Compare Plugin ] - SourceForge.Net
I just thought you might find this useful!
Also, have a look at these for makingNotepad++
theDefault
for.txt
files . . .
> How to make Notepad++ Default Program for `.txt` Files
> Set Notepad++ as Default App in Windows 10
I hope this helps.
For some reason I'm against GVim installer, sorry. See Vim 8.2.3623
builds for Windows
Well when we do DOS command
ftype VimFile=C:/gvim/gvim.exe -y %1
assoc .txt=VimFile
well that make the file dissapear and won't work, because the VimFile doesn't have any default value, only shell open, after read the .reg provided on the first post, now I can use txtfile reg as Vim with Vim Easy, anyway Vim Easy doesn't have any exe only switch argument, when you pick up from right click, well you can't choose lnk right..
I already has Edit with Vim for Folder and File, I will skip NPP.
Hi benlimanto,
I downloaded your version of Vim and extracted it in ProgramFiles. then started vim and accepted files registration.
Then I used windows debugger to replace Notepad.exe image at the system level. (Should be executed in an admin cmd)
Restart is not required. I was able to create new file from right click menu and save them no problems, it now replaces Notepad system wide.Code:reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /t REG_SZ /d "\"%ProgramFiles%\GVim\gvim.exe\" /y" /f
If you're not happy with the results. To remove the modification use:
Code:reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /f
Oh wow. This is more advance than I do, but it's useful. Anyway thank you.
It's like what Notepad2 done. Well, I should look into it more. Thank you for sharing sire.
Not that difficult, the only thing you need to modify in the command is the part that points to your GVim.exe
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /t REG_SZ /d ""%ProgramFiles%\GVim\gvim.exe\" /y" /fCode:%ProgramFiles%\GVim\gvim.exe\