New answers tagged autocmd
1
vote
Run autocmd on file close
Read :h BufWinLeave carefully
Read :h BufUnload carefully
Read :h 'hidden' carefully
...
PROFIT
0
votes
vim: FileChangedShell-like notification for file created after editing started
Yeah, as far as I can tell in the vim+neovim source, this would require a patch to add a new feature, it's a separate codepath with no autocommands it would seem:
in neovim
in vim
In both cases this ...
1
vote
Accepted
How to set fileformat based on file type?
There are in fact 4 different ways to do this. You can read all of them in :h new-filetype. I will only describe the simplest solution:
In your user runtime directory, create a new file in your ...
1
vote
Accepted
Odd behaviour when pressing Tab with this mapping
If you don't define g:tex_flavor, it will search for keywords in your file in order to select one of the available flavors. Therefore, in small .tex files, it will guess it incorrectly as plaintex. ...
Top 50 recent answers are included
Related Tags
autocmd × 363vimrc × 62
vimscript × 45
filetype × 39
neovim × 32
buffers × 29
key-bindings × 20
command-line × 13
save × 13
filetype-tex × 11
vim-windows × 9
functions × 9
insert-mode × 8
folding × 8
netrw × 8
highlight × 7
external-command × 7
statusline × 7
regular-expression × 6
terminal × 6
formatting × 6
quickfix × 6
quit × 6
search × 5
plugin-system × 5