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