Created
April 8, 2009 22:46
-
-
Save inky/92103 to your computer and use it in GitHub Desktop.
Hiding license headers in vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use vim's explicit fold markers to hide license headers: | |
#!/usr/bin/env whatever | |
# Copyright (c) YEAR, PERSON {{{ | |
# | |
# Permission is hereby granted, free of charge, to lorem ipsum dolor | |
# sit amet, consectetur adipiscing elit. Donec scelerisque sodales | |
# urna. Cras dolor leo, ultrices a, consectetur a, porta sit amet, | |
# nisi. Curabitur lobortis neque in lorem imperdiet mollis. | |
# | |
# Mauris mollis pellentesque massa. Cras nec elit. Aenean mollis diam | |
# iaculis est. Morbi porttitor quam nec lorem. Donec eget lacus quis | |
# nisi rutrum aliquam. Nunc eget ligula a nisi feugiat viverra. | |
# }}} | |
(code) | |
# vim: fdm=marker | |
As seen here: http://github.com/ap/titlecase/tree | |
Press `zo` on the fold to expand it, and `zc` to close it again. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment