update vimrc
This commit is contained in:
parent
8222330b25
commit
fbcce59cae
5
.vimrc
5
.vimrc
@ -213,6 +213,9 @@ inoremap <silent> <F12> <esc> :ShowColorScheme<cr>
|
|||||||
" prepare-code
|
" prepare-code
|
||||||
let g:prepare_code_plugin_path = expand($HOME . "/.vim/plugged/prepare-code")
|
let g:prepare_code_plugin_path = expand($HOME . "/.vim/plugged/prepare-code")
|
||||||
|
|
||||||
|
" vim-replace
|
||||||
|
nnoremap <leader>r :ReplaceTo<space>
|
||||||
|
|
||||||
" vim-buffer
|
" vim-buffer
|
||||||
nnoremap <silent> <c-p> :PreviousBuffer<cr>
|
nnoremap <silent> <c-p> :PreviousBuffer<cr>
|
||||||
nnoremap <silent> <c-n> :NextBuffer<cr>
|
nnoremap <silent> <c-n> :NextBuffer<cr>
|
||||||
@ -326,7 +329,7 @@ let g:Lf_WildIgnore = {
|
|||||||
let g:Lf_UseCache = 0
|
let g:Lf_UseCache = 0
|
||||||
|
|
||||||
" ack
|
" ack
|
||||||
nnoremap <Leader>F :Ack!<space>
|
nnoremap <leader>F :Ack!<space>
|
||||||
|
|
||||||
" echodoc.vim
|
" echodoc.vim
|
||||||
let g:echodoc_enable_at_startup = 1
|
let g:echodoc_enable_at_startup = 1
|
||||||
|
|||||||
7
help.md
7
help.md
@ -259,9 +259,10 @@
|
|||||||
| `N` | 向相反方向执行上一次搜索 |
|
| `N` | 向相反方向执行上一次搜索 |
|
||||||
| `*` | 向前搜索光标下的单词 |
|
| `*` | 向前搜索光标下的单词 |
|
||||||
| `#` | 向后搜索光标下的单词 |
|
| `#` | 向后搜索光标下的单词 |
|
||||||
| `:s/p1/p2/g` | 将当前行中全替换p1为p2 |
|
| `:s/p1/p2/g` | 替换当前行的p1为p2 |
|
||||||
| `:%s/p1/p2/g` | 将当前文件中全替换p1为p2 |
|
| `:%s/p1/p2/g` | 替换当前文件中的p1为p2 |
|
||||||
| `:%s/p1/p2/gc` | 将当前文件中全替换p1为p2,并且每处询问你是否替换 |
|
| `:%s/<p1>/p2/g` | 替换当前文件中的p1单词为p2 |
|
||||||
|
| `:%s/p1/p2/gc` | 替换当前文件中的p1为p2,并且每处询问你是否替换 |
|
||||||
| `:10,20s/p1/p2/g` | 将第10到20行中所有p1替换为p2 |
|
| `:10,20s/p1/p2/g` | 将第10到20行中所有p1替换为p2 |
|
||||||
| `:%s/1\\2\/3/123/g` | 将“1\2/3” 替换为 “123”(特殊字符使用反斜杠标注) |
|
| `:%s/1\\2\/3/123/g` | 将“1\2/3” 替换为 “123”(特殊字符使用反斜杠标注) |
|
||||||
| `:%s/\r//g` | 删除 DOS 换行符 ^M |
|
| `:%s/\r//g` | 删除 DOS 换行符 ^M |
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user