aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload/Powerline/Functions/ft_man.vim
blob: 29135e4364508d119d77e7da519a519e91519478 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function! Powerline#Functions#ft_man#GetName() " {{{
	let matches = matchlist(getline(1), '\v^([a-zA-Z_\.\-]+)\((\d+)\)')

	if ! len(matches)
		return 'n/a'
	endif

	let file = tolower(matches[1])
	let num = matches[2]

	return file
endfunction " }}}