globalvariables created for storing formatprg per filetype

This commit is contained in:
Chiel92 2013-02-26 10:23:25 +01:00
parent 1b08973e28
commit 224974123f
4 changed files with 1 additions and 36 deletions

1
formatprgdefaults.vim Normal file
View File

@ -0,0 +1 @@
if !exists(g:formatprg_cs) | let g:formatprg_cs="astyle --mode=cs --style=ansi" | endif

View File

@ -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)

View File

@ -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)

View File

@ -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)