Skip to content

Commit

Permalink
Set 'keywordprg' to invoke vim help (#222)
Browse files Browse the repository at this point in the history
Following on from #85
  • Loading branch information
bobrippling authored Apr 30, 2024
1 parent 4a436f5 commit 429b669
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ftplugin/vader.vim
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ let b:vader_eos = '\(.*\n'.vader#syntax#_head().'\)\|\%$'

setlocal shiftwidth=2 tabstop=2 softtabstop=2 expandtab
setlocal iskeyword+=#
setlocal keywordprg=:help
let &l:commentstring = '" %s'
let &l:comments = 'sO:" -,mO:" ,eO:"",:"'

Expand All @@ -59,7 +60,7 @@ augroup vader_syntax
" autocmd FileType <buffer> call vader#syntax#include(1, '$')
augroup END

let b:undo_ftplugin = 'setl sw< ts< sts< et< cms< isk<'
let b:undo_ftplugin = 'setl sw< ts< sts< et< cms< isk< kp<'
\ . ' | exe "au! vader_syntax * <buffer>"'
\ . ' | unlet b:vader_label b:vader_eos'

Expand Down

0 comments on commit 429b669

Please sign in to comment.