fixed enter in normal mode when nomodifiable

This commit is contained in:
Talia 2018-01-30 19:12:36 +01:00
parent 3e28a6b265
commit d92a7c0bfb

4
vimrc
View file

@ -392,9 +392,9 @@ nnoremap <ENTER> :call <SID>Enter(0)<CR>
nnoremap <S-ENTER> :call <SID>Enter(1)<CR> nnoremap <S-ENTER> :call <SID>Enter(1)<CR>
function! s:Enter(shift) function! s:Enter(shift)
if !a:shift if !a:shift
exe "normal o\<esc>0\"_d$" silent exe "normal o\<esc>0\"_d$"
else else
exe "normal O\<esc>0\"_d$" silent exe "normal O\<esc>0\"_d$"
endif endif
endfunction endfunction