[Vim-latex-devel] <tab> doesn't toggle folds in preview window
Brought to you by:
srinathava,
tmaas
From: David A. <ad...@tc...> - 2011-12-04 22:05:36
|
Hi, According to the help<http://vim-latex.sourceforge.net/documentation/latex-suite/ls-completion-ref.html> the <tab> key should toggle the folds in the preview window. This doesn't seem to be working in my implementation. I had a quick look through the source and couldn't find any mappings so I added one to texviewer.vim exec 'nnoremap <buffer> <cr> ' \ .':cd '.s:origdir.'<CR>' \ .':call Tex_FinishOutlineCompletion()<CR>' exec 'nnoremap <buffer> q ' \ .':cd '.s:origdir.'<CR>' \ .':close<CR>' \ .':call Tex_SwitchToInsertMode()<CR>' "Added by me exec 'nnoremap <buffer> <tab> za <CR>' Not sure if there is a better way to do this however. In case anyone is interested. Here is a substitute command I wrote for automatically adding a key (aka a label) to any BibTex entries in a bib file that don't have one, as latex-suite will not work without them. Scopus doesn't including a key when exporting in BibTex for instance. It just gives @article{first_author:year, %s/\(\s*@\a*\s*{\)\(,\)\(\_[^@]*author\s*=\s*{\)\(\a*\)\(\_[^@]*year={\)\(\d*\)\(}\)/\1\4:\6,\3\4\5\6\7/ David |