Skip to content

Commit

Permalink
Add example.
Browse files Browse the repository at this point in the history
  • Loading branch information
osyo-manga committed Jun 12, 2013
1 parent ce1e1ba commit ef6ea1d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions doc/precious.jax
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,22 @@ filetype=help でカーソル移動時の |:PreciousSwitch| を無効にする
<


'filetype' を変更せずに 'syntax' のみ設定する
>
" setfiletype を無効
let g:precious_enable_switchers = {
\ "*" : {
\ "setfiletype" : 0
\ },
\}

" コンテキストが切り替わった場合、syntax を設定
augroup test
autocmd!
autocmd User PreciousFiletype let &l:syntax = precious#context_filetype()
augroup END
<


==============================================================================
vim:tw=78:fo=tcq2mM:ts=8:ft=help:norl

0 comments on commit ef6ea1d

Please sign in to comment.