Change mappings for insert empty line

This commit is contained in:
Talia 2020-03-22 11:56:48 +01:00
parent b99292ce28
commit 05ee7ce670
1 changed files with 2 additions and 9 deletions

11
vimrc
View File

@ -622,15 +622,8 @@ nnoremap [p :let [content, type]=
\:call setreg(v:register, content, type)<CR>
" Empty Lines
nnoremap <ENTER> :call <SID>Enter(0)<CR>
nnoremap <S-ENTER> :call <SID>Enter(1)<CR>
function! s:Enter(shift)
if !a:shift
silent exe "normal o\<esc>0\"_d$"
else
silent exe "normal O\<esc>0\"_d$j"
endif
endfunction
nnoremap <leader><CR> o0
nnoremap <leader><leader><CR> O0
" Markdown Stuff
vnoremap * <C-c>`>a*<C-c>`<i*<C-c>