fixed enter in normal mode when nomodifiable
This commit is contained in:
parent
3e28a6b265
commit
d92a7c0bfb
1 changed files with 2 additions and 2 deletions
4
vimrc
4
vimrc
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue