Folds all commentaries of a source file.
Without:
With:
With pathogen.vim
cd ~/.vim/bundle
git clone git://github.com/lkdjiin/vim-foldcomments.git
With vundle
Bundle 'git://github.com/lkdjiin/vim-foldcomments.git'
:FoldComments
Or, better, you could map the command FoldComments
in your .vimrc, for example
on the F5 key:
map<F5> :FoldComments<Enter>
To unfold, use zE
, or map it like this:
map<F6> zE
Not all file's type are supported. This is curently limited to unix comment
style (#
), Ruby, Haskell, Java, C, Javascript, Logo, Racket, Scheme
and Vim.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Copyright 2013, 2014 Xavier Nayrac. Distributed under the same terms as
Vim itself. See :help license
.
Feel free to email Xavier Nayrac with any questions, or follow me on twitter.