Skip to content

Commit

Permalink
auto save when exit insert mode
Browse files Browse the repository at this point in the history
  • Loading branch information
prontera committed Nov 25, 2017
1 parent 7510331 commit c719670
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions local.vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ let mapleader = " "

" 启用vim surround功能
set surround
" 显示行号
set nu
" 显示相对行号
set rnu
" 高亮搜索
Expand Down
5 changes: 3 additions & 2 deletions spacevim.vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ noremap ]} ] }zz
noremap <C-D> <C-D>zz
noremap <C-U> <C-U>zz
noremap [SPC]; "0p
noremap [SPC]q :x<CR>
noremap [SPC]q ZZ
" Insert
inoremap jk <Esc>
inoremap jk <Esc>:w<CR>
inoremap <ESC> <ESC>:w<CR>

0 comments on commit c719670

Please sign in to comment.