Change mappings for insert empty line
This commit is contained in:
parent
b99292ce28
commit
05ee7ce670
1 changed files with 2 additions and 9 deletions
11
vimrc
11
vimrc
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue