jiangmiao / auto-pairs

Vim plugin, insert or delete brackets, parens, quotes in pair
http://www.vim.org/scripts/script.php?script_id=3599
4.12k stars 374 forks source link

With which command to disable? #344

Closed Congstarrr closed 2 years ago

Congstarrr commented 2 years ago

With which command can I disable autopairs? I want to disable them for all .tex files and hence create an autocmd that does this, I just can't find the corresponding command.

LunarWatcher commented 2 years ago

You can use AutoPairsToggle or b:autopairs_enabled to control auto-pairs. See also #128. That said, my fork has support for a filetype blacklist if you don't want to use manual autocmds. See: https://github.com/LunarWatcher/auto-pairs/blob/8c4a035165a5af726bbcc60c78821a66083a9f98/doc/AutoPairs.txt#L1255-L1264

Congstarrr commented 2 years ago

@LunarWatcher Thanks a lot, I stupidly wrote g:autopairs_enabled which is why it didn't work earlier. Great extension!