1
0
mirror of https://github.com/captn3m0/dotfiles.git synced 2024-09-19 12:56:58 +00:00
dotfiles/files/vim/.vim/bundle/vim-powerline/autoload/Powerline/Functions/ft_man.vim

13 lines
251 B
VimL
Raw Normal View History

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