Move from vim-airline to lightline and switch to the 'hybrid' colour scheme.

This commit is contained in:
Scott Wallace 2015-10-26 20:32:51 +00:00
parent aea9a53f6a
commit aa1a43c12d
3 changed files with 563 additions and 86 deletions

View file

@ -28,6 +28,219 @@
<false/>
<key>CopySelection</key>
<false/>
<key>Custom Color Presets</key>
<dict>
<key>hybrid</key>
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.13229149580001831</real>
<key>Green Component</key>
<real>0.12323731929063797</real>
<key>Red Component</key>
<real>0.11772859841585159</real>
</dict>
<key>Ansi 1 Color</key>
<dict>
<key>Blue Component</key>
<real>0.19966201484203339</real>
<key>Green Component</key>
<real>0.18515877425670624</real>
<key>Red Component</key>
<real>0.5740046501159668</real>
</dict>
<key>Ansi 10 Color</key>
<dict>
<key>Blue Component</key>
<real>0.33485174179077148</real>
<key>Green Component</key>
<real>0.69721812009811401</real>
<key>Red Component</key>
<real>0.65277093648910522</real>
</dict>
<key>Ansi 11 Color</key>
<dict>
<key>Blue Component</key>
<real>0.38143736124038696</real>
<key>Green Component</key>
<real>0.73312276601791382</real>
<key>Red Component</key>
<real>0.92229294776916504</real>
</dict>
<key>Ansi 12 Color</key>
<dict>
<key>Blue Component</key>
<real>0.69104295969009399</real>
<key>Green Component</key>
<real>0.56590473651885986</real>
<key>Red Component</key>
<real>0.43420237302780151</real>
</dict>
<key>Ansi 13 Color</key>
<dict>
<key>Blue Component</key>
<real>0.67776411771774292</real>
<key>Green Component</key>
<real>0.49912372231483459</real>
<key>Red Component</key>
<real>0.63456809520721436</real>
</dict>
<key>Ansi 14 Color</key>
<dict>
<key>Blue Component</key>
<real>0.65990132093429565</real>
<key>Green Component</key>
<real>0.69651854038238525</real>
<key>Red Component</key>
<real>0.47394692897796631</real>
</dict>
<key>Ansi 15 Color</key>
<dict>
<key>Blue Component</key>
<real>0.72799122333526611</real>
<key>Green Component</key>
<real>0.73772752285003662</real>
<key>Red Component</key>
<real>0.72378784418106079</real>
</dict>
<key>Ansi 2 Color</key>
<dict>
<key>Blue Component</key>
<real>0.19350560009479523</real>
<key>Green Component</key>
<real>0.51718360185623169</real>
<key>Red Component</key>
<real>0.47679561376571655</real>
</dict>
<key>Ansi 3 Color</key>
<dict>
<key>Blue Component</key>
<real>0.30180639028549194</real>
<key>Green Component</key>
<real>0.50180763006210327</real>
<key>Red Component</key>
<real>0.83306139707565308</real>
</dict>
<key>Ansi 4 Color</key>
<dict>
<key>Blue Component</key>
<real>0.54611688852310181</real>
<key>Green Component</key>
<real>0.42857363820075989</real>
<key>Red Component</key>
<real>0.3033672571182251</real>
</dict>
<key>Ansi 5 Color</key>
<dict>
<key>Blue Component</key>
<real>0.48750758171081543</real>
<key>Green Component</key>
<real>0.32038700580596924</real>
<key>Red Component</key>
<real>0.44386249780654907</real>
</dict>
<key>Ansi 6 Color</key>
<dict>
<key>Blue Component</key>
<real>0.45474731922149658</real>
<key>Green Component</key>
<real>0.48341637849807739</real>
<key>Red Component</key>
<real>0.30198413133621216</real>
</dict>
<key>Ansi 7 Color</key>
<dict>
<key>Blue Component</key>
<real>0.42652279138565063</real>
<key>Green Component</key>
<real>0.3944053053855896</real>
<key>Red Component</key>
<real>0.36455416679382324</real>
</dict>
<key>Ansi 8 Color</key>
<dict>
<key>Blue Component</key>
<real>0.19518557190895081</real>
<key>Green Component</key>
<real>0.17529888451099396</real>
<key>Red Component</key>
<real>0.16332042217254639</real>
</dict>
<key>Ansi 9 Color</key>
<dict>
<key>Blue Component</key>
<real>0.32692217826843262</real>
<key>Green Component</key>
<real>0.31278485059738159</real>
<key>Red Component</key>
<real>0.74731773138046265</real>
</dict>
<key>Background Color</key>
<dict>
<key>Blue Component</key>
<real>0.097707755863666534</real>
<key>Green Component</key>
<real>0.092142701148986816</real>
<key>Red Component</key>
<real>0.086937598884105682</real>
</dict>
<key>Bold Color</key>
<dict>
<key>Blue Component</key>
<real>0.72941176470588232</real>
<key>Green Component</key>
<real>0.73725490196078436</real>
<key>Red Component</key>
<real>0.72156862745098038</real>
</dict>
<key>Cursor Color</key>
<dict>
<key>Blue Component</key>
<real>0.72941176470588232</real>
<key>Green Component</key>
<real>0.73725490196078436</real>
<key>Red Component</key>
<real>0.72156862745098038</real>
</dict>
<key>Cursor Text Color</key>
<dict>
<key>Blue Component</key>
<real>0.13528014719486237</real>
<key>Green Component</key>
<real>0.12312769144773483</real>
<key>Red Component</key>
<real>0.11772145330905914</real>
</dict>
<key>Foreground Color</key>
<dict>
<key>Blue Component</key>
<real>0.72941176470588232</real>
<key>Green Component</key>
<real>0.73725490196078436</real>
<key>Red Component</key>
<real>0.72156862745098038</real>
</dict>
<key>Selected Text Color</key>
<dict>
<key>Blue Component</key>
<real>0.097707755863666534</real>
<key>Green Component</key>
<real>0.092142701148986816</real>
<key>Red Component</key>
<real>0.086937598884105682</real>
</dict>
<key>Selection Color</key>
<dict>
<key>Blue Component</key>
<real>0.72941176470588232</real>
<key>Green Component</key>
<real>0.73725490196078436</real>
<key>Red Component</key>
<real>0.72156862745098038</real>
</dict>
</dict>
</dict>
<key>Default Bookmark Guid</key>
<string>B5770A01-18BD-499A-81BD-021279F4BC55</string>
<key>DimBackgroundWindows</key>
@ -83,7 +296,9 @@
<key>MaxVertically</key>
<false/>
<key>NSNavLastRootDirectory</key>
<string>~/Documents</string>
<string>~/.iterm2</string>
<key>NSNavPanelExpandedSizeForOpenMode</key>
<string>{712, 448}</string>
<key>NSQuotedKeystrokeBinding</key>
<string></string>
<key>NSRepeatCountBinding</key>
@ -108,11 +323,13 @@
<key>NSTableView Sort Ordering KeyBingingTable</key>
<array/>
<key>NSWindow Frame Preferences</key>
<string>270 110 924 485 0 0 1920 1178 </string>
<string>269 110 924 485 0 0 1440 877 </string>
<key>NSWindow Frame iTerm Window 0</key>
<string>226 163 1210 866 0 0 1920 1178 </string>
<string>183 280 850 586 0 0 1440 877 </string>
<key>NSWindow Frame iTerm Window 1</key>
<string>225 39 1210 866 0 0 1920 1178 </string>
<string>183 280 850 586 0 0 1440 877 </string>
<key>NSWindow Frame iTerm Window 2</key>
<string>183 291 850 586 0 0 1440 877 </string>
<key>New Bookmarks</key>
<array>
<dict>
@ -125,146 +342,146 @@
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<real>0.13229149580001831</real>
<key>Green Component</key>
<real>0.0</real>
<real>0.12323731929063797</real>
<key>Red Component</key>
<real>0.0</real>
<real>0.11772859841585159</real>
</dict>
<key>Ansi 1 Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<real>0.19966201484203339</real>
<key>Green Component</key>
<real>0.0</real>
<real>0.18515877425670624</real>
<key>Red Component</key>
<real>0.73333334922790527</real>
<real>0.5740046501159668</real>
</dict>
<key>Ansi 10 Color</key>
<dict>
<key>Blue Component</key>
<real>0.3333333432674408</real>
<real>0.33485174179077148</real>
<key>Green Component</key>
<real>1</real>
<real>0.69721812009811401</real>
<key>Red Component</key>
<real>0.3333333432674408</real>
<real>0.65277093648910522</real>
</dict>
<key>Ansi 11 Color</key>
<dict>
<key>Blue Component</key>
<real>0.3333333432674408</real>
<real>0.38143736124038696</real>
<key>Green Component</key>
<real>1</real>
<real>0.73312276601791382</real>
<key>Red Component</key>
<real>1</real>
<real>0.92229294776916504</real>
</dict>
<key>Ansi 12 Color</key>
<dict>
<key>Blue Component</key>
<real>1</real>
<real>0.69104295969009399</real>
<key>Green Component</key>
<real>0.3333333432674408</real>
<real>0.56590473651885986</real>
<key>Red Component</key>
<real>0.3333333432674408</real>
<real>0.43420237302780151</real>
</dict>
<key>Ansi 13 Color</key>
<dict>
<key>Blue Component</key>
<real>1</real>
<real>0.67776411771774292</real>
<key>Green Component</key>
<real>0.3333333432674408</real>
<real>0.49912372231483459</real>
<key>Red Component</key>
<real>1</real>
<real>0.63456809520721436</real>
</dict>
<key>Ansi 14 Color</key>
<dict>
<key>Blue Component</key>
<real>1</real>
<real>0.65990132093429565</real>
<key>Green Component</key>
<real>1</real>
<real>0.69651854038238525</real>
<key>Red Component</key>
<real>0.3333333432674408</real>
<real>0.47394692897796631</real>
</dict>
<key>Ansi 15 Color</key>
<dict>
<key>Blue Component</key>
<real>1</real>
<real>0.72799122333526611</real>
<key>Green Component</key>
<real>1</real>
<real>0.73772752285003662</real>
<key>Red Component</key>
<real>1</real>
<real>0.72378784418106079</real>
</dict>
<key>Ansi 2 Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<real>0.19350560009479523</real>
<key>Green Component</key>
<real>0.73333334922790527</real>
<real>0.51718360185623169</real>
<key>Red Component</key>
<real>0.0</real>
<real>0.47679561376571655</real>
</dict>
<key>Ansi 3 Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<real>0.30180639028549194</real>
<key>Green Component</key>
<real>0.73333334922790527</real>
<real>0.50180763006210327</real>
<key>Red Component</key>
<real>0.73333334922790527</real>
<real>0.83306139707565308</real>
</dict>
<key>Ansi 4 Color</key>
<dict>
<key>Blue Component</key>
<real>0.73333334922790527</real>
<real>0.54611688852310181</real>
<key>Green Component</key>
<real>0.0</real>
<real>0.42857363820075989</real>
<key>Red Component</key>
<real>0.0</real>
<real>0.3033672571182251</real>
</dict>
<key>Ansi 5 Color</key>
<dict>
<key>Blue Component</key>
<real>0.73333334922790527</real>
<real>0.48750758171081543</real>
<key>Green Component</key>
<real>0.0</real>
<real>0.32038700580596924</real>
<key>Red Component</key>
<real>0.73333334922790527</real>
<real>0.44386249780654907</real>
</dict>
<key>Ansi 6 Color</key>
<dict>
<key>Blue Component</key>
<real>0.73333334922790527</real>
<real>0.45474731922149658</real>
<key>Green Component</key>
<real>0.73333334922790527</real>
<real>0.48341637849807739</real>
<key>Red Component</key>
<real>0.0</real>
<real>0.30198413133621216</real>
</dict>
<key>Ansi 7 Color</key>
<dict>
<key>Blue Component</key>
<real>0.73333334922790527</real>
<real>0.42652279138565063</real>
<key>Green Component</key>
<real>0.73333334922790527</real>
<real>0.3944053053855896</real>
<key>Red Component</key>
<real>0.73333334922790527</real>
<real>0.36455416679382324</real>
</dict>
<key>Ansi 8 Color</key>
<dict>
<key>Blue Component</key>
<real>0.48716771602630615</real>
<real>0.19518557190895081</real>
<key>Green Component</key>
<real>0.48716771602630615</real>
<real>0.17529888451099396</real>
<key>Red Component</key>
<real>0.48716771602630615</real>
<real>0.16332042217254639</real>
</dict>
<key>Ansi 9 Color</key>
<dict>
<key>Blue Component</key>
<real>0.3333333432674408</real>
<real>0.32692217826843262</real>
<key>Green Component</key>
<real>0.3333333432674408</real>
<real>0.31278485059738159</real>
<key>Red Component</key>
<real>1</real>
<real>0.74731773138046265</real>
</dict>
<key>Automatically Log</key>
<false/>
@ -273,11 +490,11 @@
<key>Background Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<real>0.097707755863666534</real>
<key>Green Component</key>
<real>0.0</real>
<real>0.092142701148986816</real>
<key>Red Component</key>
<real>0.0</real>
<real>0.086937598884105682</real>
</dict>
<key>Background Image Is Tiled</key>
<false/>
@ -296,11 +513,11 @@
<key>Bold Color</key>
<dict>
<key>Blue Component</key>
<real>1</real>
<real>0.729411780834198</real>
<key>Green Component</key>
<real>1</real>
<real>0.73725491762161255</real>
<key>Red Component</key>
<real>1</real>
<real>0.72156864404678345</real>
</dict>
<key>Character Encoding</key>
<integer>4</integer>
@ -313,20 +530,20 @@
<key>Cursor Color</key>
<dict>
<key>Blue Component</key>
<real>0.73333334922790527</real>
<real>0.729411780834198</real>
<key>Green Component</key>
<real>0.73333334922790527</real>
<real>0.73725491762161255</real>
<key>Red Component</key>
<real>0.73333334922790527</real>
<real>0.72156864404678345</real>
</dict>
<key>Cursor Text Color</key>
<dict>
<key>Blue Component</key>
<real>1</real>
<real>0.13528014719486237</real>
<key>Green Component</key>
<real>1</real>
<real>0.12312769144773483</real>
<key>Red Component</key>
<real>1</real>
<real>0.11772145330905914</real>
</dict>
<key>Cursor Type</key>
<integer>2</integer>
@ -347,11 +564,11 @@
<key>Foreground Color</key>
<dict>
<key>Blue Component</key>
<real>1</real>
<real>0.729411780834198</real>
<key>Green Component</key>
<real>1</real>
<real>0.73725491762161255</real>
<key>Red Component</key>
<real>1</real>
<real>0.72156864404678345</real>
</dict>
<key>Guid</key>
<string>B5770A01-18BD-499A-81BD-021279F4BC55</string>
@ -588,20 +805,20 @@
<key>Selected Text Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<real>0.097707755863666534</real>
<key>Green Component</key>
<real>0.0</real>
<real>0.092142701148986816</real>
<key>Red Component</key>
<real>0.0</real>
<real>0.086937598884105682</real>
</dict>
<key>Selection Color</key>
<dict>
<key>Blue Component</key>
<real>0.7578655481338501</real>
<real>0.729411780834198</real>
<key>Green Component</key>
<real>0.7578655481338501</real>
<real>0.73725491762161255</real>
<key>Red Component</key>
<real>0.7578655481338501</real>
<real>0.72156864404678345</real>
</dict>
<key>Semantic History</key>
<dict>
@ -744,9 +961,9 @@
</dict>
</array>
<key>NoSyncTimeOfLastPromo</key>
<real>464690275.89469802</real>
<real>464721296.71882403</real>
<key>NoSyncTimeOfLastPromoDownload</key>
<real>464690275.89472401</real>
<real>467580570.19095999</real>
<key>OnlyWhenMoreTabs</key>
<true/>
<key>OpenArrangementAtStartup</key>
@ -805,11 +1022,11 @@
<key>SUEnableAutomaticChecks</key>
<true/>
<key>SUFeedURL</key>
<string>http://iterm2.com/appcasts/testing.xml</string>
<string>https://iterm2.com/appcasts/testing.xml</string>
<key>SUHasLaunchedBefore</key>
<true/>
<key>SULastCheckTime</key>
<date>2015-09-23T08:37:21Z</date>
<date>2015-10-26T19:29:24Z</date>
<key>SavePasteHistory</key>
<false/>
<key>ShowBookmarkName</key>
@ -855,6 +1072,6 @@
<key>findRegex_iTerm</key>
<false/>
<key>iTerm Version</key>
<string>2.1.1</string>
<string>2.1.4</string>
</dict>
</plist>

213
.iterm2/hybrid.itermcolors Normal file
View file

@ -0,0 +1,213 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.13229149580001831</real>
<key>Green Component</key>
<real>0.12323731929063797</real>
<key>Red Component</key>
<real>0.11772859841585159</real>
</dict>
<key>Ansi 1 Color</key>
<dict>
<key>Blue Component</key>
<real>0.19966201484203339</real>
<key>Green Component</key>
<real>0.18515877425670624</real>
<key>Red Component</key>
<real>0.5740046501159668</real>
</dict>
<key>Ansi 10 Color</key>
<dict>
<key>Blue Component</key>
<real>0.33485174179077148</real>
<key>Green Component</key>
<real>0.69721812009811401</real>
<key>Red Component</key>
<real>0.65277093648910522</real>
</dict>
<key>Ansi 11 Color</key>
<dict>
<key>Blue Component</key>
<real>0.38143736124038696</real>
<key>Green Component</key>
<real>0.73312276601791382</real>
<key>Red Component</key>
<real>0.92229294776916504</real>
</dict>
<key>Ansi 12 Color</key>
<dict>
<key>Blue Component</key>
<real>0.69104295969009399</real>
<key>Green Component</key>
<real>0.56590473651885986</real>
<key>Red Component</key>
<real>0.43420237302780151</real>
</dict>
<key>Ansi 13 Color</key>
<dict>
<key>Blue Component</key>
<real>0.67776411771774292</real>
<key>Green Component</key>
<real>0.49912372231483459</real>
<key>Red Component</key>
<real>0.63456809520721436</real>
</dict>
<key>Ansi 14 Color</key>
<dict>
<key>Blue Component</key>
<real>0.65990132093429565</real>
<key>Green Component</key>
<real>0.69651854038238525</real>
<key>Red Component</key>
<real>0.47394692897796631</real>
</dict>
<key>Ansi 15 Color</key>
<dict>
<key>Blue Component</key>
<real>0.72799122333526611</real>
<key>Green Component</key>
<real>0.73772752285003662</real>
<key>Red Component</key>
<real>0.72378784418106079</real>
</dict>
<key>Ansi 2 Color</key>
<dict>
<key>Blue Component</key>
<real>0.19350560009479523</real>
<key>Green Component</key>
<real>0.51718360185623169</real>
<key>Red Component</key>
<real>0.47679561376571655</real>
</dict>
<key>Ansi 3 Color</key>
<dict>
<key>Blue Component</key>
<real>0.30180639028549194</real>
<key>Green Component</key>
<real>0.50180763006210327</real>
<key>Red Component</key>
<real>0.83306139707565308</real>
</dict>
<key>Ansi 4 Color</key>
<dict>
<key>Blue Component</key>
<real>0.54611688852310181</real>
<key>Green Component</key>
<real>0.42857363820075989</real>
<key>Red Component</key>
<real>0.3033672571182251</real>
</dict>
<key>Ansi 5 Color</key>
<dict>
<key>Blue Component</key>
<real>0.48750758171081543</real>
<key>Green Component</key>
<real>0.32038700580596924</real>
<key>Red Component</key>
<real>0.44386249780654907</real>
</dict>
<key>Ansi 6 Color</key>
<dict>
<key>Blue Component</key>
<real>0.45474731922149658</real>
<key>Green Component</key>
<real>0.48341637849807739</real>
<key>Red Component</key>
<real>0.30198413133621216</real>
</dict>
<key>Ansi 7 Color</key>
<dict>
<key>Blue Component</key>
<real>0.42652279138565063</real>
<key>Green Component</key>
<real>0.3944053053855896</real>
<key>Red Component</key>
<real>0.36455416679382324</real>
</dict>
<key>Ansi 8 Color</key>
<dict>
<key>Blue Component</key>
<real>0.19518557190895081</real>
<key>Green Component</key>
<real>0.17529888451099396</real>
<key>Red Component</key>
<real>0.16332042217254639</real>
</dict>
<key>Ansi 9 Color</key>
<dict>
<key>Blue Component</key>
<real>0.32692217826843262</real>
<key>Green Component</key>
<real>0.31278485059738159</real>
<key>Red Component</key>
<real>0.74731773138046265</real>
</dict>
<key>Background Color</key>
<dict>
<key>Blue Component</key>
<real>0.097707755863666534</real>
<key>Green Component</key>
<real>0.092142701148986816</real>
<key>Red Component</key>
<real>0.086937598884105682</real>
</dict>
<key>Bold Color</key>
<dict>
<key>Blue Component</key>
<real>0.72941176470588232</real>
<key>Green Component</key>
<real>0.73725490196078436</real>
<key>Red Component</key>
<real>0.72156862745098038</real>
</dict>
<key>Cursor Color</key>
<dict>
<key>Blue Component</key>
<real>0.72941176470588232</real>
<key>Green Component</key>
<real>0.73725490196078436</real>
<key>Red Component</key>
<real>0.72156862745098038</real>
</dict>
<key>Cursor Text Color</key>
<dict>
<key>Blue Component</key>
<real>0.13528014719486237</real>
<key>Green Component</key>
<real>0.12312769144773483</real>
<key>Red Component</key>
<real>0.11772145330905914</real>
</dict>
<key>Foreground Color</key>
<dict>
<key>Blue Component</key>
<real>0.72941176470588232</real>
<key>Green Component</key>
<real>0.73725490196078436</real>
<key>Red Component</key>
<real>0.72156862745098038</real>
</dict>
<key>Selected Text Color</key>
<dict>
<key>Blue Component</key>
<real>0.097707755863666534</real>
<key>Green Component</key>
<real>0.092142701148986816</real>
<key>Red Component</key>
<real>0.086937598884105682</real>
</dict>
<key>Selection Color</key>
<dict>
<key>Blue Component</key>
<real>0.72941176470588232</real>
<key>Green Component</key>
<real>0.73725490196078436</real>
<key>Red Component</key>
<real>0.72156862745098038</real>
</dict>
</dict>
</plist>

63
.vimrc
View file

@ -17,8 +17,9 @@ Plugin 'tpope/vim-commentary'
Plugin 'tpope/vim-surround'
Plugin 'scrooloose/syntastic'
Plugin 'scrooloose/nerdtree'
Plugin 'bling/vim-airline'
Plugin '29decibel/codeschool-vim-theme'
Plugin 'itchyny/lightline.vim'
Plugin 'w0ng/vim-hybrid'
Plugin 'cocopon/lightline-hybrid.vim'
Plugin 'Shougo/neocomplcache.vim'
Plugin 'kien/ctrlp.vim'
Plugin 'rodjek/vim-puppet'
@ -30,13 +31,11 @@ Plugin 'jistr/vim-nerdtree-tabs'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
colorscheme codeschool
" Airline
set laststatus=2
" Hybrid color scheme
let g:hybrid_use_Xresources = 1
set background=dark
colorscheme hybrid
" Tabs and indents
set tabstop=4
@ -60,3 +59,51 @@ let g:neocomplcache_enable_at_startup = 1
" Set filetypes
au BufRead,BufNewFile *.md set filetype=markdown
au BufRead,BufNewFile *.go set filetype=go
" Lightline
set laststatus=2
let g:lightline = {
\ 'colorscheme': 'hybrid',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'fugitive', 'readonly', 'filename', 'modified' ] ]
\ },
\ 'component_function': {
\ 'fugitive': 'LightLineFugitive',
\ 'readonly': 'LightLineReadonly',
\ 'modified': 'LightLineModified',
\ 'filename': 'LightLineFilename'
\ },
\ 'separator': { 'left': '', 'right': '' },
\ 'subseparator': { 'left': '>', 'right': '<' }
\ }
function! LightLineModified()
if &filetype == "help"
return ""
elseif &modified
return "+"
elseif &modifiable
return ""
else
return ""
endif
endfunction
function! LightLineReadonly()
if &filetype == "help"
return ""
elseif &readonly
return "!"
else
return ""
endif
endfunction
function! LightLineFugitive()
if exists("*fugitive#head")
let _ = fugitive#head()
return strlen(_) ? 'git:'._ : ''
endif
return ''
endfunction