mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
runtime: K: prefer Vim help instead of man #3104
This commit is contained in:
parent
06f798cc38
commit
6720fe253e
@ -11,13 +11,16 @@ let b:did_ftplugin = 1
|
|||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
let b:undo_ftplugin = "setl fo< tw< cole< cocu<"
|
let b:undo_ftplugin = "setl fo< tw< cole< cocu< keywordprg<"
|
||||||
|
|
||||||
setlocal formatoptions+=tcroql textwidth=78
|
setlocal formatoptions+=tcroql textwidth=78
|
||||||
if has("conceal")
|
if has("conceal")
|
||||||
setlocal cole=2 cocu=nc
|
setlocal cole=2 cocu=nc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Prefer Vim help instead of manpages.
|
||||||
|
setlocal keywordprg=:help
|
||||||
|
|
||||||
if !exists('g:no_plugin_maps')
|
if !exists('g:no_plugin_maps')
|
||||||
function! s:show_toc() abort
|
function! s:show_toc() abort
|
||||||
let bufname = bufname('%')
|
let bufname = bufname('%')
|
||||||
|
@ -14,7 +14,7 @@ let b:did_ftplugin = 1
|
|||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
set cpo-=C
|
set cpo-=C
|
||||||
|
|
||||||
let b:undo_ftplugin = "setl fo< isk< com< tw< commentstring<"
|
let b:undo_ftplugin = "setl fo< isk< com< tw< commentstring< keywordprg<"
|
||||||
\ . "| unlet! b:match_ignorecase b:match_words b:match_skip"
|
\ . "| unlet! b:match_ignorecase b:match_words b:match_skip"
|
||||||
|
|
||||||
" Set 'formatoptions' to break comment lines but not other lines,
|
" Set 'formatoptions' to break comment lines but not other lines,
|
||||||
@ -36,6 +36,9 @@ endif
|
|||||||
" Comments start with a double quote
|
" Comments start with a double quote
|
||||||
setlocal commentstring=\"%s
|
setlocal commentstring=\"%s
|
||||||
|
|
||||||
|
" Prefer Vim help instead of manpages.
|
||||||
|
setlocal keywordprg=:help
|
||||||
|
|
||||||
" Move around functions.
|
" Move around functions.
|
||||||
nnoremap <silent><buffer> [[ m':call search('^\s*fu\%[nction]\>', "bW")<CR>
|
nnoremap <silent><buffer> [[ m':call search('^\s*fu\%[nction]\>', "bW")<CR>
|
||||||
vnoremap <silent><buffer> [[ m':<C-U>exe "normal! gv"<Bar>call search('^\s*fu\%[nction]\>', "bW")<CR>
|
vnoremap <silent><buffer> [[ m':<C-U>exe "normal! gv"<Bar>call search('^\s*fu\%[nction]\>', "bW")<CR>
|
||||||
|
Loading…
Reference in New Issue
Block a user