bugfixes on cpp.vim and ftplugin loading
This commit is contained in:
parent
f115b22ec8
commit
672ce9379d
@ -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
|
"Set the formatter name and arguments for this filetype
|
||||||
let s:prgname = "astyle"
|
let s:prgname = "astyle"
|
||||||
let s:arguments = "--mode=c --style=ansi"
|
let s:arguments = "--mode=c --style=ansi"
|
||||||
|
@ -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
|
"Set the formatter name and arguments for this filetype
|
||||||
let s:prgname = "astyle"
|
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
|
"Set the formatprg option, if the formatter is installed
|
||||||
"globally or in the formatters/ folder
|
"globally or in the formatters/ folder
|
||||||
|
@ -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
|
"Set the formatter name and arguments for this filetype
|
||||||
let s:prgname = "astyle"
|
let s:prgname = "astyle"
|
||||||
let s:arguments = "--mode=cs --style=ansi"
|
let s:arguments = "--mode=cs --style=ansi"
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
if exists("b:did_ftplugin")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
set expandtab
|
set expandtab
|
||||||
set tabstop=2
|
set tabstop=2
|
||||||
set shiftwidth=2
|
set shiftwidth=2
|
||||||
|
@ -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
|
"Set the formatter name and arguments for this filetype
|
||||||
let s:prgname = "astyle"
|
let s:prgname = "astyle"
|
||||||
let s:arguments = "--mode=java --style=ansi"
|
let s:arguments = "--mode=java --style=ansi"
|
||||||
|
@ -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
|
"Besides installing the js-beautify globally or in the
|
||||||
"formatters/ folder, cloning the repository as a vim bundle
|
"formatters/ folder, cloning the repository as a vim bundle
|
||||||
"is supported as well.
|
"is supported as well.
|
||||||
|
@ -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
|
"Set the formatter name and arguments for this filetype
|
||||||
let s:prgname="phpCB"
|
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"
|
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"
|
||||||
|
@ -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
|
"Set the formatter name and arguments for this filetype
|
||||||
let s:prgname = "autopep8"
|
let s:prgname = "autopep8"
|
||||||
let s:arguments = "/dev/stdin"
|
let s:arguments = "/dev/stdin"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user