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)