Closed soulshake closed 2 years ago
Hi @soulshake,
First, sorry for the long delay (I missed the notification) and thank you for your nice compliments :). I have to say it's a weird behavior. The ftplugin should only enable the plugin on yaml files. Does it happen specifically on some types of files (like go) or you don't see any pattern? Also, do you use vim or neovim? If so, which version?
It seems to happen regularly with .go
files. It may have occasionally happened on other file types but I don't recall for sure. I get the behavior on both of my computers. I'm using regular vim, compiled with python3 support as shown below.
Thank you, I didn't know the <details>
feature on Github! Nice.
I don't use vim 8, I use neovim 0.4.3, so maybe it's linked? :thinking:
Two questions:
:set syntax
?Thanks!
When this happens do you have any yaml file open aside?
Can confirm that it happens even when it's the only file I have open in vim, i.e. ps faux | grep vim
shows only a single vim
process.
When this happens on a go file, could you check the output of :set syntax ?
Sure!
:set
--- Options ---
autoindent filetype=go incsearch mouse=a scroll=29 syntax=go ttyfast window=58
background=dark formatoptions=cq langnoremap nrformats=bin,hex scrolloff=5 ttimeout ttymouse=sgr
display=truncate history=200 nolangremap ruler showcmd ttimeoutlen=100 wildmenu
backspace=indent,eol,start
comments=s1:/*,mb:*,ex:*/,://
commentstring=// %s
fileencoding=utf-8
fileencodings=ucs-bom,utf-8,default,latin1
indentexpr=GoIndent(v:lnum)
indentkeys=0{,0},0),0],:,0#,!^F,o,O,e,<:>,0=},0=)
This became a problem because I needed to work on some .go
files yesterday so I explored a bit further. After moving the repo from ~/.vim/plugin/yaml-revealer
to ~/.vim/bundle/yaml-revealer
, I'm no longer seeing this behavior :tada:
(I don't understand why, since as you pointed out, ftplugin/yaml.vim
should only be used when yaml filetype is detected, and in my case it was clearly being run when filetype=go
, but :shrug: )
Feel free to close this!
Hi and thank you for this wonderful, life-improving plugin.
Occasionally, when editing non-yaml files, I get some unexpected errors like the following:
I have cloned
yaml-revealer
to~/.vim/plugin
(commit62a63ef45763e6a214105b5c8317a7da30ba04a7
). I don't think my vim config is relevant; this occurs even with an empty.vimrc
.Any idea what might be causing this?