I want to bind key Alt-n/p to next/previous LocationList or next/previous 
QuickFix list.
So I need to detect which List in current buffer. then bind Alt-n/p to them. 
like this.
    if (detect Location or QuickFix)
        map <A-n> :cnext<CR>
        map <A-n> :cprevious<CR>
    elseif
        map <A-n> :lnext<CR>
        map <A-n> :lprevious<CR>
    endif

-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html

Attachment: signature.asc
Description: Digital signature

Reply via email to