Update .vimrc

set vimplus help page unmodifiable when viewing
This commit is contained in:
titubery 2019-10-24 19:24:47 +08:00 committed by GitHub
parent 307d4a2fbb
commit 07cab95c77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
.vimrc
View File

@ -163,7 +163,7 @@ runtime macros/matchit.vim
nnoremap <leader>e :edit $MYVIMRC<cr>
" 查看vimplus的help文件
nnoremap <leader>h :edit ~/.vimplus/help.md<cr>
nnoremap <leader>h :view +let\ &l:modifiable=0 ~/.vimplus/help.md<cr>
" 打开当前光标所在单词的vim帮助文档
nnoremap <leader>H :execute ":help " . expand("<cword>")<cr>