Created
February 5, 2012 04:22
-
-
Save cperl82/1742684 to your computer and use it in GitHub Desktop.
Custom statusline for NERDTree with Powerline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/autoload/Powerline/Matches.vim b/autoload/Powerline/Matches.vim | |
index 2244f57..98d9cde 100644 | |
--- a/autoload/Powerline/Matches.vim | |
+++ b/autoload/Powerline/Matches.vim | |
@@ -2,6 +2,7 @@ let g:Powerline#Matches#matches = { | |
\ 'command_t' : Pl#Match#Add('bufname("%")', 'GoToFile'), | |
\ 'ft_help' : Pl#Match#Add('&ft' , 'help'), | |
\ 'ft_man' : Pl#Match#Add('&ft' , 'man'), | |
+ \ 'ft_nerdtree' : Pl#Match#Add('&ft' , 'nerdtree'), | |
\ 'ft_qf' : Pl#Match#Add('&ft' , 'qf'), | |
\ 'ft_vimpager' : Pl#Match#Add('&ft' , 'vimpager'), | |
\ 'gundo_preview' : Pl#Match#Add('bufname("%")', '__Gundo_Preview__'), | |
diff --git a/autoload/Powerline/Themes/distinguished.vim b/autoload/Powerline/Themes/distinguished.vim | |
index 6f98f68..f6ea97d 100644 | |
--- a/autoload/Powerline/Themes/distinguished.vim | |
+++ b/autoload/Powerline/Themes/distinguished.vim | |
@@ -37,6 +37,12 @@ let g:Powerline#Themes#distinguished#theme = Pl#Theme#Create( | |
\ , Pl#Segment#Split() | |
\ ), | |
\ | |
+ \ Pl#Theme#Buffer('ft_nerdtree' | |
+ \ , 'filename' | |
+ \ , Pl#Segment#Truncate() | |
+ \ , Pl#Segment#Split() | |
+ \ ), | |
+ \ | |
\ Pl#Theme#Buffer('ft_help' | |
\ , ['static_str.name', 'Help'] | |
\ , 'filename' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment