-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.apvlvrc
174 lines (141 loc) · 3.88 KB
/
.apvlvrc
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
" Bindings"{{{
" apvlv requires capitalized <>
" navigation
" as far as I'm aware, you can't bind differently for visual or index
map n 3j
map e 3k
map tk <C-d>
map to <C-u>
map i <C-f>
map h <C-b>
map k n
map K N
map u zo
map y zi
map w zw
map j zh
map ; :
" just o for open, and in new tab by default (don't plan on using this)
map o t
map O o
" quickmarks
map " '
map 'h :open ~/ag-sys/large/library/programming/haskell/lyah.pdf<CR>
map 'p :open ~/ag-sys/large/library/programming/python/thinkpython_for_python_3.pdf<CR>
map 'c :open ~/ag-sys/large/library/programming/c/The.C.Programming.Language.2nd.Edition.pdf<CR>
" space bindings
" gt doesn't behave like vim; 3gt is gt 3 times not go to third tab
" map <Space>a 1gt
" straight from vimrc
" replace nnoremap <silent> with map and <cr> with <CR> and remove "silent "
" wm experementation"{{{
" "r" is redraw"{{{
" worskpace/Destkop switch"{{{
map ra :!bspc desktop -f ^1<CR>
map rr :!bspc desktop -f ^2<CR>
map rs :!bspc desktop -f ^3<CR>
map rt :!bspc desktop -f ^4<CR>
map rd :!bspc desktop -f ^5<CR>
map rh :!bspc desktop -f ^6<CR>
map rn :!bspc desktop -f ^7<CR>
map re :!bspc desktop -f ^8<CR>
map ri :!bspc desktop -f ^9<CR>
map ro :!bspc desktop -f ^10<CR>
"}}}
" move to destkop"{{{
map Ra :!bspc window -d ^1<CR>
map Rr :!bspc window -d ^2<CR>
map Rs :!bspc window -d ^3<CR>
map Rt :!bspc window -d ^4<CR>
map Rd :!bspc window -d ^5<CR>
map Rh :!bspc window -d ^6<CR>
map Rn :!bspc window -d ^7<CR>
map Re :!bspc window -d ^8<CR>
map Ri :!bspc window -d ^9<CR>
map Ro :!bspc window -d ^10<CR>
"}}}
" moving windows within desktop"{{{
" move to biggest
map rcm :!bspc window -s biggest<CR>
" directions
map rch :!bspc window -s left<CR>
map rcn :!bspc window -s down<CR>
map rce :!bspc window -s up<CR>
map rci :!bspc window -s right<CR>
" circulate
map r. :!bspc desktop -C forward<CR>
map r, :!bspc desktop -C backward<CR>
"}}}
"resize"{{{
map rmh :!~/bin/less_wm/resize_left.sh<CR>
map rmn :!~/bin/less_wm/resize_down.sh<CR>
map rme :!~/bin/less_wm/resize_up.sh<CR>
map rmi :!~/bin/less_wm/resize_right.sh<CR>
"}}}
" open urxvt
map ru :!urxvt &<CR>
"}}}
" s becomes select/Show/settings"{{{
"select
map sh :!bspc window -f left<CR><esc>
map sn :!bspc window -f down<CR><esc>
map se :!bspc window -f up<CR><esc>
map si :!bspc window -f right<CR><esc>
map sl :!bspc window -f last<CR><esc>
" monocle toggle
map st :!bspc desktop -l next<CR>
map ss :!bspc window -t sticky<CR><esc>
map sf :!bspc window -t fullscreen<CR>
" gap up and down
map su :!bspc config -d focused window_gap $((`bspc config -d focused window_gap` - 4 ))<CR>
map sU :!bspc config -d focused window_gap $((`bspc config -d focused window_gap` + 4 ))<CR>
" preselect"{{{
map sph :!bspc window -p left<CR>
map spn :!bspc window -p down<CR>
map spe :!bspc window -p up<CR>
map spi :!bspc window -p right<CR>
map spx :!bspc window -p cancel<CR>
map spd :!bspc desktop -c<CR>
"}}}
"}}}
"}}}
"}}}
" Settings"{{{
" zoom value, default is fitwidth
" zoom has 4 styles
" a float type number
" fitwidth
" fitheight
" normal
set zoom=fitwidth
" set command timeout between two key press
set commandtimeout=2000
" set if use visual mode to select and copy text
set visualmode=yes
set autoreload=1
" set if use right and bottom scrollbar
set scrollbar=no
" don't start with index
set content=no
" show bottom of one page and top of next without jut directly skipping
set autoscrollpage=yes
set continuous=yes
" set a pad to continuous page
set continuouspad=2
" can scroll from last page from first
set autoscrolldoc=yes
" set if disable ~/.apvlvinfo, default is no
" store info about current location in documents so will load there
set noinfo=no
" set pdf object cache size
" set pdfcache = 4
" set if wrapscan text
set wrapscan=yes
" set double click action
" option value is 'word', 'line' or 'page'
set doubleclick=line
" set GUI options
" m means menu, T means toolbar
set guioptions=
"}}}
" vim: set ft=vim: