]> git.r.bdr.sh - rbdr/dotfiles/blame_incremental - vim/autoload/Powerline/Functions/ft_man.vim
Merge branch 'master' of github.com:benbeltran/dotfiles
[rbdr/dotfiles] / vim / autoload / Powerline / Functions / ft_man.vim
... / ...
CommitLineData
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 " }}}