Thanks, Chris, Alright, I'll give it a look. I guess learning by example is the best way to go.
2008/11/16 xulxer <[EMAIL PROTECTED]> > > Hi, > > as far as i know there is no such book. I have read "Hacking Vim" and > would not recommend as most examples a taken right from the vim > help and if things get interesting and complicated it refers the > reader back to the vim docs. > > The best thing i found so far to learn vim scripting is foo.vim. > This is a large collection of little vim scripts with annotations. > You can find it here. > > http://www.vim.org/scripts/script.php?script_id=72 > > Kind regards > > Chris > > >I've been using vim for a little while now and want to get into some > scripting. > >Is there any good recommended starting place? > > > >The most interesting book I have found so far is Hacking Vim: A > Cookbook... by > >Kim Schulz. Is there any thumbs up for this book or a better > recommendation? > > > >Thanks! > > > >2008/8/2 PGScooter <[EMAIL PROTECTED]> > > > > > > > > Hi, I just joined this forum. I can't wait to start learning more > advanced > > techniques in vim > > > > I have three questions: > > 1. I would like to map a command that italicizes a word in latex. That > is, > > if I have a word, say, flah, I would like to be able to put the cursor > over > > any part of blah and have it be turned into \emph{flah}. > > What I have right now is: map <F2> bi\emph{<esc>ea}<esc> > > but this clearly does not work if my cursor is on the first letter of > flah, > > f, (because the "b" causes vim to go back to the NEXT word). > > > > 2. what are the most common keys you use to map to? I am trying to > figure > > out which keys VIM does NOT use. > > > > 3. How can I map the arrow keys (or any other key for that matter) to > do > > something else when I am already in insert mode? I remember reading > about > > it > > but forgot and can't find it. > > > > > > thank you! > > > > scott > > -- > > View this message in context: http://www.nabble.com/ > > simple-mapping-help-tp18790912p18790912.html > > Sent from the Vim - General mailing list archive at Nabble.com. > > > > > > > > > > > > > >> > > -- > Bitte beachten Sie auch die Rückseite dieses Schreibens. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
