From 6863aa943308a97525cd8a3086f3de58ef688b04 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 14 Jun 2014 21:53:11 -0400 Subject: Add ftplugin/go.vim Include basic settings plus compiler mappings. Mappings facilitate compiling and running Go programs. --- ftplugin/go.vim | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ftplugin/go.vim (limited to 'ftplugin') diff --git a/ftplugin/go.vim b/ftplugin/go.vim new file mode 100644 index 0000000..a433d88 --- /dev/null +++ b/ftplugin/go.vim @@ -0,0 +1,17 @@ +" Go vim settings + +compiler go + + +" Compile package +nnoremap cc :make + +" Compile file +nnoremap cf :make % + +" Compile & run file +nnoremap cr :!go run % + + +" Comment string +setlocal commentstring=//\ %s -- cgit v1.2.3