David Blume's GitList
Repositories
dotfiles.git
Code
Commits
Branches
Tags
Search
Tree:
ee2ebd7
Branches
Tags
main
pathogen
remove-vim-airline
vim-airline-disabled
vim-powerline
dotfiles.git
.vim
scripts.vim
Support vim detection of local serial logs
dblume
commited
ee2ebd7
at 2024-12-02 11:29:08
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