Skip to content

Instantly share code, notes, and snippets.

View raindev's full-sized avatar

Andrew Barchuk raindev

View GitHub Profile
function! HighlightCurrent()
let pathlist = split(expand('%'), '/')
exec "Explore " . getcwd()
while 1
let elem = remove(pathlist, 0)
if !search(elem, 'W')
break
endif
if !empty(pathlist)
exec "normal \<CR>"