aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2019-12-02 16:54:03 +0800
committertypebrook <typebrook@gmail.com>2019-12-02 16:54:03 +0800
commit3a937275bca2728a544a7284ae12ea567787152f (patch)
tree8e33b942b87ce63f3be1bd8eb7f30d9157208157
parentbea240df460237efa42fff437d5f5e389f0fb147 (diff)
update
-rw-r--r--alias2
-rw-r--r--vimrc5
2 files changed, 3 insertions, 4 deletions
diff --git a/alias b/alias
index d4bd9df..c9c9b34 100644
--- a/alias
+++ b/alias
@@ -26,7 +26,7 @@ alias si='sudo snap install' # snap install
26alias ni='sudo npm install -g' # nodejs install 26alias ni='sudo npm install -g' # nodejs install
27alias ss='sudo !!' 27alias ss='sudo !!'
28alias hg='history|grep' 28alias hg='history|grep'
29alias rmf='rm -rf' 29alias rmrf='rm -rf'
30alias rr='move_to_tmp' 30alias rr='move_to_tmp'
31move_to_tmp() { 31move_to_tmp() {
32 mv $1 /tmp 32 mv $1 /tmp
diff --git a/vimrc b/vimrc
index 7f03bdc..36c3cfd 100644
--- a/vimrc
+++ b/vimrc
@@ -64,11 +64,10 @@ cnoremap ;\ \(\)<Left><Left>
64set t_BE= 64set t_BE=
65 65
66" surround with '' or "" 66" surround with '' or ""
67nnoremap <leader>' ea'<esc>bi'<esc>e
68nnoremap <leader>" ea"<esc>bi"<esc>e
69nnoremap <leader>( ea)<esc>bi(<esc>e
70vnoremap ' <ESC>`<i'<ESC>`>la'<ESC> 67vnoremap ' <ESC>`<i'<ESC>`>la'<ESC>
71vnoremap " <ESC>`<i"<ESC>`>la"<ESC> 68vnoremap " <ESC>`<i"<ESC>`>la"<ESC>
69vnoremap ( <ESC>`<i(<ESC>`>la)<ESC>
70vnoremap { <ESC>`<i{<ESC>`>la}<ESC>
72 71
73" abbrev 72" abbrev
74iabbrev @@ typebrook@gmail.com 73iabbrev @@ typebrook@gmail.com