Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] vim abbreviations



On Wed, Oct 08, 2003 at 01:13:56PM +0900, Jean-Christian Imbeault wrote:
> I'd like to have following abbreviated and the cursor positions at the * 
> mark
> 
> myfunction () {
>   *
> }

There are lots of ways.  Perhaps the easiest is remap '{' so
that it does what you might do by hand:
   inoremap { {<CR><Tab><CR><C-D>}<Esc>kA
or inoremap { {<CR><Tab><CR>}<C-D><Up><End>
(The control-D may not be necessary, depending upon how you
have your C formating options set.)


-- 
Jim Tittsler                                         GPG: 0x01159DB6
Kanto Computer Calendar  http://www.OnJapan.net/calendar/
Python Starship          http://Starship.Python.net/


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links