vimrc icon indicating copy to clipboard operation
vimrc copied to clipboard

smart parenthesis drives me crazy how to turn it off?

Open cederom opened this issue 7 years ago • 3 comments

Hello world, the new VIM plugins collection is very nice, however now it statrts to write and format code for me, which is quite irritating, especially when it does not allow me to close the parenthesis..

How can I disable this particular function? I want to open and close parenthesis by hand on my own ;-)

So far I have commented out one or two main lines from the ~/.vimrc loosing also some other nice functinalities..

Any hints appreciated :-)

cederom avatar May 18 '19 10:05 cederom

After doing a lot of research found out this installed plugin auto-pairs. Looking inside it found the solution:

Add this to your vimrc (<leader> e, or ~/.vim_runtime/my_configs.vim)

let b:autopairs_enabled=0

pablodo avatar Jun 29 '19 23:06 pablodo

Thanks for answering, @pablodo 🙏

amix avatar Nov 17 '19 15:11 amix

Sometimes if we don't want to disable all the auto pair function. we can add line: let g:AutoPairs = {'{':'}'} in .vim_runtime/my_configs.vim for example, this only enable auto complete "{}"

kid1412z avatar May 11 '20 06:05 kid1412z