Created
May 28, 2013 00:40
-
-
Save wlt/5659802 to your computer and use it in GitHub Desktop.
Vimperatorのステータスバーに何か表示するサンプル
This file contains 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
" ステータスバーにページタイトル表示 | |
autocmd LocationChange .* -js statusline.updateField("title", "{" + buffer.title + "}") | |
autocmd DOMLoad .* -js args.url == buffer.URL && statusline.updateField("title", "{" + buffer.title + "}") | |
set status^=title | |
" ステータスバーにタブグループ名表示 | |
autocmd LocationChange .* -js setTimeout(function () { statusline.updateField("tabgrouptitle", "<" + tabGroup.tabView.GroupItems.getActiveGroupItem().getTitle() + ">") }, 0); | |
set status^=tabgrouptitle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment