Loading ...
Sorry, an error occurred while loading the content.

Re: vim conditional keymap when a tex file is open

Expand Messages
  • rudrab
    ... 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)
    Message 1 of 3 , Jun 18, 2013
    • 0 Attachment
      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@....
      For more options, visit https://groups.google.com/groups/opt_out.
    Your message has been successfully submitted and would be delivered to recipients shortly.