On Thu, 21 Sep 2006 23:36:19 +0200 Luc Hermitte <[EMAIL PROTECTED]> wrote:
> Hello, > > * On Thu, Sep 21, 2006 at 10:43:54PM +0200, Kim Schulz > <[EMAIL PROTECTED]> wrote: > > I want to add placeholders to some templates I have like > > <+TITLE+> <+DATE+> etc. > > I then want to map a keyboard shortcut to do the following > > 1. find next placeholder > > 2. remove placeholder > > 3. place cursor where placehoder where > > 4. go into insert mode. > > > > I started out on the command, but got kinda stuck. > > :map <C-j> /<+.\++><CR>:s/<+.\++>//<CR>'.i > > > > it almost works, except that it places the cursor at the beginning > > of the line instead of at the place of the placeholder. > > > > any ideas? > > > Why don't you use already existing solutions ? what would I learn from that ? :-) I already have your system installed, but Im trying to learn new Vim stuff by creating a complete personal setup from ground up. -- Kim Schulz | Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http://www.devteam.dk +45 5190 4262 | Sparetime: http://www.fundanemt.com