added ctrl-s as save in vim
This commit is contained in:
4
vimrc
4
vimrc
@@ -235,6 +235,10 @@ augroup sourcing
|
|||||||
autocmd bufwritepost .vimrc source $MYVIMRC
|
autocmd bufwritepost .vimrc source $MYVIMRC
|
||||||
augroup END
|
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
|
" Open file prompt with current path
|
||||||
nmap <leader>e :e <C-R>=expand("%:p:h") . '/'<CR>
|
nmap <leader>e :e <C-R>=expand("%:p:h") . '/'<CR>
|
||||||
|
|
||||||
|
1
zshrc
1
zshrc
@@ -28,6 +28,7 @@ export NODE_PATH=/usr/local/lib/node_modules
|
|||||||
export TERM=rxvt
|
export TERM=rxvt
|
||||||
export LC_ALL=$LANG
|
export LC_ALL=$LANG
|
||||||
alias ..="cd .."
|
alias ..="cd .."
|
||||||
|
alias vi="stty stop '' -ixoff ; vim"
|
||||||
alias gcc="gcc-5"
|
alias gcc="gcc-5"
|
||||||
alias g++="g++-5"
|
alias g++="g++-5"
|
||||||
alias push="git push"
|
alias push="git push"
|
||||||
|
Reference in New Issue
Block a user