gabrielelana / vim-markdown

Markdown for Vim: a complete environment to create Markdown files with a syntax highlight that doesn't suck!
MIT License
740 stars 59 forks source link

allow user to disable input mangling #29

Closed jclulow closed 9 years ago

jclulow commented 9 years ago

I noticed that when I type three periods in a row, they are suddenly converted into the Unicode HORIZONTAL ELLIPSIS character. There doesn't seem to be a way to disable this, so I looked in the code and found:

" Replace common ascii emoticons with supported emoji
iabbrev <buffer> :-) :smile:
iabbrev <buffer> :-D :laughing:
iabbrev <buffer> :-( :disappointed:

" Replace common punctuation
iabbrev <buffer> ... …
iabbrev <buffer> << «
iabbrev <buffer> >> »

It would be good to provide the user the ability to opt out of this behaviour, in the same way that they can opt out of, e.g., spell checking.

gabrielelana commented 9 years ago

Seems fair :smile: Update the plugin, add let g:markdown_enable_input_abbreviations = 0 in your .vimrc and you are good to do