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>
|
\:call setreg(v:register, content, type)<CR>
|
||||||
|
|
||||||
" Empty Lines
|
" Empty Lines
|
||||||
nnoremap <ENTER> :call <SID>Enter(0)<CR>
|
nnoremap <leader><CR> o0
|
||||||
nnoremap <S-ENTER> :call <SID>Enter(1)<CR>
|
nnoremap <leader><leader><CR> O0
|
||||||
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
|
|
||||||
|
|
||||||
" Markdown Stuff
|
" Markdown Stuff
|
||||||
vnoremap * <C-c>`>a*<C-c>`<i*<C-c>
|
vnoremap * <C-c>`>a*<C-c>`<i*<C-c>
|
||||||
|
|
Loading…
Reference in a new issue