improved enter in normal mode

This commit is contained in:
Talia 2018-01-30 19:22:35 +01:00
parent 2468075090
commit 00a5a359c6

4
vimrc
View file

@ -315,7 +315,7 @@ function! s:snapshot()
let l:filetype = &filetype let l:filetype = &filetype
let l:clipboard = @" let l:clipboard = @"
silent 1,$yank " silent 0,$yank "
below new below new
set modifiable set modifiable
silent put " silent put "
@ -415,7 +415,7 @@ function! s:Enter(shift)
if !a:shift if !a:shift
silent exe "normal o\<esc>0\"_d$" silent exe "normal o\<esc>0\"_d$"
else else
silent exe "normal O\<esc>0\"_d$" silent exe "normal O\<esc>0\"_d$j"
endif endif
endfunction endfunction