| 1 | HEADER |
|---|
| 2 | |
|---|
| 3 | |surfing| |browsing| + |
|---|
| 4 | |
|---|
| 5 | Vimperator overrides nearly all Firefox keys in order to make browsing more |
|---|
| 6 | pleasant for Vim users. On the rare occasions when you want to pass a keystroke |
|---|
| 7 | to Firefox, or to the web page, and have it retain its original meaning you |
|---|
| 8 | have 2 possibilities: |
|---|
| 9 | |
|---|
| 10 | |pass-through| |<C-z>| |CTRL-Z| + |
|---|
| 11 | ||CTRL-Z|| |
|---|
| 12 | ________________________________________________________________________________ |
|---|
| 13 | [m]<Esc>[m] $B$r$N$>$/A4$F$N(B Vimperator $B%-!<$rL58z$K$7$F!"<!$N%$%Y%s%H%O%s%I%i$K$=$l$i$r%Q%9$9$k!#(B |
|---|
| 14 | Gmail $B$N%j%C%A%(%G%#%C%H%U%)!<%`$N$h$&$J(B JavaScript $B$G@)8f$5$l$F$$$k%U%)!<%`$,5!G=$7$J$$>l9g$K!"FC$KJXMx$G$9!#(B |
|---|
| 15 | $B$3$N%b!<%I$rH4$1$k$K$O!"(B[m]<Esc>[m] $B$r2!$7$^$9!#(B |
|---|
| 16 | $B$b$7!"$3$N%b!<%I$G(B [m]<Esc>[m] $B$b%&%'%V%Z!<%8$K%Q%9$7$?$$$N$G$"$l$P!"$=$NA0$K(B[m]<C-v>[m] $B$r2!$7$^$9!#(B |
|---|
| 17 | ________________________________________________________________________________ |
|---|
| 18 | |
|---|
| 19 | |send-key| |<C-v>| |CTRL-V| + |
|---|
| 20 | ||CTRL-V|| |
|---|
| 21 | ________________________________________________________________________________ |
|---|
| 22 | JavaScript $B%U%)!<%`$d!"B>$N3HD%$KC10l$N%-!<$r%Q%9$7$?$$>l9g$O!"(B[m]<C-v>[m] $B$r@h$K2!$7$^$9!#(B |
|---|
| 23 | $B$^$?!"$3$l$O(B [m]<C-o>[m] $B$N$h$&$J0c$C$?7A$G(B Vimperator $B$KL58z$K$5$l$k%7%g!<%H%+%C%H%-!<$K$bF/$-$^$9!#(B |
|---|
| 24 | Vimperator $B$N%b!<%I$,(B [m]<C-z>[m] $B$K$h$C$F0l;~E*$KL58z$K$5$l$F$$$k;~!"(B [m]<C-v>[m] $B$O%&%'%V%Z!<%8$NBe$o$j$K(B Vimperator $B$K%-!<$rAw$j$^$9!#(B |
|---|
| 25 | ________________________________________________________________________________ |
|---|
| 26 | |
|---|
| 27 | section:Opening{nbsp}web{nbsp}pages[opening] |
|---|
| 28 | |
|---|
| 29 | |o| |:o| |:open| |
|---|
| 30 | ||:o[pen][!] [a][arg1][a], [a][arg2][a], ...|| + |
|---|
| 31 | ||o|| |
|---|
| 32 | ________________________________________________________________________________ |
|---|
| 33 | $B8=:_$N%?%V$K!"(BURL $B$r3+$/!#(B |
|---|
| 34 | $BJ#?t$N(B URL $B$r;XDj$9$k>l9g$O!"(B'urlseparator' $B$G6h@Z$k!#(B |
|---|
| 35 | ('urlseparator' $B$N%G%U%)%k%H$O(B ", " $B%3%s%^$N8e$K%9%Z!<%9$,I,MW$J$3$H$KCm0U(B) |
|---|
| 36 | $B$=$l$>$l$N%H!<%/%s$O!"0J2<$N=g$G2r<a$5$l$k(B: |
|---|
| 37 | |
|---|
| 38 | 1. $B4{B8$NAjBP(B/$B@dBP%U%!%$%kL>$N>l9g!"%m!<%+%k%U%!%$%k$H$7$F3+$/(B |
|---|
| 39 | - [c]:open /etc/fstab[c] $B%U%!%$%k%7%9%F%`%F!<%V%k$r3+$/(B |
|---|
| 40 | - [c]:open ../other/foo.html[c] $B%[!<%`%G%#%l%/%H%j$N$r3+$/(B [a]/home/other/foo.html[a] |
|---|
| 41 | 2. $B%H!<%/%s$,8!:wJ8;zNs$NMM$G!"=i$a$NC18l$,%5!<%A%(%s%8%sL>$G$"$l$P!";XDj$N%5!<%A%(%s%8%s$G3+$/(B([c]:open wikipedialinus torvalds[c] $B$O(B linus torvalds $B$N(B Wikipedia $B%(%s%H%j$r3+$/(B) |
|---|
| 42 | $B%5!<%A%(%s%8%s$KC;=LL>$O!"$=$NL>A0$+$i<+F0E*$K?dB,$5$l$k!#(B |
|---|
| 43 | $BL>A0$rJQ99$7$?$$>l9g$O!"(B[c]:dialog searchengines[c] $B$GJQ99$G$-$k!#(B |
|---|
| 44 | 3. $B:G=i$NC18l$,%5!<%A%(%s%8%s$G$J$1$l$P!"%G%U%)%k%H$N%5!<%A%(%s%8%s$+%-!<%o!<%I(B('defsearch' $B%*%W%7%g%s$G;XDj$5$l$?J*(B)$B$G3+$+$l$k(B |
|---|
| 45 | ([c]:open linus torvalds[c] $B$O(B linus torvalds $B$G(B Google $B8!:w$9$k(B) |
|---|
| 46 | 4. $BB>$NA4$F$N>l9g$O!"$=$N$^$^(B Firefox $B$KG$$5$l$k!#(B |
|---|
| 47 | ([c]:open www.osnews.com, www.slashdot.org[c] $B$O!"(BOSNews $B$r%+%l%s%H$G!"(BSlashdot $B$r?7$7$$%?%V$K%P%C%/%0%i%&%s%I$G3+$/(B) |
|---|
| 48 | |
|---|
| 49 | [c]:open -tags linux torvalds<Tab>[c] $B$H$7$F!"%?%0(B "linux" $B$H(B "torvalds" $B$r4^$`%V%C%/%^!<%/$GJd40$,=PMh$^$9!#(B |
|---|
| 50 | -tags $B$O(B Tab $BJd40$G$N$_M-8z$G!"<B:]$K%3%^%s%I$G$O$J$$$3$H$KCm0U$7$F$/$@$5$$!#(B |
|---|
| 51 | [m]<Tab>[m] $B$G$NJd40FbMF$O!"(B'complete' $B%*%W%7%g%s$G;XDj$G$-$^$9!#(B |
|---|
| 52 | $B0z?t$,L5$$$H$-$O!"8=:_$N%Z!<%8$,%j%m!<%I$5$l$^$9!#(B |
|---|
| 53 | $B0z?t$,L5$/$F(B "!" $B$,;XDj$5$l$?$H$-$O!"8=:_$N%Z!<%8$,%-%c%C%7%e$r%9%-%C%W$7$F%j%m!<%I$5$l$^$9!#(B |
|---|
| 54 | ________________________________________________________________________________ |
|---|
| 55 | |
|---|
| 56 | |
|---|
| 57 | |t| |:t| |:tabopen| |:tabnew| |:tabe| |:tabedit| |
|---|
| 58 | ||:tabopen[!] [a][arg1][a], [a][arg2][a], ...|| + |
|---|
| 59 | ||t|| |
|---|
| 60 | ________________________________________________________________________________ |
|---|
| 61 | [c]:open[c] $B$HF1$8$G$9$,!"?7$7$$%?%V$K3+$-$^$9!#(B |
|---|
| 62 | "!" $B$r;XDj$7$?>l9g$O!"(B When used with [!], the 'tabopen' value of the 'activate' option is negated. |
|---|
| 63 | ________________________________________________________________________________ |
|---|
| 64 | |
|---|
| 65 | |
|---|
| 66 | |T| + |
|---|
| 67 | ||T|| |
|---|
| 68 | ________________________________________________________________________________ |
|---|
| 69 | Open one or more URLs in a new tab, based on current location. Works like |
|---|
| 70 | [m]t[m], but preselects current URL in the [c]:tabopen[c] query. |
|---|
| 71 | ________________________________________________________________________________ |
|---|
| 72 | |
|---|
| 73 | |
|---|
| 74 | |:tabd| |:tabduplicate| |
|---|
| 75 | ||:[count]tabd[uplicate][!]|| + |
|---|
| 76 | ________________________________________________________________________________ |
|---|
| 77 | Duplicates current tab [count] times. Uses 'tabopen' value of the 'activate' to |
|---|
| 78 | determine if last cloned tab should be activated. When used with [!], 'tabopen' |
|---|
| 79 | value is negated. |
|---|
| 80 | ________________________________________________________________________________ |
|---|
| 81 | |
|---|
| 82 | |
|---|
| 83 | |O| + |
|---|
| 84 | ||O|| |
|---|
| 85 | ________________________________________________________________________________ |
|---|
| 86 | Open one or more URLs in the current tab, based on current location. Works |
|---|
| 87 | like [m]o[m], but preselects current URL in the [c]:open[c] query. |
|---|
| 88 | ________________________________________________________________________________ |
|---|
| 89 | |
|---|
| 90 | |
|---|
| 91 | |:winopen| |:wopen| |:winedit| |
|---|
| 92 | ||:wino[pen][!] [a][arg1][a], [a][arg2][a], ...|| + |
|---|
| 93 | ________________________________________________________________________________ |
|---|
| 94 | Just like help::open[browsing.html#opening], but opens the resulting web page(s) |
|---|
| 95 | in a new window. |
|---|
| 96 | ________________________________________________________________________________ |
|---|
| 97 | |
|---|
| 98 | |
|---|
| 99 | |<MiddleMouse>| |p| + |
|---|
| 100 | ||p|| |
|---|
| 101 | ________________________________________________________________________________ |
|---|
| 102 | Open (put) a URL based on the current clipboard contents in the current buffer. |
|---|
| 103 | You can also just select (for non-X11 users: copy) some non-URL text, and |
|---|
| 104 | search for it with the default search engine or keyword (specified by the |
|---|
| 105 | 'defsearch' option) with [m]p[m]. |
|---|
| 106 | ________________________________________________________________________________ |
|---|
| 107 | |
|---|
| 108 | |
|---|
| 109 | |P| + |
|---|
| 110 | ||P|| |
|---|
| 111 | ________________________________________________________________________________ |
|---|
| 112 | Open (put) a URL based on the current clipboard contents in a new buffer. Works |
|---|
| 113 | like [m]p[m], but opens a new tab. + |
|---|
| 114 | Whether the new buffer is activated, depends on the 'activate' option. |
|---|
| 115 | ________________________________________________________________________________ |
|---|
| 116 | |
|---|
| 117 | |
|---|
| 118 | |gP| + |
|---|
| 119 | ||gP|| |
|---|
| 120 | ________________________________________________________________________________ |
|---|
| 121 | Open (put) a URL based on the current clipboard contents in a new buffer. |
|---|
| 122 | Works like [m]P[m], but inverts the 'activate' option. |
|---|
| 123 | ________________________________________________________________________________ |
|---|
| 124 | |
|---|
| 125 | |
|---|
| 126 | |<C-x>| |
|---|
| 127 | ||[count]<C-x>|| |
|---|
| 128 | ________________________________________________________________________________ |
|---|
| 129 | Decrements the last number in URL by 1, or by [count] if given. Negative |
|---|
| 130 | numbers are not supported, as this not generally useful, so the number cannot |
|---|
| 131 | be decremented past 0. |
|---|
| 132 | ________________________________________________________________________________ |
|---|
| 133 | |
|---|
| 134 | |
|---|
| 135 | |<C-a>| |
|---|
| 136 | ||[count]<C-a>|| |
|---|
| 137 | ________________________________________________________________________________ |
|---|
| 138 | Increments the last number in URL by 1, or by [count] if given. |
|---|
| 139 | ________________________________________________________________________________ |
|---|
| 140 | |
|---|
| 141 | |
|---|
| 142 | |\~| + |
|---|
| 143 | ||\~|| |
|---|
| 144 | ________________________________________________________________________________ |
|---|
| 145 | Open home directory. You can also use the hints and have the probably fastest |
|---|
| 146 | file browser on earth. :) |
|---|
| 147 | ________________________________________________________________________________ |
|---|
| 148 | |
|---|
| 149 | section:Navigating[navigating] |
|---|
| 150 | |
|---|
| 151 | |H| |<C-o>| |CTRL-O| |:ba| |:back| |
|---|
| 152 | ||:[count]ba[ck] {url}|| + |
|---|
| 153 | ||:ba[ck]!|| + |
|---|
| 154 | ||CTRL-o|| |
|---|
| 155 | ________________________________________________________________________________ |
|---|
| 156 | Go [count] pages back in the browser history. If {url} is specified go back to |
|---|
| 157 | the first matching URL. The special version [c]:back![c] goes to the beginning |
|---|
| 158 | of the browser history. |
|---|
| 159 | ________________________________________________________________________________ |
|---|
| 160 | |
|---|
| 161 | |
|---|
| 162 | |L| |<C-i>| |CTRL-i| |:fo| |:fw| |:forward| |
|---|
| 163 | ||:[count]fo[rward] {url}|| + |
|---|
| 164 | ||:fo[rward]!|| + |
|---|
| 165 | ||CTRL-i|| |
|---|
| 166 | ________________________________________________________________________________ |
|---|
| 167 | Go [count] pages forward in the browser history. If {url} is specified go |
|---|
| 168 | forward to the first matching URL. The special version [c]:forward![c] goes to |
|---|
| 169 | the end of the browser history. |
|---|
| 170 | ________________________________________________________________________________ |
|---|
| 171 | |
|---|
| 172 | |
|---|
| 173 | |:ju| |:jumps| |
|---|
| 174 | ||:ju[mps]|| |
|---|
| 175 | ________________________________________________________________________________ |
|---|
| 176 | List all jumps aka current tab's history aka session history. |
|---|
| 177 | |
|---|
| 178 | Current history position is marked with >, jump numbers are counters to be used |
|---|
| 179 | with [c]:back[c] (above zero record) or [c]:forward[c] (below zero record). |
|---|
| 180 | ________________________________________________________________________________ |
|---|
| 181 | |
|---|
| 182 | |
|---|
| 183 | |gh| |
|---|
| 184 | ||gh|| |
|---|
| 185 | ________________________________________________________________________________ |
|---|
| 186 | Go home. Opens the homepage in the current tab. |
|---|
| 187 | ________________________________________________________________________________ |
|---|
| 188 | |
|---|
| 189 | |
|---|
| 190 | |gH| + |
|---|
| 191 | ||gH|| |
|---|
| 192 | ________________________________________________________________________________ |
|---|
| 193 | Go home in a new tab. Opens the homepage in a new tab. Whether the new tab is |
|---|
| 194 | activated or not depends on the 'activate' option. |
|---|
| 195 | ________________________________________________________________________________ |
|---|
| 196 | |
|---|
| 197 | |
|---|
| 198 | |gu| |
|---|
| 199 | ||[count]gu|| |
|---|
| 200 | ________________________________________________________________________________ |
|---|
| 201 | Go to [count]th parent directory. + |
|---|
| 202 | |
|---|
| 203 | [m]2gu[m] on _http://www.example.com/dir1/dir2/file.htm_ opens |
|---|
| 204 | _http://www.example.com/dir1/_. |
|---|
| 205 | ________________________________________________________________________________ |
|---|
| 206 | |
|---|
| 207 | |
|---|
| 208 | |gU| |
|---|
| 209 | ||gU|| |
|---|
| 210 | ________________________________________________________________________________ |
|---|
| 211 | Go to the root of the web site. + |
|---|
| 212 | |
|---|
| 213 | [m]gU[m] on _http://www.example.com/dir1/dir2/file.htm_ opens |
|---|
| 214 | _http://www.example.com/_. |
|---|
| 215 | When browsing a local directory, it goes to the root directory. |
|---|
| 216 | ________________________________________________________________________________ |
|---|
| 217 | |
|---|
| 218 | section:Reloading[reloading] |
|---|
| 219 | |
|---|
| 220 | |r| |
|---|
| 221 | ||r|| |
|---|
| 222 | ________________________________________________________________________________ |
|---|
| 223 | Force reloading of the current page. |
|---|
| 224 | ________________________________________________________________________________ |
|---|
| 225 | |
|---|
| 226 | |
|---|
| 227 | |R| |
|---|
| 228 | ||R|| |
|---|
| 229 | ________________________________________________________________________________ |
|---|
| 230 | Force reloading of the current page skipping the cache. |
|---|
| 231 | ________________________________________________________________________________ |
|---|
| 232 | |
|---|
| 233 | |
|---|
| 234 | |:re| |:reload| + |
|---|
| 235 | ||:re[load][!]|| |
|---|
| 236 | ________________________________________________________________________________ |
|---|
| 237 | Reload current page. Forces reloading of the current page. If [!] is |
|---|
| 238 | given, skip the cache. |
|---|
| 239 | ________________________________________________________________________________ |
|---|
| 240 | |
|---|
| 241 | |
|---|
| 242 | |:reloada| |:reloadall| + |
|---|
| 243 | ||:reloada[ll][!]|| |
|---|
| 244 | ________________________________________________________________________________ |
|---|
| 245 | Reload all pages. Forces reloading of all pages. If [!] is given, skip the cache. |
|---|
| 246 | ________________________________________________________________________________ |
|---|
| 247 | |
|---|
| 248 | section:Stopping[stopping] |
|---|
| 249 | |
|---|
| 250 | |<C-c>| |
|---|
| 251 | ||<C-c>|| |
|---|
| 252 | ________________________________________________________________________________ |
|---|
| 253 | Stop loading the current web page. |
|---|
| 254 | ________________________________________________________________________________ |
|---|
| 255 | |
|---|
| 256 | |
|---|
| 257 | |:st| |:stop| |
|---|
| 258 | ||:st[op]|| |
|---|
| 259 | ________________________________________________________________________________ |
|---|
| 260 | Stop loading. Stop loading current web page. |
|---|
| 261 | ________________________________________________________________________________ |
|---|
| 262 | |
|---|
| 263 | section:Writing[writing,save-file] |
|---|
| 264 | |
|---|
| 265 | |:w| |:write| |:sav| |:saveas| + |
|---|
| 266 | ||:sav[eas][!] [a][file][a]|| |
|---|
| 267 | ________________________________________________________________________________ |
|---|
| 268 | Save current web page to disk. If [a][file][a] is omitted, save to the page's |
|---|
| 269 | default filename. Existing documents will only be overwritten if [!] is given. |
|---|
| 270 | ________________________________________________________________________________ |
|---|
| 271 | |
|---|
| 272 | section:Quitting[quitting,save-session] |
|---|
| 273 | |
|---|
| 274 | |:q| |:quit| + |
|---|
| 275 | ||:q[uit]|| |
|---|
| 276 | ________________________________________________________________________________ |
|---|
| 277 | Quit current tab. If this is the last tab in the window, close the window. If |
|---|
| 278 | this was the last window, close Vimperator. When quitting Vimperator, the |
|---|
| 279 | session is not stored. |
|---|
| 280 | ________________________________________________________________________________ |
|---|
| 281 | |
|---|
| 282 | |
|---|
| 283 | |:qa| |:qall| |:quita| |:quitall| + |
|---|
| 284 | ||:quita[ll]|| |
|---|
| 285 | ________________________________________________________________________________ |
|---|
| 286 | Quit Vimperator. Quit Vimperator, no matter how many tabs/windows are open. |
|---|
| 287 | The session is not stored. |
|---|
| 288 | ________________________________________________________________________________ |
|---|
| 289 | |
|---|
| 290 | |
|---|
| 291 | |:wc| |:wclose| |:winc| |:winclose| |
|---|
| 292 | ||:winc[lose]|| + |
|---|
| 293 | ________________________________________________________________________________ |
|---|
| 294 | Close window. |
|---|
| 295 | ________________________________________________________________________________ |
|---|
| 296 | |
|---|
| 297 | |
|---|
| 298 | |:xa| |:xall| |:wq| |:wqa| |:wqall| |
|---|
| 299 | ||:wqa[ll]|| + |
|---|
| 300 | ||:xa[ll]|| |
|---|
| 301 | ________________________________________________________________________________ |
|---|
| 302 | Save the session and quit. Quit Vimperator, no matter how many tabs/windows |
|---|
| 303 | are open. The session is stored. [c]:wq[c] is different as in Vim, as it |
|---|
| 304 | closes the window instead of just one tab by popular demand. Complain on the |
|---|
| 305 | mailing list, if you want to change that. |
|---|
| 306 | ________________________________________________________________________________ |
|---|
| 307 | |
|---|
| 308 | |
|---|
| 309 | |ZQ| |
|---|
| 310 | ||ZQ|| |
|---|
| 311 | ________________________________________________________________________________ |
|---|
| 312 | Quit and don't save the session. Works like [c]:qall[c]. |
|---|
| 313 | ________________________________________________________________________________ |
|---|
| 314 | |
|---|
| 315 | |
|---|
| 316 | |ZZ| |
|---|
| 317 | ||ZZ|| |
|---|
| 318 | ________________________________________________________________________________ |
|---|
| 319 | Quit and save the session. Quit Vimperator, no matter how many tabs/windows |
|---|
| 320 | are open. The session is stored. Works like [c]:xall[c]. |
|---|
| 321 | ________________________________________________________________________________ |
|---|
| 322 | |
|---|
| 323 | section:The{nbsp}current{nbsp}directory[current-directory] |
|---|
| 324 | |
|---|
| 325 | |:chd| |:chdir| |:cd| |
|---|
| 326 | ||:cd [-|path]|| |
|---|
| 327 | ________________________________________________________________________________ |
|---|
| 328 | Change the current directory. [c]:cd -[c] changes to the last directory. |
|---|
| 329 | ________________________________________________________________________________ |
|---|
| 330 | |
|---|
| 331 | |
|---|
| 332 | |:pw| |:pwd| |
|---|
| 333 | ||:pw[d]|| |
|---|
| 334 | ________________________________________________________________________________ |
|---|
| 335 | Print the current directory name. |
|---|
| 336 | ________________________________________________________________________________ |
|---|
| 337 | |
|---|
| 338 | // vim: set syntax=asciidoc: |
|---|