Jorenar / miniSnip

Lightweight snippet plugin for Vim
MIT License
53 stars 8 forks source link

Odd comment character placement when fo+=r #29

Closed jmcantrell closed 1 year ago

jmcantrell commented 1 year ago

When 'r' is included in formatoptions, the following snippet:

? Shebang
#!/usr/bin/env sh

<{+}>

Expands to this:

#!/usr/bin/env sh

#

I'm curious why this happens. It doesn't happen if I type that content in directly.