pkt / lh-vim

Luc Hermitte's lh-vim to save it from google code closing
0 stars 0 forks source link

[lhBrackets] delete both bracket characters on <del>, <bs>, x #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Emacs' [http://mumble.net/~campbell/emacs/paredit.el Paredit] has some neat
behaviours: on <del>, <bs>, it deletes both brackets characters.

What will be supported
- <bs> and <del> in normal and insert mode
- x and X in normal mode
- a way to execute the deletion without triggering the deletion of both
bracket characters

What won't be supported
- the deletion of several characters that contain a brackets characters
won't remove the pair from the text

What need more thinking:
- changing the pair of brackets characters is not very ergonomic
- what if we are within a peculiar context like comments/string ?

Original issue reported on code.google.com by luc.herm...@gmail.com on 19 Jan 2009 at 2:00

GoogleCodeExporter commented 9 years ago
Other improvement ideas: 
http://stackoverflow.com/questions/7187477/vim-smart-insert-semicolon/7189956#71
89956

Original comment by luc.herm...@gmail.com on 25 Aug 2011 at 12:05