Hello,
Not related to vim-latex, but to vim reading the template as typed and
thus adding automatically indents. You have to set the "paste" option
first (:set paste)(:set nopaste to turn off) to be able to paste without
indenting.
I've got:
~/.vim/after/ftplugin/tex.vim
----------------%<------------------
""" set paste for TTemplate
function TexTemplateWithPasteSet()
set paste
TTemplate
set nopaste
endfunction
command Template call TexTemplateWithPasteSet()
----------------%<------------------
and use my command :Template rather than :TTemplate to avoid the
annoying setting and unsetting of paste.
Regards, Ruthard
>== Auszüge aus der Nachricht von pierrO vom 2016-02-28 16:55:
> Hello,
> In a template, I want to put a command as :
>
> \newcommand{\me}{%
> \par%
> -- Moi :}
>
> When I load this template in a document, the command is indented, and if
> there are multiple commands beside, indents increase each line.
> Could you give me a way to understand how indentation works in
> vim-latex, because sometimes when I write text with user commands, lines
> become indented but I understand why ?
> Thank you.
>
--
Dr. Ruthard Baudach
Speckertsweg 36a
97209 Veitshöchheim
----
Emails bitte verschlüsseln und signieren.
Meine PGP-Id: 0xAC5AC6C2
|