Skip to content

cofyc/vim-uncrustify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

vim-uncrustify

Installation

With pathogen

Download .tar.gz package, and extract it into ~/.vim/bundle or with git:

cd ~/.vim/bundle
git clone https://github.com/Cofyc/vim-uncrustify.git

Without pathogen

Simply extract package into your ~/.vim folder.

Usage

Add these in your .vimrc file:

autocmd FileType c noremap <buffer> <c-f> :call Uncrustify('c')<CR>
autocmd FileType c vnoremap <buffer> <c-f> :call RangeUncrustify('c')<CR>
autocmd FileType cpp noremap <buffer> <c-f> :call Uncrustify('cpp')<CR>
autocmd FileType cpp vnoremap <buffer> <c-f> :call RangeUncrustify('cpp')<CR>

References

About

Use uncrustify in vim, supports range formatting.

Resources

Stars

Watchers

Forks

Packages

No packages published