David Blume's GitList
Repositories
dotfiles.git
Code
Commits
Branches
Tags
Search
Tree:
04a20c1
Branches
Tags
main
pathogen
remove-vim-airline
vim-airline-disabled
vim-powerline
dotfiles.git
.vim
scripts.vim
Add rokulog detection of "publishing" channels
dblume
commited
04a20c1
at 2024-12-02 08:50:39
scripts.vim
Blame
History
Raw
" For vim put this in ~/.vim/scripts.vim. " neovim doesn't even call scripts.vim if filetype was done. " See ~/.config/nvim/init.vim and " https://www.reddit.com/r/neovim/comments/wcq6sp/override_file_type_detection_for_existing/ if did_filetype() " filetype already set.. finish " ..don't do these checks endif if getline(1) =~? '^\d\{2\}-\d\{2\} \d\{2\}:\d\{2\}:\d\{2\}.\d\{3\}\s\+\(n\|dev\|\d\+\(_[0-9a-f]\+\)\?\|tvinput\.\S\+\) \[' setfiletype rokulog endif