3

I want to create a new function in vim that pastes something like

<html> <head> </head> </html> 

into the current buffer. How do I write this as a multiline string? As single lines I would have to write

0put="<html>" 0put="<head>" 0put="</head>" 0put="</html>" 
1
  • 3
    You should look at the implementation of SnipMate and/or Sparkup or similar plugins. Commented Feb 4, 2012 at 23:26

1 Answer 1

1

Sounds like putting the linebreak character between them, \n will do just fine

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.