Skip to content

Commit

Permalink
add vim use
Browse files Browse the repository at this point in the history
  • Loading branch information
dack.huang committed Dec 12, 2019
1 parent f4f325c commit 298a963
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,22 @@ lsof打开的文件可以是:
- `-v`:显示版本信息



# vim使用
## 查找
在normal模式下按下`/`即可进入查找模式,输入要查找的字符串并按下回车,vim会跳到第一个匹配的位置,按`n`查找写一个,`N`查找上一个。

Vim查找支持正则表达式,例如`/vim$`匹配行尾的`"vim"`。 需要查找特殊字符需要转义,例如`/vim\$`匹配`"vim$"`

> 注意查找回车应当用`\n`,而替换为回车应当用`\r`(相当于<CR>)。

`\c`表示大小写不敏感查找,`\C`表示大小写敏感查找

```
/demo\c
```
将会查找到`"demo"`,`"DEMO"`,`"Demo"`...等
# linux日志

### /var目录
Expand Down

0 comments on commit 298a963

Please sign in to comment.