To automatically insert a closing parenthesis when typing an opening parenthesis you can insert the following simple mapping to your vimrc: :inoremap ( ()i This ends up with the cursor between the opening and the closing parenthesis in insert mode. You can apply this and the following tips, of course, with the kind of parenthesis/bracket character you want to, i.e. (, {, [, < ..... and, pretty useful as well, quotation marks ",',.... (to be continued)
Attributes | Values |
---|
rdfs:label
| - Making Parenthesis And Brackets Handling Easier
|
rdfs:comment
| - To automatically insert a closing parenthesis when typing an opening parenthesis you can insert the following simple mapping to your vimrc: :inoremap ( ()i This ends up with the cursor between the opening and the closing parenthesis in insert mode. You can apply this and the following tips, of course, with the kind of parenthesis/bracket character you want to, i.e. (, {, [, < ..... and, pretty useful as well, quotation marks ",',.... (to be continued)
|
Version
| |
dbkwik:vim/property/wikiPageUsesTemplate
| |
Previous
| |
Category
| |
Author
| |
Complexity
| |
Created
| |
ID
| |
NEXT
| |
Rating
| |
abstract
| - To automatically insert a closing parenthesis when typing an opening parenthesis you can insert the following simple mapping to your vimrc: :inoremap ( ()i This ends up with the cursor between the opening and the closing parenthesis in insert mode. You can apply this and the following tips, of course, with the kind of parenthesis/bracket character you want to, i.e. (, {, [, < ..... and, pretty useful as well, quotation marks ",',.... (to be continued)
|