Created
February 27, 2016 15:15
-
-
Save Raimondi/6645bd39be6444ac6a5b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>" | |
else | |
break | |
endif | |
endwhile | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment