mlsamuelson.com

Clear contents within (parentheses ) [braces ] and {curly braces}

In Vim, given code such as

if ($check) {
  echo $array['true'];
}

If you're on or within the parentheses and enter

ci(

you'll clear the $check out of there.

Same goes for

ci[

which would clear the 'true' out of the $array brackets.

And

ci{

would wipe away all the contents of the curly braces.

No comments

Add your comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

User login