Fixed enter in normal mode

This commit is contained in:
Talia 2018-01-30 19:04:09 +01:00
parent 93b5927968
commit d88106da00

6
vimrc
View file

@ -401,11 +401,7 @@ nnoremap <ENTER> :call <SID>Enter(0)<CR>
nnoremap <S-ENTER> :call <SID>Enter(1)<CR>
function! s:Enter(shift)
if !a:shift
if col(".")-1
exe "normal o\<esc>0\"_d$"
else
exe "normal O\<esc>0\"_d$j"
end
exe "normal o\<esc>0\"_d$"
else
exe "normal O\<esc>0\"_d$"
endif