Vim is an advanced text editor and IMproved version of the Unix editor Vi.

learn more… | top users | synonyms

0
votes
0answers
22 views

Strange behaviour of VIM-Latex

When I try to type certain words (in insert mode), suddenly a lot of code is inserted. For example, if I try to type "DEFINE", once I enter the F, this is inserted D\begin{figure}[<+htpb+>] ...
2
votes
0answers
28 views

What are some vim macros to assist indexing a book?

I am about to re-read my 400-page book and mark certain words for indexing. I'm looking for a set of VIM macros that would help me quickly go through the text marking words and group of words to be ...
0
votes
1answer
18 views

How do I get rid of vim-latex's output from PDF viewing?

I use vim with VIM-LaTeX. I can use \ll to compile and \lv to view. I've set the following options in my .vimrc file: let g:tex_flavor='latex' let g:Tex_DefaultTargetFormat='pdf' When I type \lv, ...
1
vote
0answers
28 views

How can I remap “`” in vim-latex?

I'm using vim-latex and I would like to use another key (tab, for example) instead of "`", since typing the latter is difficult here (shift + ´ + ´). How can I do this?
29
votes
5answers
11k views

How to setup synctex with vim, pdflatex and an open-source PDF-viewer under Linux?

Inspired by the comments to this answer I am curious how to actually setup and use forward/reverse (inverse) search with vim, pdflatex and an open-source PDF-viewer under Linux. Btw, to give more ...
0
votes
0answers
22 views

vim-latex templates last change dynamic

So I am using vim-latex suite and want the Last Change information to change dynamically with every edit/ save. It's found in the preamble if you're using one of the templates e.g % File: ...
1
vote
0answers
31 views

What is the Vim Latex-Suite shortcut for inline math parenthesis?

Vim Latex-Suite has shortcuts for typing \left( and \right) just by typing ((. What is the shortcut for typing \( and \)?
3
votes
1answer
379 views

When loading LaTeX files in vim (7.3) I get the error “perhaps you should insert a `~' before '\ref' ”

I have the over 30 errors in my LaTeX file, all over the \ref{...} command, and all following this similar pattern (I put it as a quote instead of code as it is long and code does not wrap) I ...
3
votes
1answer
119 views

vim-latex shortcuts

I am facing a problem for using shortcuts provided by vim-latex. Say, I want \textbf, so I was trying `bf. But, given, `b is a shortcut for \beta, I always end up with something \betaf. FBF works, ...
1
vote
0answers
51 views

Latex-Suite Mapping Using Fullwidth Characters

Currently I am using Latex-Suite to edit an document that contains CJK characters for more than 90%, and therefore mainly using an input method that outputs fullwidth characters. I tried to define ...
2
votes
1answer
86 views

Why does Vim force really long lines in text file?

I am using Vim to edit my tex file and I am relatively new to LaTeX. One thing that I don't understand is why tex wants you to write incredibly long lines in your tex file? For instance, each line ...
1
vote
0answers
27 views

Vim complains of Whitespace error with \hspace

When I type the following line in Vim: \hrule height .1mm Why do I get the following error in the Vim Location List: foo.tex|258 error| Whitespace before punctation mark in " ." NOTE: It ...
0
votes
0answers
21 views

How to add a target directory when you convert from tex file to pdf in Vim-LaTeX?

I just installed Vim-LaTex on OSX. I learnt :TTarget pdf and type \ll to convert a tex file to pdf. When I do this a pdf file is created in the same directory as tex file. How can I add the target ...
1
vote
0answers
31 views

Set up vim, latex for AGU template

On a Mac, I have been using vim-latex for a while and had set it up a while ago to output pdfs via the :ll command in vim (using pdflatex if I'm correct) and viewing the output via the :lv command ...
7
votes
0answers
122 views

`. shortcut doesn't expand to \cdot

According to latex-suite documentation, `. should expand into \cdot but this is not working for me. All other abbreviations (greek letters and math) do work. I tried looking in ...
2
votes
1answer
61 views

VIM default language for tex files [duplicate]

I don't really know if I'm right here, if so please say something. But, I currently work on my bachelor-thesis and want to enable spell check in my VIM. But currently I have to do this every time ...
2
votes
1answer
543 views

How to set up spell-checking with vim?

I'm using vim to write my thesis. It's a multi-document project, with most tex files in subdirectories from the master-document. I've set up a couple of \newcommands to replace the use of \section*{} ...
2
votes
1answer
54 views

Using latexindent from vi?

I would like to use latexindent from the vi editor. Ideally, I would use it just like one uses fmt. Recall that in vi you can filter any portion of your text through an external filter. So, one could ...
1
vote
2answers
77 views

How do I write a script (in Windows) that removes all the temporary LaTeX files in Vim?

Maybe my title is not so clear; I Googled a lot about cleaning up temporary files after a PDF is generated, and find it is not recommand to remove it completely in each compile. I do want to remove ...
0
votes
0answers
24 views

Key Mappings in Vim - Is the following Suffice?

I just installed LaTeX-Suite for Vim in Ubuntu 13.10. I couldn't find for a proper set of key mappings that would help me out as a beginner. So I followed these : Key-Mapping in LaTeX-Suite for Vim. ...
11
votes
3answers
1k views

How to disable all Vim-LaTeX mappings?

I like some of the features provided by the Vim-LaTeX suite, but not all of them. In particular, I dislike all of the mappings like [[ = \left[ \right] and the automatic placeholder stuff with ...
23
votes
5answers
3k views

Intelligent paragraph reflowing in vim?

I'm not sure whether this is an appropriate question for tex.SE. If you think questions like this should not be asked here, please voice you concern. If necessary I'll open a question on meta. For ...
0
votes
0answers
37 views

How to add custom enviroment in latex-suite

Latex-suite provides short keys to make working with environments like equation easier in VIM. For example, I like to press <F5> to change the environment. One of the environments that I find ...
8
votes
3answers
2k views

How to get vim-latex's \cite completion to work?

I'm having issues with \cite completion. In the screenshot below, you can see what I get when I do \cite{ } F9. It is not doing what documentation says it would do, such as: Show a list that I can ...
3
votes
1answer
68 views

LaTeX indentation in vim

Does there exist a good indentation option/plugin for vim? I tried different combinations of autoindent, smartindent and cindent, what I get is: \begin{tabular}{ c } foo \\ bar \end{tabular} ...
3
votes
1answer
149 views

LaTeX plugin for vim editor in Linux

I have installed gvim on my Ubuntu 12.04 operating system.How to install the LaTeX plugin for gvim?I have TeXlive installed. I used the following link to follow to the instructions: ...
1
vote
0answers
87 views

Error installing Vim-LaTeX using Pathogen on MacVim

I installed vim-latex using pathogen following the very clear instructions proposed in: How to install vim-latex? However, when I open a .tex file using MacVim, I get the following error message: ...
2
votes
1answer
56 views

Weird vim-latex behaviour

I just started using LaTex in vim and immediately ran into problems. I'm using the vim-latex plugin and it's completely screwing up the tutorial I'm trying to follow. There's a useful shortcut for ...
1
vote
1answer
65 views

Vim-latex key expansion doesn't remove the typed keys

I recently installed vim-latex plugin in gvim 7.4. I followed the documentation to set it up. Everything is working. But I have a problem. When I type in key expansion combination, the combination ...
4
votes
1answer
218 views

How to make vim short key for xelatex and pdflatex both?

I have learned that the following setting in _vimrc will let \ll compile by engine pdflatex: let g:Tex_DefaultTargetFormat='pdf' let g:Tex_CompileRule_pdf = 'pdflatex ...
7
votes
1answer
1k views

In vim: How to enable spellchecking of text only and exclude listings

How can I set up vim in such a manner, that it spellchecks only the text portion of my file? I write a lot of reports that include code listings, which I would like to exclude from the spellchecking. ...
1
vote
1answer
203 views

How do I properly set up Latex-suite in Gvim?

I just installed Miktex, and downloaded Latex Suite latest snapshot. I extracted its files in both C:\Program files (x86)\Vim\vimfiles and C:\Program files (x86)\Vim\vim74 (I'm not sure why I have ...
4
votes
1answer
236 views

How do you jump to an error from the Error List in LaTeX-suite?

I just discovered LaTeX-suite and was overjoyed with the breadth of the compiling and debugging options, but for some reason the primary debugging mechanism is not working for me. When I compile with ...
7
votes
0answers
148 views

vim-LaTeX does not construct correct argument for bibtex

My pdf compile rule is pdflatex -interaction=nonstopmode $* & bibtex $* & pdflatex -interaction=nonstopmode $* Everything works fine except for the bibtex call. The reason is that "$*" is ...
2
votes
1answer
94 views

Indenting multi-line sentences

For example, in the actual .tex file, I'd like sentences like this: Due to this, some reasonable conclusion. Next sentence. To be formatted like this: Due to this, some reasonable conclusion. ...
7
votes
1answer
273 views

How to dynamically change the output filename in Vim LaTeX Suite

Say, my .tex files are organized like this ~/Projects/proj_name/articles.tex. After compiling with LaTeX Suite, I want the output PDF file to be proj_name.pdf instead of articles.pdf. Since I have ...
3
votes
3answers
1k views

How can I turn Vim LatexSuite on Manually?

VLS's commands such as ^J and F5 do not work always for me inside Vim so how can turn VLS manually or do some other tricks to get VLS working more often? The word "often" could mean that VLS gets ...
8
votes
1answer
194 views

Gnuplot inside LaTeX not working

I'm trying to create a gnuplot image inside my LaTeX document, but nothing is being displayed. My gnuplot works if I do it outside LaTeX. \begin{figure}[!ht] \begin{gnuplot}[terminal=pdf, ...
2
votes
0answers
57 views

Still about how to set configuration files to print the bibliography with Vim and biber

Although I read some posts on this site about vim and biber, still I'm not able to compile correctly. Following some suggestion, I put in my texcr (at line 96) TexLet g:Tex_MultipleCompileFormats = ...
5
votes
4answers
1k views

Macvim and Skim sync does not work

Don't really know where to begin. I have installed the latest macvim and skim. Put the mvim in path. Setup skim sync with the default macvim (and tried some custom stuff also). However it will not ...
3
votes
2answers
207 views

How to setup MacVim for ConTeXt (MkIV) and Skim?

This is a very basic question but I can't figure out how to configure MacVim (v7.3) properly to work with ConTeXt (MkIV) and Skim on Snow Leopard. Is there somebody who would kindly explain the steps ...
2
votes
1answer
126 views

How to disable Vim LaTeX plugin while enabling other plugins

I recently turned on plugins in vim so that I could use a plugin with Clojure source files. Now the vim LaTeX Suite plugin loads automatically whenever I edit a LaTeX file. Ack! I had my vim ...
4
votes
1answer
98 views

how to enter a dot with whitespace preceding it?

I'm getting Whitespace before punctuation mark in " ." when I'm trying to enter the word .Net with whitespace before it. How can I fix that? What's the proper way of entering a . with whitespace ...
8
votes
1answer
296 views

Why does Vim highlighting treat _a differently than _b in math mode?

I am not using vim-latex, just the regular vim syntax highlighting for latex. To make sure of this I tested this by running: vim -u NONE -N I notice that if I am in math mode "f_a" will display ...
1
vote
1answer
65 views

Plugin for outlining tex files VOom does not work

I installed VIM plugin called VOom which has latex support for outlining sections and subsections and other commands. You can have a look here: http://www.vim.org/scripts/script.php?script_id=2657 ...
5
votes
1answer
228 views

arara: show warnings only in the last compilation step

I use this function to compile my latex documents in gVim with arara: function! CompileTex() silent write! call setqflist([]) echon "compiling with arara ..." exec "lcd %:h" ...
0
votes
0answers
23 views

Vim latex-suite mappings not substituting but adding [duplicate]

With latex-suite installed in Vim, typing ^^ in insert mode should produce ^{<++>}<++>, but instead it produces ^^^{<++>}<++>. Likewise == produces ==&=& instead of ...
3
votes
0answers
105 views

How to understand vim-latexsuite template expression evaluation?

I'm trying to build out LaTeX templates for my engineering coursework, and I love the vim environment for editing, so I've been using vim-latex to integrate the two. I don't quite understand how the ...
7
votes
1answer
399 views

vim: nice folding function

I use Latex-Box but I really like vim-latex (a.k.a Latex-Suite) folding. I tried to copy Latex-Suite's folding.vim file to my ftplugin/tex folder but cannot make it work. Has anyone written a nice ...
1
vote
1answer
296 views

LaTeX Suite Autocompletion Feature Not working With Rnw file

I have been a great fan of Vim with its awesome Vim-latex suite providing extremely useful keybindings and autocompletion features. Then I installed vim-r-plugin and opened a .Rnw Sweave file. While ...