]> git.r.bdr.sh - rbdr/dotfiles/blame - vim/autoload/Powerline/Segments.vim
Add gitignore
[rbdr/dotfiles] / vim / autoload / Powerline / Segments.vim
CommitLineData
321ecaca
BB
1let g:Powerline#Segments#segments = Pl#Segment#Init(
2 \ Pl#Segment#Create('SPLIT' , '__split__'),
3 \ Pl#Segment#Create('TRUNCATE', '__truncate__'),
4 \
5 \ Pl#Segment#Create('mode_indicator' , '%{Powerline#Functions#GetMode()}', Pl#Segment#Modes('!N')),
6 \ Pl#Segment#Create('fileinfo',
7 \ Pl#Segment#Create('flags.ro' , '%{&readonly ? "$RO" : ""}'),
8 \ Pl#Segment#Create('name' , '%t'),
9 \ Pl#Segment#Create('flags.mod' , '%M'),
10 \ Pl#Segment#Create('flags.type' , '%H%W'),
11 \ ),
12 \ Pl#Segment#Create('filename' , '%t'),
13 \ Pl#Segment#Create('filesize' , '%{Powerline#Functions#GetFilesize()}', Pl#Segment#Modes('!N')),
14 \ Pl#Segment#Create('pwd' , '%{substitute(getcwd(), expand("$HOME"), "~", "g")}'),
15 \ Pl#Segment#Create('static_str' , '%%{"%s"}'),
16 \ Pl#Segment#Create('raw' , '%s'),
17 \ Pl#Segment#Create('fileformat' , '%{&fileformat}', Pl#Segment#Modes('!N')),
18 \ Pl#Segment#Create('fileencoding' , '%{(&fenc == "" ? &enc : &fenc)}', Pl#Segment#Modes('!N')),
19 \ Pl#Segment#Create('filetype' , '%{strlen(&ft) ? &ft : "no ft"}', Pl#Segment#Modes('!N')),
20 \ Pl#Segment#Create('scrollpercent' , '%3p%%'),
21 \ Pl#Segment#Create('lineinfo',
22 \ Pl#Segment#Create('line.cur' , '$LINE %3l'),
23 \ Pl#Segment#Create('line.tot' , '$COL %-2c'),
24 \ ),
25 \ Pl#Segment#Create('charcode' , '%{Powerline#Functions#GetCharCode()}', Pl#Segment#Modes('!N')),
26 \ Pl#Segment#Create('currhigroup' , '%{synIDattr(synID(line("."), col("."), 1), "name")}', Pl#Segment#Modes('!N')),
27 \ Pl#Segment#Create('ws_marker' , '%{Powerline#Functions#GetWSMarker()}', Pl#Segment#Modes('!N')),
28\ )