Make jumping over space and CR expansions optional and off by default.

- Closes #130.
- Closes #110.
- As suggested in #95.
This commit is contained in:
Israel Chauca Fuentes
2013-06-18 16:02:37 -04:00
parent f2efe4331b
commit cfc6654855
3 changed files with 20 additions and 1 deletions

View File

@@ -21,6 +21,10 @@ function! delimitMate#ShouldJump(...) "{{{
return 1
endif
if !b:_l_delimitMate_jump_expansion
return 0
endif
" Closing delimiter with space expansion.
let nchar = delimitMate#GetCharFromCursor(1)
if !a:0 && b:_l_delimitMate_expand_space && char == " "
@@ -40,7 +44,6 @@ function! delimitMate#ShouldJump(...) "{{{
elseif a:0 && b:_l_delimitMate_expand_cr && uchar == a:1
return 5
endif
return 0
endfunction "}}}