add API to get extent of the cursor at specific location
cosmetic change: folding
add Vim script APIs for specific extent