Skip to content

Instantly share code, notes, and snippets.

@ebith
Created December 12, 2012 01:19
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebith/4264015 to your computer and use it in GitHub Desktop.
Save ebith/4264015 to your computer and use it in GitHub Desktop.
vimperatorrcのtwittperator部分
let g:twittperator_use_ssl_connection_for_api_ep = 1
let g:twittperator_use_chirp = 1
let g:twittperator_all_replies = 1
let g:twittperator_screen_name = "ebith"
let g:twittperator_history_limit = 5000
let g:twittperator_lang = "ja"
let g:twittperator_count = 50
let g:twittperator_track_words = "vimp,vimperator,gNTPdate,Twittperator,ついっぺ,ツイッペ,twsidebar"
let g:twittperator_plugin_pong = 1
let g:twittperator_plugin_add_url_completer = 1
let g:twittperator_plugin_rt = 1
let g:twittperator_plugin_twsidebar = 1
nnoremap ,wS :tws<Space>
nnoremap ,ws1 :tws tab 0<CR>
nnoremap ,ws2 :tws tab 1<CR>
nnoremap ,ws3 :tws tab 2<CR>
nnoremap ,ws4 :tws tab 3<CR>
nnoremap ,ws5 :tws tab 4<CR>
javascript <<EOM
(function () {
function makeAudio (path, volume) {
let audio = new Audio(path);
// XXX 効いてない
if (volume)
audio.volume = volume;
return audio;
}
liberator.globalVariables.twittperator_sidebar_config = {
// for Keyword タグ
keyword: /jkasz219jioazmcx/i,
// ツイート内に含まれると、表示上抹殺される (reply とか除く
vanish: /favstar_bot/i,
// 自分のスクリーンネーム
screenName: 'ebith',
// 自分のその他の名前
myNames: /ebith|えびさん|エビさん/i,
// ログファイル てけとーなフォーマットで保存されます
// logFile: io.File('~/.chirpstream'),
// myLogFile: io.File('~/.mychirpstream'),
// 各イベント時に音がなる
sound: {
meow: makeAudio('file://C:/Windows/Media/ding.wav'),
fanfare: makeAudio('file://C:/sound-data/fanfare.wav', 0.5),
retweet: makeAudio('file://C:/Windows/Media/ding.wav', 0.8),
favorite: makeAudio('file://C:/Windows/Media/ding.wav', 0.6),
reply: makeAudio('file://C:/Windows/Media/ding.wav', 1.0),
debug: makeAudio('file://C:/Windows/Media/ding.wav', 1.0),
filter: makeAudio('file://C:/Windows/Media/ding.wav', 1.0),
},
// 文字のサイズ
fontSize: 15,
// リストの最大保持数
listMax: 200,
// リストの表示順(昇順/降順)
listAscendingOrder: true,
// ツイートされる度に最新ツイート位置までスクロールする
listAutoScroll: true,
// 日本語だけ for filter stream
jpOnly: true,
// 地震ツイートの本文に場所をくっつける
earthquake: true,
// サイドバーを閉じても機能を停止しない
dontStop: true,
// サイドバーが閉じていても、こっそり開始しておく
silentStart: true,
// 配列かオブジェクトを返すと、変更できる。
// 文字列 "reject" を返すと、そもそもツイートが表示されなくなる。
//modifier: function (msg, tab, streamName) {
// return [msg, tab, streamName];
//}
};
})();
EOM
let g:twittperator_plugin_twsidebar_expand_url = 1
nnoremap ,wl :tw<CR>
nnoremap ,ww :tw<Space>
nnoremap ,wr :tw<Space>@
nnoremap ,wR :tw!rt<Space>
nnoremap ,W :tw!<Space>
nnoremap ,w@ :tw!@
nnoremap ,wf :tw!+
nnoremap ,w? :tw!?
nnoremap ,w/ :tw!/<Tab>
nnoremap ,wi :tw!info<Space>
nnoremap ,wT :tw!track<Space>
nnoremap ,wt :tw!thread<Space>
nnoremap ,wd :tw!delete<Space>
nnoremap ,wh :tw!home<Space>
nnoremap ,wL :tw!lookupuser<Space>
nnoremap ,wa :tw!activity<Space>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment