projects
/
dotfiles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
965f5b3
)
vim - fix backspace not work as expected in lower vim
author
Peng Li
<seudut@gmail.com>
Sat, 23 Jun 2018 12:09:34 +0000
(20:09 +0800)
committer
Peng Li
<seudut@gmail.com>
Sat, 23 Jun 2018 12:09:34 +0000
(20:09 +0800)
vim/vimrc
patch
|
blob
|
history
diff --git
a/vim/vimrc
b/vim/vimrc
index
5c4c06a
..
dafbea7
100644
(file)
--- a/
vim/vimrc
+++ b/
vim/vimrc
@@
-84,6
+84,7
@@
set confirm
set nostartofline " don't jump to first character when paging
set wrap
set expandtab
set nostartofline " don't jump to first character when paging
set wrap
set expandtab
+set backspace=indent,eol,start
"set textwidth, formatoptions for chinese
set formatoptions+=m
set colorcolumn=+1
"set textwidth, formatoptions for chinese
set formatoptions+=m
set colorcolumn=+1
@@
-119,6
+120,8
@@
endif
" Mappings ---------------------------------------------------------------- {{{
let mapleader = ";"
map Q gq
" Mappings ---------------------------------------------------------------- {{{
let mapleader = ";"
map Q gq
+nnoremap Q <Nop>
+nnoremap gq <Nop>
" Normal mode ------------------------------------------------------------- {{{
nnoremap Y y$
nnoremap ' `
" Normal mode ------------------------------------------------------------- {{{
nnoremap Y y$
nnoremap ' `