Ankur Jain wrote:
Hi

1. For the backup creation problem, I did :verbose set backup?
writebackup? as suggested. It showed that it was last read by

source $VIMRUNTIME/vimrc_example.vim

In that file, it set "set backup", so I was facing the problem. I
changed that and the issue was resolved.

2. For the omni-completion, I inserted the commands:

filetype plugin on
filetype plugin indent on

and then with the help of filetype-plugins, I could see the drop down
box for completion.

Thanks for the great help. Happy Vimming :)

Regards
Ankur Jain

On 6/7/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:
Ankur Jain wrote:
> Hi,
>
> I installed vim 7.0 on windows. But, I am facing 2 weird problems,
> please help:
>
> 1. Vim is creating backup files even when I've switched it off. I've
> specified
>           set nobackup
>           set nowritebackup
>    in my _vimrc. Still, it creates a backup file everytime I
> modify/write a file.

Are your setting somehow tampered with? Try

   :verbose set backup? writebackup?

(Don't forget the question marks, otherwise you would be setting them to
TRUE).

>
> 2. I cannot see a drop-down auto-completion window. I tried using
> Ctrl-p/Ctrl-n keys as well, but it's not working. Do I need to specify
> any specific setting on/off?
>
> Please help
>
> Regards
> Ankur Jain
>
>
You need _one_ of the following in your vimrc to set filetype detection
on with filetype-plugins enabled:

   filetype plugin on
   filetype plugin indent on
   source $VIMRUNTIME/vimrc_example.vim

-- to check it, use

   :filetype

with no arguments; the answer should include "plugin:ON".

Then you need a filetype whose filetype-plugin supports omni-completion.
Several of them are shown under ":help compl-omni-filetypes". Or you
could see them all by doing

   :help ft-*-omni<Ctrl-D>

And finally you trigger omni-completion by using Ctrl-X Ctrl-O in Insert
mode at a point in the text where there is something that the plugin
knows how to complete. Note that if there is only one possible
completion (as after </ in HTML, for instance) autocompletion will
happen without a menu.


HTH,
Tony.



I hope you didn't change the vimrc_example itself (any upgrade could change it back, and a version update will definitely change it back); but almost all of your settings (the only exception I know is the ":language" command if you use it) should go in your vimrc _after_ sourcing the vimrc_example. - The vimrc_example sets 'backup' so if you add ":set nobackup" after that, your own setting will prevail. - The vimrc_example uncludes "filetype plugin indent on" so if you source it, you shouldn't need to do it again in your vimrc. Your vimrc should of course not include "filetype off" or "filetype plugin off".


Best regards,
Tony.

Reply via email to