From 8edad2f43d7954cedc0651d01446ab90d22f6e86 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Mon, 23 Oct 2017 14:28:12 +0200 Subject: [PATCH] New-line function now clears new line This is only relevant when vim auto-generates some text for the new line, for example then continuing multiple line comments. --- vimrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vimrc b/vimrc index 318d9c7..7e352f9 100644 --- a/vimrc +++ b/vimrc @@ -66,7 +66,7 @@ set shiftwidth=2 set gdefault set wrap -" au BufEnter,BufRead * set linebreak +au BufEnter,BufRead * set linebreak set breakat=\ .,{ set display+=lastline set showbreak=+->\ @@ -93,7 +93,7 @@ noremap Q @q nnoremap gQ noremap :w noremap :hide -noremap :close +noremap :bdelete nnoremap :bnext nnoremap :bprevious noremap :setl number! @@ -120,12 +120,12 @@ nnoremap :call Enter(1) function! s:Enter(shift) if !a:shift if col(".")-1 - exe "normal o\" + exe "normal o\0d$" else - exe "normal O\j0" + exe "normal O\0d$j0" end else - exe "normal O\j" + exe "normal O\0d$j" endif endfunction