Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Using modeline to fold vimrc in chapter 22 #150

Copy link
Copy link
@CyrusYip

Description

@CyrusYip
Issue body actions

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:

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.