Raimondi / delimitMate

Vim plugin, provides insert mode auto-completion for quotes, parens, brackets, etc.
http://www.vim.org/scripts/script.php?script_id=2754
1.98k stars 117 forks source link

Support for multi-line strings #142

Closed daGrevis closed 11 years ago

daGrevis commented 11 years ago

In Python or CoffeeScript you can write like this:

"""
Multi
line
""""

By typing """ in Vim, it should add closing """ and put cursor in between.

qstrahl commented 11 years ago

I'm not sure that it's within the scope of delimitMate to accommodate every pair-pattern in every programming language.

Raimondi commented 11 years ago

While I agree with @qstrahl, this case is supported. See :help 'delimitMate_nesting_quotes'.

daGrevis commented 11 years ago

Thanks!

Are there any options that would enable closing of {%? I went through options, but couldn't find anything useful.

I'm not sure that it's within the scope of delimitMate to accommodate every pair-pattern in every programming language.

I don't see why this is a bad thing until it doesn't disturb the work. And that's where FileType comes in.

Raimondi commented 11 years ago

I have no idea what format that has, but you could add % to matchpairs or delimitMate_matchpairs.

Multi-char pairs are not supported and won't be supported. The nested case is an exception because it was an easy thing to add.