You are not logged in.

#1 2010-05-15 13:30:15

thms
Member
Registered: 2010-02-01
Posts: 120

vim latex-suite and auto completion

Hi,

according to this introduction you have to hit <enter> to chose a bib entry after pressing F9 in \cite{ :

My problem is that I see the bib entries but when I hit enter the windows close and I'm back in my tex file with no entry in the \cite bracket. When I typed in the first letters of the bib key these are also erased.

Any ideas?

Here's my .vimrc

" Use Vim settings, rather then Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible

filetype plugin on
filetype indent on
set grepprg=grep\ -nH\ $*
let g:tex_flavor = "latex"
" switch on syntax highlighting
syntax on
let g:Tex_DefaultTargetFormat = 'pdf'
let g:Tex_CompileRule_pdf = 'latexmk -pdf -pv -g'
set runtimepath=~/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,~/.vim/after

" A clean-looking font for gvim
set guifont="DejaVu\ Sans\ Mono\ 8"

" allow backspacing over everything in insert mode
set backspace=indent,eol,start

set history=100  " keep 100 lines of command line history
set ruler  " show the cursor position all the time
set showcmd  " display incomplete commands

" set mouse -=a
set shortmess+=I        " disable the welcome screen
 
" line numbering
set nu
 
" wrap like other editors
set wrap                " word wrap
set textwidth=0         " 
set lbr                 " line break
set display=lastline    " don't display @ with long paragraphs

" searching
set hlsearch            " highlight all search results
set incsearch           " increment search
set ignorecase          " case-insensitive search
set smartcase           " upper-case sensitive search

 
" nice colours
 set t_Co=256
" colorscheme twigight
" colorscheme desert256
" colorscheme tlvb 
" colorscheme zenburn
colorscheme ir_black

 " scroll one screen line regardless of editor line length
:noremap    <Up> gk
:noremap!   <Up> <C-O>gk
:noremap    <Down> gj
:noremap!   <Down> <C-O>gj

:noremap    k gk
:noremap    j gj

set enc=utf-8

" Scrollbars
set sidescrolloff=2
set numberwidth=4

Offline

#2 2010-05-17 11:10:05

thms
Member
Registered: 2010-02-01
Posts: 120

Re: vim latex-suite and auto completion

some more informations needed?

Offline

#3 2010-05-17 14:12:47

davvil
Member
Registered: 2008-05-06
Posts: 165

Re: vim latex-suite and auto completion

I found that latex-suite is sensitive to the formatting of the .bib file. E.g. I had problems with whitespaces between the '{' and the entry name (which get added by kbibtex, btw.). Check if this or something similar may be causing problems for you.

Offline

#4 2010-05-17 16:14:37

thms
Member
Registered: 2010-02-01
Posts: 120

Re: vim latex-suite and auto completion

Hi davvil,

thanks for your reply. There are no whitespaces. The only thing I've noticed is, that the indention of the entries is different (INCOLLECTION, BOOK, etc isn't idented, though).

My bib was partly created by JabRef and by entries made by me. I'll check if the problem also occurs with a new bib made from scratch.

Offline

#5 2011-01-16 22:14:10

geo909
Member
Registered: 2008-09-07
Posts: 309

Re: vim latex-suite and auto completion

Sorry for bumping up the thread, but just to confirm for the sake of any interested reader
that eliminating spaces between { and the bibtex entry solved this problem in my case.

Offline

Board footer

Powered by FluxBB