diff --git a/profile/default/.vimrc b/profile/default/.vimrc index 31b7bc41c49afbe6ce0519207befefbd0e223850..49b114fc3bf285a6281c5208363967976724550c 100644 --- a/profile/default/.vimrc +++ b/profile/default/.vimrc @@ -143,3 +143,7 @@ autocmd BufWinLeave * call clearmatches() " --- vim modeline ---{{{ " vim: set foldmethod=marker: "}}} + +" --- httplog syntax (nginx, apache) ---{{{ +autocmd BufRead,BufNewFile /var/log/nginx/** set filetype=httplog +"}}} diff --git a/profile/rda/.vimrc b/profile/rda/.vimrc index f892c58d8f0178e558505b06273c5a550b849fa9..0c15f26d0f094479b2da26bab236f72595a15d5d 100644 --- a/profile/rda/.vimrc +++ b/profile/rda/.vimrc @@ -296,6 +296,10 @@ let g:pymode_python = 'python3' let g:pymode_options_max_line_length = 100 "}}} +" --- httplog syntax (nginx, apache) ---{{{ +autocmd BufRead,BufNewFile /var/log/nginx/** set filetype=httplog +"}}} + " --- unused ---{{{ " workaround for https://github.com/vim/vim/issues/1start671 "if has("unix")