Skip to content
Snippets Groups Projects
Commit 5998894a authored by Chris Coley's avatar Chris Coley
Browse files

Add modeline support for dot and graphviz files

parent 80b5c291
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment