Sunday, December 25, 2011

Re: why is Vim coloring text in txt files?

On 26/12/11 01:28, wolfv wrote:
> Thanks Thilo.
>
> I found the Generic configuration code in my C:\Program Files (x86)\Vim
> \vim73\filetype.vim
> Where in the file should the local configuration code (below) be
> placed?
>
> " txt
> autocmd BufNewFile,BufRead
> \ *.txt,
> \*README*
> \ setl ft=text
>
> wolfv

On Windows, it could either be part of ~/vimfiles/filetype.vim, after

if exists("did_load_filetypes")
finish
endif

and possibly together with other user-defined filetype detection
autocommands (BTW do not set that did_load_filetypes variable, it is set
by $VIMRUNTYME/filetype.vim), or else it could be all of
~/vimfiles/ftdetect/text.vim (with paths shown as they could be used in
Vim but not in other Windows programs). Or you could replace ~/vimfiles/
by $VIM/vimfiles/ in either of these paths if you wanted these
customizations to apply to all users (all login names) on your computer.

See
:help new-filetype

See also
:help 'runtimepath'

about the different default paths on Windows ("PC") vs. Unix/Linux/OSX
("Unix").


Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
254. You wake up daily with your keyboard printed on your forehead.

--
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