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

Pad delimiters with spaces depending on filetype #189

Closed tybenz closed 9 years ago

tybenz commented 10 years ago

I follow jQuery's JavaScript's styleguide and pad almost all of my delimiters with spaces in my JS. For most other languages, I don't.

Example:

// javascript
function foo( arg1, arg2 ) {
    return ( 4 + 2 ) / 6;
}
# ruby
def foo(arg1, arg2)
  (4 + 2) / 6
end

Is there a setting that can add padding with spaces depending on filetype?

Raimondi commented 9 years ago

See if :help delimitMate_expand_space is what you're after.

Raimondi commented 9 years ago

Please, reopen the issue if needed.