1

This is something what I miss from other editors. I'm looking for a plugin/config which adds closing mark for some characters automatically.

For example, when I type (, it add ) and prompt will be between it. Similarly with {, " etc. This would be very helpful for me. I know I can do it using Vim command, but my goal is do it automatically.

Siper
  • 1,175
  • 1
  • 14
  • 39
  • There are many plugins (see http://vim.wikia.com/index.php?title=Automatically_append_closing_characters) and many questions SO on this subject. – Luc Hermitte Jun 06 '16 at 13:11

1 Answers1

4

There is a plugin named auto-pairs.vim available in github. See here : https://github.com/jiangmiao/auto-pairs

It can automatically insert closing brackets and quotes and puts prompt in between both.

It is smart and doesn't insert matching brackets for escaped brackets. It works even if you nest different brackets.

SibiCoder
  • 1,396
  • 10
  • 21