From 5998894a8ebf1688f5cabcb2d76f6f4329350c64 Mon Sep 17 00:00:00 2001
From: Chris Coley <chris@codingallnight.com>
Date: Tue, 16 Apr 2019 12:48:47 -0700
Subject: [PATCH] Add modeline support for dot and graphviz files

---
 vimrc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/vimrc b/vimrc
index 77caf27..8bb0058 100644
--- a/vimrc
+++ b/vimrc
@@ -77,6 +77,10 @@ endfunction
 autocmd BufRead,BufNewFile [Mm]akefile* setlocal noexpandtab
 
 
+" Associate extensions to filetypes
+autocmd BufRead,BufNewFile *.gv setlocal filetype=dot
+
+
 " Set the terminal title to reflect the open file. Even works with Vim tabs.
 autocmd BufEnter * let &titlestring = expand("%:t") . " - %{$USER}@" . hostname() | setlocal title
 autocmd VimLeave * let &titleold = $USER . "@" . hostname() | setlocal title
@@ -91,6 +95,7 @@ endfunction
 
 
 " Filetype specific settings
+autocmd FileType dot setlocal commentstring=//%s
 autocmd FileType dns setlocal commentstring=;%s
 autocmd FileType gitconfig setlocal commentstring=;%s
 autocmd FileType go setlocal commentstring=//%s
-- 
GitLab