added ctrl-s as save in vim

This commit is contained in:
hellerve
2015-06-01 18:49:39 +02:00
parent bf1a8f8173
commit 2be96b41c0
2 changed files with 5 additions and 0 deletions

4
vimrc
View File

@@ -235,6 +235,10 @@ augroup sourcing
autocmd bufwritepost .vimrc source $MYVIMRC
augroup END
noremap <silent> <C-S> :update<CR>
vnoremap <silent> <C-S> <C-C>:update<CR>
inoremap <silent> <C-S> <C-O>:update<CR>
" Open file prompt with current path
nmap <leader>e :e <C-R>=expand("%:p:h") . '/'<CR>

1
zshrc
View File

@@ -28,6 +28,7 @@ export NODE_PATH=/usr/local/lib/node_modules
export TERM=rxvt
export LC_ALL=$LANG
alias ..="cd .."
alias vi="stty stop '' -ixoff ; vim"
alias gcc="gcc-5"
alias g++="g++-5"
alias push="git push"