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

Re: what buffer means in inoremap bla blabla

Expand Messages
  • Benji Fisher
    ... [snip] ... Maybe I instead of i ... ... [snip] ... [snip] I suggest first trying ... If you get i I *@Integer then follow the detailed
    Message 1 of 5 , Jul 31, 2004
    • 0 Attachment
      On Sun, Jul 25, 2004 at 07:55:10AM +0200, Antoine J. Mechelynck wrote:
      > Akbar <melinda_sayang@...> wrote:
      > > Antoine J. Mechelynck wrote:
      > > > Akbar <melinda_sayang@...> wrote:
      > > >
      > > > > I found java.vim plugin. Here is the code:
      > > Hey,
      > >
      > > I just need more help. How do I use this plugin? I already know what
      > > buffer mean. Look at this mapping:
      > > inoremap <buffer> <C-T>I Integer
      > > How do I use this mapping?
      > > Control-T first then type I or type them together? In Insert Mode or
      > > Normal mode?
      > > I tried them all. No luck. How do I use this mapping? I don't
      > > understand. How do I expand I to Integer?
      > >
      > > Thank you....
      > imap or inoremap: the mapping applies to Insert mode only
      > <C-T>I
      > 1. Press and hold Ctrl
      > 2. Press and release t
      > 3. Release Ctrl
      > 4. Press and release i

      Maybe I instead of i ...

      > It should insert "Integer" (without quotes) into your text, provided of
      > course that the file you are editing is the same buffer (the active cursor
      > is in the same file) as when those buffer-local mappings were defined.
      > Another thing. Where is that java.vim file located? For it to work, I would
      > expect it to be in a "ftplugin" subdirectory of a directory mentioned in the
      > 'runtimepath' option. Then it would be sourced whenever a file was detected
      > as having filetype "java", with the current buffer being that of the file
      > (provided that your vimrc includes, or sources a file that includes, one of
      > the following lines:

      I suggest first trying

      :imap <C-T>I

      If you get

      i <C-T>I *@Integer

      then follow the detailed instructions on what key presses to make. If
      you get a message like "no mapping found," then read the instructions
      for installing an ftplugin.

      HTH --Benji Fisher
    Your message has been successfully submitted and would be delivered to recipients shortly.