Re: what buffer means in inoremap bla blabla
- On Sun, Jul 25, 2004 at 07:55:10AM +0200, Antoine J. Mechelynck wrote:
> Akbar <melinda_sayang@...> wrote:[snip]
> > Antoine J. Mechelynck wrote:
> > > Akbar <melinda_sayang@...> wrote:
> > >
> > > > I found java.vim plugin. Here is the code:
> > Hey,Maybe I instead of i ...
> > 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
> 1. Press and hold Ctrl
> 2. Press and release t
> 3. Release Ctrl
> 4. Press and release i
> It should insert "Integer" (without quotes) into your text, provided of[snip]
> 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[snip]
> 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
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