forked from ufUNnxagpM/unix-dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimperatorrc
executable file
·59 lines (57 loc) · 1.22 KB
/
.vimperatorrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
" Treadwell's vimperatorrc for colemak
colorscheme ashes
set defsearch=duckduckgo
set slv=hidden
"js statusline.setVisibility(statusline.setVisibility.TOGGLE)
" rebind to wasd like scrolling
nnoremap u 4k
nnoremap e 4j
nnoremap U 15k
nnoremap E 15j
nnoremap n 2h
nnoremap i 2l
" back/forward in browser history
nnoremap N :back<CR>
nnoremap I :forward<CR>
" close to the left
nnoremap , D
" close to the right
nnoremap . d
" copy current page link
nnoremap ; y
" access the command line
nnoremap \' :
nnoremap \" ;
" Set scroll size
set scroll=20
" move to the tab left/right of the current one
nnoremap l <C-p>
nnoremap y <C-n>
" search function
nnoremap <C-f> /
" undo closed tab
nnoremap <C-t> u
" Find next
nnoremap k n
" Find previous
nnoremap K N
set hintchars=arstqwfpzxcvgdb
" quick page up/down
nnoremap j <PageUp>
nnoremap h <PageDown>
" Left-hand-only browsinvim or wasd bindings
nnoremap w 4k
nnoremap r 4j
nnoremap s 2l
nnoremap a 2h
" keep winopen functionality
nnoremap W w
" back in browser history
nnoremap A :back<CR>
nnoremap S :forward<CR>
" close to left and right (note: z doesn't work because it closes browser)
nnoremap X D
nnoremap C d
" move to the tab left/right of the current one
nnoremap x <C-p>
nnoremap c <C-n>