Copy the following three lines to the clipboard (for example, you could use your web browser to copy the lines from this tip). if (y==1){ printf("y=1"); } In Vim, put the cursor on the closing brace '}' in the following. Then press Ctrl-v. if (x==1){ printf("x=1"); } The above mapping will insert the clipboard and indent it, with result: if (x==1){ printf("x=1"); if (y==1){ printf("y=1"); } }
| Attributes | Values |
|---|---|
| rdfs:label |
|
| rdfs:comment |
|
| Version |
|
| dbkwik:vim/property/wikiPageUsesTemplate | |
| Previous |
|
| Tag |
|
| Label |
|
| Subpage |
|
| Complexity |
|
| Created |
|
| ID |
|
| NEXT |
|
| abstract |
|