xolox / vim-notes

Easy note taking in Vim
http://peterodding.com/code/vim/notes/
1.6k stars 110 forks source link

notes_smart_quotes and clash with auto-pairs #58

Closed paulhkulla closed 10 years ago

paulhkulla commented 10 years ago

Any way to make vim-notes not conflict with https://github.com/jiangmiao/auto-pairs ?

Currently after auto-pairs is loaded it will cause vim-notes not to convert " to ” and ' to ‘ and * to bold and _ to italics

Maybe some other things as well. Trying to disable auto-pairs with its inbuilt let b:autopairs_enabled = 0 has no effect in bringing back the auto convert functionality of vim-notes.

Please look into this when you get a chance and let me know, I will be grateful

xolox commented 10 years ago

I haven't tried the autopairs plug-in, I just took a look at its source code but I'm pretty sure the problem is solved when you add this to your vimrc script:

autocmd FileType notes let b:autopairs_loaded = 1

I'm closing this issue now but if the problem is not resolved feel free to reopen it.