Wednesday, December 28, 2011

Re: why is Vim coloring text in txt files?

On Dec 28, 7:29 pm, "John Beckett" <johnb.beck...@gmail.com> wrote:
> wolfv wrote:
> > I tried this from cmd window:
>
> > C:\Users\wolf
> > > cd %HOME%
> > The system cannot find the path specified.
>
> It's a long story, some of which is mentioned at:http://vim.wikia.com/wiki/Filetype.vim
> (search for $HOME).
>
> The simplest is to use Vim to find what it thinks:
>
> :echo $HOME
>
> Then use normal tools (not Vim) to make the required
> directories.
>
> Re this mailing list:
> Yes, bottom posting is putting your comment last.
> However, it is important to DELETE all junk from the original
> message (just quote what you are replying to).
>
> John

Thanks John, that helped me figured out enough to make it work.

I created C:\Program Files (x86)\Vim\vimfiles\filetype.vim and copied
the code that Tony posted on Dec 27, 12:55 into it.
Its not my $HOME, but I am the sole user of this PC, so I guess that's
OK. Everything works.

:set ft?
filetype=text

The unwanted coloring is out of the text files. Thanks for all your
help.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment