bugfixes on cpp.vim and ftplugin loading

This commit is contained in:
Chiel92 2012-12-15 11:05:34 +01:00
parent f115b22ec8
commit 672ce9379d
8 changed files with 41 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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"

View File

@ -1,6 +1,11 @@
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=cpp --style=ansi"
let s:arguments = "--mode=c --style=ansi"
"Set the formatprg option, if the formatter is installed
"globally or in the formatters/ folder

View File

@ -1,3 +1,8 @@
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"

View File

@ -1,3 +1,8 @@
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
set expandtab
set tabstop=2
set shiftwidth=2

View File

@ -1,3 +1,8 @@
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=java --style=ansi"

View File

@ -1,3 +1,8 @@
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
"Besides installing the js-beautify globally or in the
"formatters/ folder, cloning the repository as a vim bundle
"is supported as well.

View File

@ -1,3 +1,8 @@
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
"Set the formatter name and arguments for this filetype
let s:prgname="phpCB"
let s:arguments="--space-after-if --space-after-switch --space-after-while --space-before-start-angle-bracket --space-after-end-angle-bracket --one-true-brace-function-declaration --glue-amperscore --change-shell-comment-to-double-slashes-comment --force-large-php-code-tag --force-true-false-null-contant-lowercase --align-equal-statements --comment-rendering-style PEAR --equal-align-position 50 --padding-char-count 4"

View File

@ -1,3 +1,8 @@
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
"Set the formatter name and arguments for this filetype
let s:prgname = "autopep8"
let s:arguments = "/dev/stdin"