commit 0be8924759138452888019e95a2e555db4284807 parent eb44af27c26cb0feee3af9c9b30caadb0f44a73f Author: EinfachToll <istjanichtzufassen@googlemail.de> Date: Tue, 29 Oct 2013 13:03:10 +0100 Insert new item at the right level on <S-CR> Diffstat:
M | autoload/vimwiki/lst.vim | | | 8 | +++----- |
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/autoload/vimwiki/lst.vim b/autoload/vimwiki/lst.vim @@ -1256,13 +1256,11 @@ function! s:cr_on_empty_list_item(lnum, behavior) "{{{ endfunction "}}} function! s:cr_on_empty_line(lnum, behavior) "{{{ + "inserting and deleting the x is necessary + "because otherwise the indent is lost + normal! gix if a:behavior == 2 || a:behavior == 3 - normal! gi call s:create_marker(a:lnum+1) - elseif a:behavior == 1 || a:behavior == 4 - "inserting and deleting the x is necessary - "because otherwise the indent is lost - normal! gix endif endfunction "}}}