Skip to content

cacharle/c_formatter_42.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.