/c_formatter_42.vim

Vim plugin for the c_formatter_42 formatter

Primary LanguageVim ScriptMIT LicenseMIT

c_formatter_42.vim

Vim plugin for c_formatter_42.

preview

vim plugin

call plug#begin()
    Plug 'cacharle/c_formatter_42.vim'
call plug#end()

Manual installation

git clone https://github.com/cacharle/c_formatter_42.vim
cd c_formatter_42.vim
./install

There is an ./uninstall script aswell

Usage

Execute :CFormatter42 or press F2 to format the current file.

Configuration

Add the following lines to your .vimrc if you want to enable these options.

Default formatter

Set c_formatter_42 has the default formatter (you can use gg=G or enter visual mode and =).

let g:c_formatter_42_set_equalprg=1

Disable format on save

let g:c_formatter_42_format_on_save=0

Run norminette in a split

:Norminette in a C file.