You are not logged in.

#1 2010-06-14 05:18:50

Jonhoo
Member
Registered: 2009-05-23
Posts: 118

VIM tab completion

Hey all archers!

I have a bit of an issue with VIM that has been annoying me for a long time.
Whenever I use :o to open another file, tab completion does not work;
when I press tab, VIM simply prints ^I into the prompt.

Any ideas as to what might cause this?

My .vimrc is as follows:

set autoindent
set cindent
set expandtab
set tabstop=4
set shiftwidth=4
set bg=dark
set wildmode=longest,list

autocmd BufRead,BufNewFile  *.css setlocal nocindent

syntax on

Jon

Last edited by Jonhoo (2010-06-14 05:19:15)

Offline

#2 2010-06-14 08:36:13

Deckard
Member
From: Munich/Germany
Registered: 2010-01-31
Posts: 14

Re: VIM tab completion

Try :e to edit another file. Usually works fine with tab-completion, too. smile


If the only tool you have is a hammer, you tend to see every problem as a nail

Offline

#3 2010-06-14 08:46:23

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: VIM tab completion

Open mode in fact is not supported by vim. See ":help open":

Vim does not support open mode, since it's not really useful.  For those situations where ":open" would start open mode Vim will leave Ex mode, which allows executing the same commands, but updates the whole screen instead of only one line.

Thus always use ":e(dit)" or ":view" to open an existing file.


To know or not to know ...
... the questions remain forever.

Offline

#4 2010-06-14 09:53:42

Andrwe
Member
From: Leipzig/Germany
Registered: 2009-06-17
Posts: 322
Website

Re: VIM tab completion

Something I'm using mostly is :tabnew .
It works with tab completion and opens the file in a new tab.

Offline

#5 2010-06-14 11:07:52

Jonhoo
Member
Registered: 2009-05-23
Posts: 118

Re: VIM tab completion

Ah, so I've been using the wrong command all along? Great, thanks smile

Offline

Board footer

Powered by FluxBB