Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using modeline to fold vimrc in chapter 22 #150

Open
CyrusYip opened this issue Jun 7, 2022 · 0 comments
Open

Using modeline to fold vimrc in chapter 22 #150

CyrusYip opened this issue Jun 7, 2022 · 0 comments

Comments

@CyrusYip
Copy link
Contributor

CyrusYip commented Jun 7, 2022

This single line sets foldmethod to marker. I think this method is better than autocmd method, because filetype checking is not needed, and it only affects 1 file(vimrc), not affecting other vim files.

" vim:foldmethod=marker

Note: this line should be placed within 5 lines of the top or bottom of vimrc file.


Reference:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant