Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
help.vim48 linesDownload Raw Back to ftplugin
1" Vim filetype plugin file2" Language:             Vim help file3" Previous Maintainer:  Nikolai Weibull <now@bitwi.se>4" Last Change:          2025 Apr 085" 2025 Apr 08 by Vim project (set 'omnifunc' and 'iskeyword', #17073)6" 2025 Aug 08 by Vim project (unset comment options, #17889)7 8if exists("b:did_ftplugin")9  finish10endif11let b:did_ftplugin = 112 13let s:cpo_save = &cpo14set cpo&vim15 16let b:undo_ftplugin = "setl isk< fo< tw< cole< cocu< keywordprg< omnifunc< comments< cms<"17 18setl comments= cms=19 20setlocal formatoptions+=tcroql textwidth=78 keywordprg=:help omnifunc=s:HelpComplete21let &l:iskeyword='!-~,^*,^|,^",192-255'22if has("conceal")23  setlocal cole=2 cocu=nc24endif25 26if !exists('*s:HelpComplete')27  func s:HelpComplete(findstart, base)28    if a:findstart29      let colnr = col('.') - 1 " Get the column number before the cursor30      let line = getline('.')31      for i in range(colnr - 1, 0, -1)32        if line[i] ==# '|'33          return i + 1 " Don't include the `|` in base34        elseif line[i] ==# "'"35          return i " Include the `'` in base36        endif37      endfor38    else39      return taglist('^' .. a:base)40            \ ->map({_, item -> #{word: item->get('name'), kind: item->get('kind')}})41            \ ->extend(getcompletion(a:base, 'help'))42    endif43  endfunc44endif45 46let &cpo = s:cpo_save47unlet s:cpo_save48 
codekingpro/portable-devtools · Team Ai