dot_files/vim-plugins/vim-powerline/autoload/Powerline/Functions/ft_man.vim
2017-10-08 12:00:02 +01:00

12 lines
251 B
VimL

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 " }}}