-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bundled Vim.exe seems to need filetype=mac in vimrc instead of filetype=dos #272
Comments
I guess that You can fix this using the command-line Alternatively, you could work on https://github.com/git-for-windows/MSYS2-packages/tree/master/vim to teach |
Hi, thanks for the quick reply. I thought dos2unix and similar tools did the same thing as set ff and set ffs. I've tried them with similar results. I've even used a vimrc that is in unix format and loads just fine from gvim.exe but I have no clue as to why it only works in the git-bash vim with a mac fileformat. I'm probably too swamped at the moment to take a look but I'll save those links to read later and see if I'm able to contribute. Cheers. |
I just upgraded from Git for Windows 1.9.4 to 2.5.1 and noticed the same issue. Doing a However I've also noticed that the |
@leif81 yes, I expected this to be not only a one-time problem. That is why I was a bit disappointed that my suggestions to fix it properly were ignored. But maybe that changes now, what with you noticing the same problem? It is pretty easy, really. Just install the Git for Windows SDK, then call the following commands: pacman -Syu base-devel binutils
cd /usr/src/MSYS2-packages
git fetch
git checkout master After that, you need to open an MSys2 shell by running the cd /usr/src/MSYS2-packages/vim
makepkg -s Once it is built completely, you have the source code at your fingertips in the Please feel free to ask for any more information you need. |
When sharing Windows' home directory, we have to expect that the `.vimrc` file can have DOS line endings. Let's be lenient about this, as well as all other input we get, and just handle CR/LF as well as LF line endings. We still behave as before, otherwise. This fixes git-for-windows/git#272 Signed-off-by: Johannes Schindelin <[email protected]>
When sharing Windows' home directory, we have to expect that the `.vimrc` file can have DOS line endings. Let's be lenient about this, as well as all other input we get, and just handle CR/LF as well as LF line endings. We still behave as before, otherwise. This fixes git-for-windows/git#272 and git-for-windows/git#364 Signed-off-by: Johannes Schindelin <[email protected]>
When sharing Windows' home directory, we have to expect that the `.vimrc` file can have DOS line endings. Let's be lenient about this, as well as all other input we get, and just handle CR/LF as well as LF line endings. We still behave as before, otherwise. This fixes git-for-windows/git#272 and git-for-windows/git#364 Signed-off-by: Johannes Schindelin <[email protected]>
When sharing Windows' home directory, we have to expect that the `.vimrc` file can have DOS line endings. Let's be lenient about this, as well as all other input we get, and just handle CR/LF as well as LF line endings. We still behave as before, otherwise. This fixes git-for-windows/git#272 and git-for-windows/git#364 Signed-off-by: Johannes Schindelin <[email protected]>
I'm not sure if this is an actual issue or I botched something up but when I call vim from git bash
where
It has several problems with ^M characters:
$ vim
I've tried saving the file in different formats and the filetype=mac format "solved" the issue for the vim in git bash but that's not really a solution since the other vim naturally expects fileformat=dos in windows.
I use this .vimrc across computers in Linux/Win without issue and it used to work in the older git bash (msysgit 1.95).
edit: minor mistake (meant fileformat/s, not filetype)
The text was updated successfully, but these errors were encountered: