]> git.r.bdr.sh - rbdr/dotfiles/blob - vim/autoload/Powerline/Functions/ft_man.vim
Add tmuxinator script
[rbdr/dotfiles] / vim / autoload / Powerline / Functions / ft_man.vim
1 function! 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
12 endfunction " }}}