diff options
author | typebrook <typebrook@gmail.com> | 2019-11-04 18:49:05 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-11-04 18:49:05 +0800 |
commit | 1e688c2c35929952d65d227a80746e119c347818 (patch) | |
tree | c789ec376f7c2df86497fdbcc524cc7328fb2a4c | |
parent | d0229fc28302885370b36d7dafc2799f7ea29d1f (diff) |
update
-rw-r--r-- | alias | 4 | ||||
-rw-r--r-- | vimrc | 3 |
2 files changed, 4 insertions, 3 deletions
@@ -71,9 +71,11 @@ _ranger-cd() { | |||
71 | alias df='df -h' | 71 | alias df='df -h' |
72 | 72 | ||
73 | # git | 73 | # git |
74 | alias g='git' | ||
75 | alias gc='git clone' | 74 | alias gc='git clone' |
76 | alias gc1='git clone --depth=1' | 75 | alias gc1='git clone --depth=1' |
76 | gcg() { | ||
77 | git clone git@github.com:$1/$2.git | ||
78 | } | ||
77 | alias gls='git log -S' | 79 | alias gls='git log -S' |
78 | alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule | 80 | alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule |
79 | 81 | ||
@@ -12,8 +12,7 @@ set sidescrolloff=999 | |||
12 | 12 | ||
13 | " general | 13 | " general |
14 | nmap <C-C> :q<CR> | 14 | nmap <C-C> :q<CR> |
15 | nnoremap <leader>, :w !bash<CR> | 15 | nnoremap <leader>, :.w !bash<CR> |
16 | nnoremap <leader>< :.w !bash<CR> | ||
17 | nnoremap <leader>W :set wrap!<CR> | 16 | nnoremap <leader>W :set wrap!<CR> |
18 | nnoremap <leader>T :vertical terminal<CR> | 17 | nnoremap <leader>T :vertical terminal<CR> |
19 | nnoremap <leader>u :set clipboard=unnamedplus<CR> | 18 | nnoremap <leader>u :set clipboard=unnamedplus<CR> |