get snipmate and snipmate-snippets or any of the other snippet engines.
Don't reinvent the wheel, please.
Oh my God. How have I been able to live without this?!
Thanks so much.
--
Juan José Gómez Navarro
Departamento de Física
Centro de Investigacion en Óptica y Nanofísica (CIOyN)
Good morning, I use vim to type my LaTeX documents. I'm aware of the
latex-vim package, but it is too sophisticated to my needs now.
Instead, I would like just to perform very simple tweaks.
What I would like is that when I open a latex document (this is, a
file with extension tex), the spelling
Hi,
Juanjo Gomez Navarro wrote:
On the other hand, it would be great to have a macro which auto
completes some tasks. For example, I would like that if I press F5 in
a word, then it is automatically replaced by the text:
\begin{word}
(the cursor gets this position automatically)
Hi,
You can check the tab completion feature in ATP:
http://atp-vim.sf.net
Note that in 10.6.2 (which is available as a snapshot) the tab completion
(using the TAB key and SHIFT-TAB key) moves to vim omni-completion
(i_CTRL-X_CTRL-O), which still doesn't work as good as the tab completion in
Thanks. The mapping works perfectly, and I'll take a look at ATP too.
It looks promising :D
Any tip about how getting different options/mappings to be switched
on/off when different files are opened?
--
Juan José Gómez Navarro
Departamento de Física
Centro de Investigacion en Óptica y
On Dec 07, 2011 at 02:05 PM +0100, Juanjo Gomez Navarro wrote:
What I would like is that when I open a latex document (this is, a
file with extension tex), the spelling corrector gets activated, and
the words are not cut in the middle of two lines.
This one is pretty straight forward. Create
You want to create ~/.vim/ftplugin/(la)tex.vim
file and set your Vim settings there using :setlocal spell= XXX or such.
Also make sure to enable plugin support etc as show top in
https://github.com/MarcWeber/vim-addon-manager/blob/master/autoload/sample_vimrc_for_new_users.vim
For compilation you
Thanks for the fast reply. All your suggestions worked perfectly.
--
Juan José Gómez Navarro
Departamento de Física
Centro de Investigacion en Óptica y Nanofísica (CIOyN)
Universidad de Murcia
Campus Espinardo
E-30100 Murcia
España
Tel : +34 868 888 552
Fax : +34 868 888 568
Email:
try this mapping (it's one single line):
:nnoremap F5 wciwcr\begin{c-rw}cr
cr0c-d\end{c-rw}crupupend
Regards,
Jürgen
--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)
--
You received
:inoremap F5 homeESCdwi\begin{c-rw}cr
cr0c-d\end{c-rw}crupupend
And what should this do?
get snipmate and snipmate-snippets or any of the other snippet engines.
Don't reinvent the wheel, please.
Right now I don't understand what homeesc should do. Doesn't make
much sense to me.
If you're
10 matches
Mail list logo