do not map S-space as Esc
use persistent undo default folding to fold
This commit is contained in:
parent
e4c29e4f47
commit
cc31d5f1db
1 changed files with 8 additions and 1 deletions
9
.vimrc
9
.vimrc
|
|
@ -68,6 +68,13 @@ set splitbelow
|
||||||
" New vsplit placed right
|
" New vsplit placed right
|
||||||
set splitright
|
set splitright
|
||||||
|
|
||||||
|
set foldmethod=syntax
|
||||||
|
set foldlevelstart=20 " buffer are always loaded with opened folds
|
||||||
|
|
||||||
|
" persistent undo across sessions
|
||||||
|
set undofile
|
||||||
|
set undodir=~/.vim/undodir
|
||||||
|
|
||||||
let mapleader = "," " leader key is comma
|
let mapleader = "," " leader key is comma
|
||||||
|
|
||||||
" xx will delete the line without copying it into the default register
|
" xx will delete the line without copying it into the default register
|
||||||
|
|
@ -110,7 +117,7 @@ cnoremap %% <C-R>=expand('%:h').'/'<cr>
|
||||||
map <leader>p :CtrlP %%<cr>
|
map <leader>p :CtrlP %%<cr>
|
||||||
|
|
||||||
" use shift-space as escape
|
" use shift-space as escape
|
||||||
inoremap <S-Space> <Esc>
|
"inoremap <S-Space> <Esc>
|
||||||
|
|
||||||
set list
|
set list
|
||||||
" print tabs with a special character (add ",eol:·" for end of lines)
|
" print tabs with a special character (add ",eol:·" for end of lines)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue