From 321ecaca67426410316db7db05e6e33809fe1e63 Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Fri, 19 Oct 2012 15:09:38 -0500 Subject: Add powerline --- vim/autoload/Powerline/Functions/ft_man.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 vim/autoload/Powerline/Functions/ft_man.vim (limited to 'vim/autoload/Powerline/Functions/ft_man.vim') diff --git a/vim/autoload/Powerline/Functions/ft_man.vim b/vim/autoload/Powerline/Functions/ft_man.vim new file mode 100644 index 0000000..29135e4 --- /dev/null +++ b/vim/autoload/Powerline/Functions/ft_man.vim @@ -0,0 +1,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 " }}} -- cgit