From 224974123f19b600827516f087deb3be7fbfbd0d Mon Sep 17 00:00:00 2001 From: Chiel92 Date: Tue, 26 Feb 2013 10:23:25 +0100 Subject: [PATCH] globalvariables created for storing formatprg per filetype --- formatprgdefaults.vim | 1 + ftplugin/c.vim | 12 ------------ ftplugin/cpp.vim | 12 ------------ ftplugin/cs.vim | 12 ------------ 4 files changed, 1 insertion(+), 36 deletions(-) create mode 100644 formatprgdefaults.vim delete mode 100644 ftplugin/c.vim delete mode 100644 ftplugin/cpp.vim delete mode 100644 ftplugin/cs.vim diff --git a/formatprgdefaults.vim b/formatprgdefaults.vim new file mode 100644 index 0000000..1d5bfb6 --- /dev/null +++ b/formatprgdefaults.vim @@ -0,0 +1 @@ +if !exists(g:formatprg_cs) | let g:formatprg_cs="astyle --mode=cs --style=ansi" | endif diff --git a/ftplugin/c.vim b/ftplugin/c.vim deleted file mode 100644 index 2b1cfee..0000000 --- a/ftplugin/c.vim +++ /dev/null @@ -1,12 +0,0 @@ -if exists("b:did_ftplugin") - finish -endif -let b:did_ftplugin = 1 - -"Set the formatter name and arguments for this filetype -let s:prgname = "astyle" -let s:arguments = "--mode=c --style=ansi" - -"Set the formatprg option, if the formatter is installed -"globally or in the formatters/ folder -call g:FindFormatter(s:prgname, s:arguments) diff --git a/ftplugin/cpp.vim b/ftplugin/cpp.vim deleted file mode 100644 index 2b1cfee..0000000 --- a/ftplugin/cpp.vim +++ /dev/null @@ -1,12 +0,0 @@ -if exists("b:did_ftplugin") - finish -endif -let b:did_ftplugin = 1 - -"Set the formatter name and arguments for this filetype -let s:prgname = "astyle" -let s:arguments = "--mode=c --style=ansi" - -"Set the formatprg option, if the formatter is installed -"globally or in the formatters/ folder -call g:FindFormatter(s:prgname, s:arguments) diff --git a/ftplugin/cs.vim b/ftplugin/cs.vim deleted file mode 100644 index 3d22142..0000000 --- a/ftplugin/cs.vim +++ /dev/null @@ -1,12 +0,0 @@ -if exists("b:did_ftplugin") - finish -endif -let b:did_ftplugin = 1 - -"Set the formatter name and arguments for this filetype -let s:prgname = "astyle" -let s:arguments = "--mode=cs --style=ansi" - -"Set the formatprg option, if the formatter is installed -"globally or in the formatters/ folder -call g:FindFormatter(s:prgname, s:arguments)