Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 831 Bytes

README.markdown

File metadata and controls

22 lines (15 loc) · 831 Bytes

Filetype-specific mappings for [[ and ]] to jump to the next section.

Currently supported filetype with their patterns:

css             ^[^ \t{}/] 
go              \v^(func|type|var|const|import) 
html            \v\<(head|body|style|script|div|ul|article|section|main|header|footer|h\d)[> ] 
javascript      \v^\s*(function\s*\w|var \w*\s+\=\s+function\s*\()
markdown        \v(^\=\=\=|^---|^#{1,6}) 

Adding a new filetype

Call to jumpy#map() in ftplugin/<ft>.vim. The plugin is tested with testing.vim; running the full test suite should be as easy as tvim test ./....

You can also use a Filetype autocmd in your local vimrc file:

autocmd Filetype myft call jumpy#map('..pattern..')