-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtwitcommands.vim
More file actions
179 lines (172 loc) · 4.16 KB
/
twitcommands.vim
File metadata and controls
179 lines (172 loc) · 4.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
" Commands " {{{
python << END
"""
" }}}
" Settings " {{{
let twitvim_api_root = "https://api.twitter.com/1"
let twitvim_enable_python = 1
let twitvim_count = 25
let twitvim_count = 200
let twitvim_count = 100
40wincmd |
" }}}
FriendsTwitter
VimSearch \\| 40wincmd
SearchTwitter sdecastelberg
SearchTwitter baristapdx
SearchTwitter @github
SearchTwitter dotvimrc
SearchTwitter #MacVim
SearchTwitter #Lion
SearchTwitter stevelosh
SearchTwitter b4winckler
SearchTwitter #rails
SearchTwitter jemmons
SearchTwitter james_herdman
SearchTwitter evanrkeller
SearchTwitter mikelikesbikes
SearchTwitter cleverdevil
SearchTwitter JonRowe
SearchTwitter tungd
UserTwitter SethMilliken
SearchTwitter SethMilliken
ListTwitter ruby
SearchTwitter #Xcode
SearchTwitter #pentadactyl
SearchTwitter jerojasro
SearchTwitter @despo
SearchTwitter blzysh
SearchTwitter morticed
SearchTwitter bavarious
NextSearchPage
ProfileTwitter SethMilliken
ProfileTwitter stevelosh
FollowTwitter b4winckler
FollowingTwitter
FollowersTwitter
" url shortners
Trim
BitLy
" <D-j>t New Tweet Buffer
" Keybindings " {{{
" \e long version of url
" \p profile info
" \g timeline of user
" \X delete tweet
" \f add tweet to favorites
" \<C-f> remove tweet from favorites
" \<C-o> previous timeline
" \ <C-i> next timeline
" \\ refresh timeline
" }}}
" Command Listing " {{{
RateLimitTwitter
SendDMTwitter
UserTwitter
twitvim_count
FriendsTwitter
MentionsTwitter
RepliesTwitter
PublicTwitter
DMTwitter
DMSentTwitter
ListTwitter
RetweetedToMeTwitter
RetweetedByMeTwitter
FavTwitter
FollowingTwitter
FollowersTwitter
MembersOfListTwitter
SubsOfListTwitter
OwnedListsTwitter
MemberListsTwitter
SubsListsTwitter
FollowListTwitter
UnfollowListTwitter
BackTwitter
BackInfoTwitter
ForwardTwitter
ForwardInfoTwitter
RefreshTwitter
RefreshInfoTwitter
NextTwitter
NextInfoTwitter
PreviousTwitter
PreviousInfoTwitter
SetLoginTwitter
ResetLoginTwitter
FollowTwitter
UnfollowTwitter
BlockTwitter
UnblockTwitter
ReportSpamTwitter
AddToListTwitter
RemoveFromListTwitter
" }}}
" End Commands " {{{
"""
END
" }}}
" TwitVim Commands " {{{
map <buffer> <silent> <CR> yyq:p<CR> \| :wincmd h<CR>
map <buffer> <silent> <D-j>n :wincmd h \| :call NextSearchPage() \| :wincmd h<CR>
map <buffer> <silent> <D-j>v :wincmd h \| :call TwitVimVimSearch() \| :wincmd h<CR>
map <buffer> <silent> <D-j>t <Plug>NewTweet
map <buffer> <silent> <D-j>j :40wincmd <bar><CR>
noremap <script> <Plug>NewTweet :call <SID>NewTweet()<CR>
command! NextSearchPage :call s:NextSearchPage()
command! VimSearch :call s:TwitVimVimSearch()
function! s:NewTweet()
new | set bt=nofile | wincmd J | 1wincmd _ | set colorcolumn=140 | map <buffer> <CR> :BPosttoTwitter
endfunction
function! s:TwitterSetup()
let twitvim_count = 200
endfunction
function! s:TwitVimVimSearch()
call s:TwitterSetup()
exe ":SearchTwitter #vim -source:twaitter -Sovereign_VIM -Caesar_Poe -StephtheShocker -Qadar220 -followback -AUMA -MTV -☆• -NiCCiISNeechee"
call s:VimSearchCleanup()
endfunction
function! s:NextSearchPage()
call s:TwitterSetup()
exe ":NextTwitter"
call s:VimSearchCleanup()
endfunction
function! s:VimSearchCleanup()
wincmd l | set modifiable
if match(expand("%:p:t"), "Twitter_") > -1
silent exec "2,$g/" . s:BlackList() . "/d"
" silent %s/^\(.\{-}:\)\([^|]*\)|\(.\{-}\)/\=printf("%20s %s\r%125s", submatch(1), submatch(2), "|" . submatch(3))/e
normal gg
endif
endfunction
function! s:BlackList()
let l = [
\ "#JMG",
\ "vimradio",
\ "#TFB",
\ "#teamfollowback",
\ "★",
\ "☆",
\ "#follow",
\ "#Follow",
\ "#FOLLOW",
\ "followers",
\ "NERDYCHiiCK",
\ "NeRdYChiiCk",
\ "#TeamFollowBack",
\ "#TEAMFOLLOWBACK",
\ "#TeamFOLLOWBACK",
\ "NiCCiisNeechee",
\ "VERSATHEISSUE",
\ "#ff",
\ "#FF",
\ "CouchMoneySweet",
\ "BlakMuzick",
\ "#VIM",
\ ]
return join(l, "\\\|")
endfunction
" vim: nowrap fdl=0
" }}}
" vim: set cms=\ \"\ %s: