blob: db6213157c11a265a547b0893228eb0beb072de3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
" Extra configuration for Vim help files
if &filetype !=# 'help' || v:version < 700
finish
endif
" If the buffer is modifiable and writable, we're writing documentation, not
" reading it; don't conceal characters
if has('conceal') && &modifiable && !&readonly
setlocal conceallevel=0
let b:undo_ftplugin .= '|setlocal conceallevel<'
endif
" Stop here if the user doesn't want ftplugin mappings
if exists('g:no_plugin_maps') || exists('g:no_help_maps')
finish
endif
" Make K jump to the help topic; NeoVim does this, and it's a damned good idea
if !has('nvim')
nnoremap <buffer> K <C-]>
let b:undo_ftplugin .= '|nunmap <buffer> K'
endif
|