Skip to content

Commit

Permalink
Fix README error (#1793)
Browse files Browse the repository at this point in the history
* Fix README error

fix the `0` in Visual mode section

* fix README 0

fix `w``0` to `w` `0`
  • Loading branch information
xyxy2017 authored Aug 18, 2022
1 parent 1aaa394 commit 83721a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 83721a8

Please sign in to comment.