##cvim
cvim 是chrome的插件,使用vim方式方便快捷的操作浏览器。
###配置
set nohud
set nosmoothscroll
set noautofocus " The opposite of autofocus; this setting stops
" sites from focusing on an input box when they load
set typelinkhints
let searchlimit = 30
let scrollstep = 70
let barposition = "bottom"
set defaultnewtabpage
let mapleader= ";"
let defaultengine = "baidu"
let qmark a = ["https://www.baidu.com/"]
let completionengines = ["baidu","google"]
let searchalias b = "baidu"
command b tabnew baidu
map <Leader>x :restore<Space>
map <Leader>r reloadTabUncached
iunmap <C-y>
imap <C-m> deleteWord
" Code blocks (see below for more info)
getIP() -> {{
httpRequest({url: 'http://api.ipify.org/?format=json', json: true},
function(res) { Status.setMessage('IP: ' + res.ip); });
}}
" Displays your public IP address in the status bar
map ci :call getIP<CR>
" Script hints
echo(link) -> {{
alert(link.href);
}}
map <C-f> createScriptHint(echo)
快捷键
tab
| 命令 | 说明 |
|---|---|
| !、& | 在 new tab 打开(active 、inactive) |
| $ | 在 new window 打开 |
| | | 在匿名窗口中打开 |
| * | pin the tab |
| t | :tabnew |
| T | 在新标签下打开当前网页 |
| t $ | open new window |
| o | :open |
| open! baidu | open baidu in new tab |
| f/F | open link in current or new tab |
| x | 关闭tab |
移动
| 命令 | 说明 |
|---|---|
| d/u | scroll half-page down/up |
| y,p | in visual mode,copy word and search |
| g0/g$ | go to the first / last tab |
链接
| 命令 | 说明 |
|---|---|
| f/F | open link in current/new tab |
| W | open link in new window |
| gy | 拷贝当前tab下所有的链接 |
| gr | 搜索当前tab下所有的图片 |
| yy | 拷贝当前的tab网址 |
| p/P | 打开网址在当前tab/新的tab |
快捷键
| 命令 | 说明 |
|---|---|
| M<*> | 给当前的tab打标记<*> |
| go<*> | 跳转到 <*> 所标记的tab中 |
| gn*/gw* | 在 new tab/window open |
| gq | 停止刷新 |
文本操作
| 命令 | 说明 |
|---|---|
| ctrl+i | 移动到行头 |
| ctrl+e | 移动到行尾 |
| ctrl+u | 删除到行头 |
| ctrl+o | 删除到行尾 |
| ctrl+y | 删除后一个词 |
| ctrl+p | 删除前一个词 |
其他
| 命令 | 说明 |
|---|---|
| a | :tabnew google |
| N% | switch to tab N |
##界面窗口操作
##目录与文件操作
###vim中表示当前目录和当前文件名的方法
在命令行模式下:
% 当前完整的文件名
%:h 文件名的头部,即文件目录.例如…/path/test.c就会为…/path
%:t 文件名的尾部.例如…/path/test.c就会为test.c
%:r 无扩展名的文件名.例如…/path/test就会成为test
%:e 扩展名
% 当前文件名
%:h 文件名的头部.例如…/path/test.c就会为…/path
%:t 文件名的尾部.例如…/path/test.c就会为test.c
%:r 无扩展名的文件名.例如…/path/test就会成为test
%:e 扩展名
##显示
###vim显示历史命令
q: 进入命令历史编辑。
类似的还有 q/ 可以进入搜索历史编辑。
注意 q 后面如果跟随其它字母,是进入命令记录。
可以像编辑缓冲区一样编辑某个命令,然后回车执行。
也可以用 ctrl-c 退出历史编辑,但此时历史编辑窗口不关闭,可以参照之前的命令再自己输入。
用 :x 关闭历史编辑并放弃编辑结果,也可以在空命令上回车相当于退出。
cvim是一款Chrome浏览器插件,它允许用户通过vim风格的键盘操作来浏览网页,提供了一系列配置选项以增强用户体验。该插件支持多种快捷键,如tab、*等,用于快速打开标签页、固定标签页等;同时还提供了移动、文本操作等功能。
7191

被折叠的 条评论
为什么被折叠?



