[vim/vim] I want to insert some titles when I create a new .v file, so I created a new function, and I want to set some autocmd commands to achieve this function, but the same au command works fine when written in ~/.vimr, but does not work in ~/.vim/pack/xxx/start/xxx/ftplugin/verilog.vim. Why is that? (Issue #15135)

7 views
Skip to first unread message

ZhenzongGu

unread,
Jul 2, 2024, 9:07:59 AM (15 hours ago) Jul 2
to vim/vim, Subscribed

~/.vim/pack/00000-gzz-vim/start/GzzMisc/ftplugin/verilog.vim
image.png (view on web)

~/.vimrc
image.png (view on web)
I can also find the corresponding file in rpt:
image.png (view on web)

And when I write it under ftplugin/, every time I switch to another buffer and then switch back, the title is inserted repeatedly, which will eventually lead to a lot of duplicate content being inserted. But it cannot be inserted when creating a new one.


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/15135@github.com>

zeertzjq

unread,
Jul 2, 2024, 9:26:51 AM (15 hours ago) Jul 2
to vim/vim, Subscribed

@zeertzjq converted this issue into discussion #15136.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/15135/issue_event/13366153513@github.com>

Reply all
Reply to author
Forward
0 new messages