From 42674893ab8effcaa0da4ff568d112e45ddc23b9 Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Thu, 21 Feb 2013 13:35:52 +0800 Subject: [PATCH] Set *.go to go syntax --- .vimrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index a155e49..f0cedc5 100644 --- a/.vimrc +++ b/.vimrc @@ -41,8 +41,9 @@ nmap :NERDTreeToggle nmap w " " other -au BufNewFile,BufRead *.mk set noexpandtab +au BufNewFile,BufRead *.go set filetype=go au BufNewFile,BufRead *.json setf json +au BufNewFile,BufRead *.mk set noexpandtab au BufNewFile,BufRead *.psgi setf perl au BufNewFile,BufRead Makefile set noexpandtab au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif