> Greetings,
>
> I am running Vim version 7.3.154 on Ubuntu Oneiric. I'm a newbie, and I
> just set up a .vimrc file with the following commands:
>
> set nocompatible
> set hlsearch
> set incsearch
> set number
> set showmode
> set syntax=ON
Try changing that line to
syntax on
> color elflord
>
> All of the features I intended to set work like a charm, the problem is that
> now every time I open a file in VIM, i get the following error:
>
> filetype unknown
> Press ENTER or type command to continue
>
> It does this with all files I've tried to open, (.cpp, .c++, .txt and the
> .vimrc itself) It appears to me that the filetype.vim file should allow for
> all these to be detected, but I don't know for sure what I am reading.
> Funny thing is, the syntax highlighting still works even though the filetype
> is supposedly unknown.
>
> Any guidance would be greatly appreciated.
I copied your commands to a new file, jollyjvimrc, and executed
$ vim -u jollyjvimrc foo.cpp
'filetype' wasn't being set at all and ":scriptnames" showed that
filetype.vim wasn't being sourced.
HTH,
Gary
--
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