辞書ファイルによる補完 - dictionary

辞書ファイルのパスの指定

 set dictionary = $VIM/vimfiles/dict/my.dict

複数の辞書ファイルのパスの指定

 let $MYDICT1 = $HOME . '.vim/dict/my1.dict'
 let $MYDICT2 = $HOME . '.vim/dict/my2.dict'
 
 function! SetDict()
   let files = [expand($MYDICT1), expand($MYDICT2)]  
   let &dict = join(files, ',')
 endfunction
 
 call SetDict()

辞書ファイルの中身

 apple
 banana
 orange
 lemon
 melon
 grape
  • 1行に1単語を記述する。

参考


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2017-05-02 (火) 01:47:36