Tuesday, June 18, 2013

Re: vim conditional keymap when a tex file is open

On Tuesday, June 18, 2013 11:44:04 PM UTC+1, MarcWeber wrote:

>
> then edit:
>
> ~/.vim/ftplugin/{the result of the echo command}.vim
> {the result of the echo command} may be "tex" or "latex" depending on
> which plugins you have installed.
> add something like this there to that file:
> noremap <buffer> <leader>lw :do thing
>

while this is working(thanks), the problem is that, I have to make each ftplugin for each file type.
It will be great if I could have
if (buffer=*.tex) <leader>lw :do thing
in vimrc

> Because error formats from latex are hard to read by vim there are
> additional "translators" which run latex for you and print nice error
> locations instead. If you need more help about this use case write
> again.
This is interesting. Please tell me more.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment