You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a file without any extension set ft=bash with modeline. Cause bash filetype is directed to sh in /usr/local/share/nvim/runtime/ftplugin/bash.vim.
" /usr/local/share/nvim/runtime/ftplugin/bash.vim" Setting 'filetype' here directly won't work, since we are being invoked" through an autocommand. Do it later, on the BufWinEnter event.augroupbash_filetypeauBufWinEnter*callSetBashFt()
augroupENDfuncSetBashFt()
au! bash_filetype
setft=shendfunc
When I open the file, filetype is set sh. (Basically modeline is overridden by runtime ftplugin/bash.vim.
Using targets.vim causes the ft set back to bash at the first time xmap i targets#e('o', 'i', 'i') being triggered.
Any ideas why does targets.vim reset my ft, what's the point?
I have a file without any extension
set ft=bash
withmodeline
. Causebash
filetype is directed tosh
in/usr/local/share/nvim/runtime/ftplugin/bash.vim
.When I open the file,
filetype
is setsh
. (Basicallymodeline
is overridden by runtimeftplugin/bash.vim
.Using
targets.vim
causes theft
set back tobash
at the first timexmap i targets#e('o', 'i', 'i')
being triggered.Any ideas why does
targets.vim
reset myft
, what's the point?Environments
Update 1:
Damn, a problem only exists with neovim 0.4.4. On latest vim 8, runtime
ftpluign/bash.vim
is changed toNot sure if it's related.
The text was updated successfully, but these errors were encountered: