Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " Jump Past Leading Comments
- " Barry Arthur, June 24 2011
- " NOTE: I actually do this slightly differently for C files (which have a
- " block comment instead of line-terminated comments)
- function! JPFC()
- let cs = '^\s*[^' . escape(matchstr(&cms, '^\S\+'), '*\') . ']'
- call search(cs, 'cW')
- endfunction
- augroup CommentJumper
- au!
- au BufRead * call JPFC()
- augroup END
Advertisement
Add Comment
Please, Sign In to add comment