vim default save is no file type? default setting advisable?

Posted by Brady Trainor on Super User See other posts from Super User or by Brady Trainor
Published on 2013-10-26T20:59:14Z Indexed on 2013/10/26 22:01 UTC
Read the original article Hit count: 385

Filed under:
|

I just came across a problem that I seemed to have found a solution, but was a little surprised by the issue.

In gVim, when I save a new document (new from "within" gVim), ala

:w afile 

I realized it saves with I guess no file format, and thus is not visible in iPhone's PlainText app. Solution seems to be, save using

:w afile.txt 

then the problem seems solved. Is this a good way to solve it? Should I change a default somewhere, either in Windows or _gvimrc file?

I may consider doing some TeX'ing in vim at some point, so perhaps a default that allows for overriding in saving, and doesn't force txt when opening "any of all" documents.

© Super User or respective owner

Related posts about vim

Related posts about gvim