osyo-manga / vim-precious

Vim context filetype
117 stars 7 forks source link

its not work #19

Open ZeroKill1024 opened 5 years ago

ZeroKill1024 commented 5 years ago

i use vim-plug: Plug 'kana/vim-textobj-user' Plug 'thinca/vim-quickrun' Plug 'osyo-manga/vim-precious' and use this: augroup test2 autocmd! autocmd User PreciousFileType :echo precious#context_filetype() autocmd User PreciousFiletype_ruby :PreciousSetContextLocal tabstop=8 augroup END after :PlugInstall, but it does't work when i move cursor. any other required steps?

osyo-manga commented 5 years ago

Please install context_filetype.vim

ZeroKill1024 commented 5 years ago

I have installed context_filetype.vim, and restart vim, but there are also not any response, my vim version is gvim 8.1.

osyo-manga commented 5 years ago

Please tell me buffer text and cursorpos.

ZeroKill1024 commented 5 years ago

I just use Example in README for test, and move cursor, there are not any echo info.

osyo-manga commented 5 years ago

Please call :set filetype=vim in README text.

ZeroKill1024 commented 5 years ago

oh, its works! but why must set it's filetype first? and just vim is valid, other type is not work?

ZeroKill1024 commented 5 years ago

I read the precious.jax, then set g:precious_enable_switchers and g:precious_enable_switch_CursorMoved, but It doesn't seem like anything has changed.