summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--vimrc18
1 files changed, 9 insertions, 9 deletions
diff --git a/vimrc b/vimrc
index 3eec945..5509394 100644
--- a/vimrc
+++ b/vimrc
@@ -18,8 +18,17 @@ nnoremap <leader>T :vertical terminal<CR>
18nnoremap <leader>u :set clipboard=unnamedplus<CR> 18nnoremap <leader>u :set clipboard=unnamedplus<CR>
19nnoremap <C-K> ddkP 19nnoremap <C-K> ddkP
20nnoremap <C-J> ddp 20nnoremap <C-J> ddp
21
22" move
21nnoremap <Tab> } 23nnoremap <Tab> }
22nnoremap <S-Tab> { 24nnoremap <S-Tab> {
25cnoremap <C-L> <Right>
26cnoremap <C-H> <Left>
27nnoremap H 0
28nnoremap L $
29nnoremap <C-L> 60l
30nnoremap <C-H> 60h
31
23" disable syntax 32" disable syntax
24nnoremap <silent> <leader>s 33nnoremap <silent> <leader>s
25 \ : if exists("syntax_on") <BAR> 34 \ : if exists("syntax_on") <BAR>
@@ -45,15 +54,6 @@ onoremap B /return<CR>
45nnoremap <leader>; :%s:::g<Left><Left><Left> 54nnoremap <leader>; :%s:::g<Left><Left><Left>
46vnoremap <leader>; :s:::g<Left><Left><Left> 55vnoremap <leader>; :s:::g<Left><Left><Left>
47cnoremap ;\ \(\)<Left><Left> 56cnoremap ;\ \(\)<Left><Left>
48cnoremap <C-L> <Right>
49cnoremap <C-H> <Left>
50
51" 習慣成自然
52nnoremap H 0
53nnoremap L $
54nnoremap <C-L> 60l
55nnoremap <C-H> 60h
56" inoremap <ESC> <nop>
57 57
58" Fix paste bug triggered by inoremaps 58" Fix paste bug triggered by inoremaps
59set t_BE= 59set t_BE=