]> git.r.bdr.sh - rbdr/dotfiles/blame - vim/autoload/Powerline/Functions/ft_man.vim
Add powerline
[rbdr/dotfiles] / vim / autoload / Powerline / Functions / ft_man.vim
CommitLineData
321ecaca
BB
1function! Powerline#Functions#ft_man#GetName() " {{{
2 let matches = matchlist(getline(1), '\v^([a-zA-Z_\.\-]+)\((\d+)\)')
3
4 if ! len(matches)
5 return 'n/a'
6 endif
7
8 let file = tolower(matches[1])
9 let num = matches[2]
10
11 return file
12endfunction " }}}