Open a text file in cygwin's VIM
If you right-click on a .txt file and select "open with" you should be able to click "Browse" and go to C:\cygwin\bin\vim-nox.exe
. Then you can click "Always use the selected program to open this kind of file".
However, I prefer to just have a "native" Windows Vim install and use that.
Create cvim.bat
file:
@echo off
chdir C:\cygwin\bin
start "" mintty.exe /usr/bin/vim.exe %1
Place it on your PATH and then cvim yourfile.txt
or as Heptite has said: right-click on a .txt file and select "open with" you should be able to click "Browse" and go to that cvim.bat
. Then you can click "Always use the selected program to open this kind of file".