1
vote
0answers
35 views

How to make vim change a date when a section of a file was edited?

I'm using latex as a diary with sections for each subject. I manually add date of creation and modification to each element of text (section, subsection, subsubsection, ...). Is there a way to make it ...
1
vote
1answer
72 views

Change definition of paragraph text object in Vim?

I asked a question in the (La)TeX stack exchange and it was recommended to me that I see whether I could get an answer here. The question can be found here. The basic question is this: can I tell Vim ...
3
votes
1answer
388 views

vim “gq}” command to re-wrap paragraph, and LaTeX

How can I make this command not wrap things like \item? For example: \begin{enumerate} \item this might be a long paragraph that spans multiple lines \item blah \end{enumerate} if I run "gq}" ...
2
votes
1answer
308 views

Manually loading package from Vim-LaTeX in Vim (because auto detection is not always helpful)

General question How you can manually load a particular package from Vim-LaTeX in Vim and how it can be automated for every LaTeX file? I am not interested in copying relevant parts from scripts of ...
3
votes
3answers
2k views

Display invisible characters in vim

When I compile my source with Latex, I get the following error message Unicode char \u8:  not set up for use with LaTeX. Now I suspect that this is due to an invisible character. The command ...
0
votes
1answer
485 views

Vim Format Latex, issues with line breaks

I use vim's source code formatting features (the = key will format your selection and pressing gg=G will format the entire source code). However, it seems to not format correctly when it encounters ...
3
votes
2answers
605 views

vim and TeX filetypes. plaintex vs. tex

I open tex files with vim, but some files are recognized as filetype plaintex, some others as filetype tex. Why is so ? What is the trigger that recognizes the file as tex (which has the highlighting ...
0
votes
1answer
244 views

Vim bind compile key depending on document type

Is there a way to bind a key by document type? For example, if the document is a .tex file, I want f5 to call PdfLatex, but it is a .c file, I want it to call make
0
votes
2answers
360 views

Gvim Graphical Preview

I have seen some videos on YuoTube where people are doing some cool things with Emacs, e.g. compiling a LaTeX file and viewing it as a pdf from within Emacs. I have also seen a graphviz DOT file ...
2
votes
2answers
829 views

Compile .tex files to .pdf as default in gvim with latexsuite plugin

Now I am using the pull-down menus to set :TTarget, :TCTarget, and :TVTarget to pdf. I also tried setting g:Tex_DefaultTargetFormat='pdf' and g:tex_flavor='pdflatex', but neither worked. Thanks!
1
vote
3answers
680 views

Vim: Bind <C-Enter>

Using vim for editing latex; how can I bind C-Enter? I tried the following, which does not work: imap <C-Enter> \\<CR> and imap <C-Return> \\<CR> However, something like: ...
5
votes
3answers
557 views

Using vim for LaTeX versus something else?

For those that regularly use vim and that also regularly use LaTeX, do you recommend using vim for LaTeX? If not, what do you recommend?
0
votes
1answer
483 views

Specifying the destination for the pdf output when using pdflatex, from gVim

I am generating a pdf output with pdflatex with the following command in gVim: :!pdflatex % This command in turns executes the following in the Command Prompt: cmd.exe /c pdflatex /testvim.tex ...
0
votes
3answers
915 views

How do I manage newlines in Latex?

So, maybe I missed something completely when I started using Latex, but I have a difficult managing newlines in the Latex source. I have to put hard returns at the end of lines because even powerful ...
0
votes
2answers
881 views

To have colors in Vim LaTeX -files, like in Gvim

The left-hand-side picture is in Gvim, while the right-hand-side one is in Vim. Both Gvim and Vim uses the same files. How can you make \item red in Vim?