Commit Graph

4 Commits

Author SHA1 Message Date
39df041443 vim:ftplugin:vim: Use local <buffer> autocmd
Fix the issue that the vim config would always be reloaded on save
(jumping to the BOF; another TODO) even in non `*.vim` buffers, after a
vim file was opened once in the session.

Fix this by defining the autocmd only local to the current buffer.

See also :help autocmd-buflocal
2022-07-12 21:00:04 +02:00
69e2e43fc7 vim: Move after/ftplugin to ftplugin
There is no reason why the plugins should be in after/.
2020-12-24 02:26:36 +01:00
druckdev
423a786192 vim: Move ftplugins into after/
All of these are meant as additions and should not override vims default
ftplugins.
2020-11-23 02:07:38 +01:00
druckdev
0a2d70412e vim: Move autosource of config into ftplugin
Instead of only sourcing the vim config when vimrc or $MYVIMRC (xdg.vim)
is edited, reload always when saving a vim file.
This is a test. But I think it makes sense since I never edit a vim file
that is not sourced by my config in any way. Thus reloading should be
always appropriate.
2020-09-23 02:25:04 +02:00