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

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to