Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix README error #1793

Merged
merged 2 commits into from
Aug 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Now here is a small practice,
1. press `sg` to see what will happen.
1. press `v` again to back to normal mode.

All mappings added with `vmapkey` work in this mode, with some built-in mappings like those in VIM - `j` `k` `h` `l` `b` `w``0` `$` etc.
All mappings added with `vmapkey` work in this mode, with some built-in mappings like those in VIM - `j` `k` `h` `l` `b` `w` `0` `$` etc.

![search_selected](https://cloud.githubusercontent.com/assets/288207/17644215/759f1e70-61b3-11e6-8bf8-0bdff7d0c933.gif)

Expand Down
6 changes: 3 additions & 3 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,16 @@ Surfingkeys有三种模式:normal,visual和insert。

### Visual mode,用于选中文本,以及各种针对选中文本的操作

除了通过函数`vmapkey`添加的所有按键在这种模式下有用,此外还有一些内置类似vim的按键,如`j` `k` `h` `l` `b` `w``0` `$`等。
除了通过函数`vmapkey`添加的所有按键在这种模式下有用,此外还有一些内置类似vim的按键,如`j` `k` `h` `l` `b` `w` `0` `$`等。

按`v`可以切换visual mode。在visual mode下,你会在页面底部看到一个提示 -- `Caret`或者`Range`,页面中还有一个大号的光标。光标做得这么大,是让人在页面中好找到它。

`Caret` 表明当你按jkhl时会移动光标,`Range`则表明你移动光标会选择文本。下面有个小练习:

1. 按下`v`,确认你能看到`Caret`提示和光标。
1. 使用`j` `k` `h` `l` `b` `w``0` `$`试试移动光标。
1. 使用`j` `k` `h` `l` `b` `w` `0` `$`试试移动光标。
1. 再按下`v`,确认你看到`Range`提示。
1. 使用`j` `k` `h` `l` `b` `w``0` `$`试试选中文本。
1. 使用`j` `k` `h` `l` `b` `w` `0` `$`试试选中文本。
1. 按下`sg`看看发生了什么。
1. 再按下`v`回到normal mode。

Expand Down