Created
December 14, 2013 03:49
-
-
Save nocd5/7955469 to your computer and use it in GitHub Desktop.
TweetVimにtweet_vim_action_say追加。デフォルトキーマップ<leader>S
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
diff -r a6552438b5e1 -r be5ec4a1cff3 autoload/tweetvim/action/say.vim | |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
+++ b/autoload/tweetvim/action/say.vim Sat Dec 14 12:40:44 2013 +0900 | |
@@ -0,0 +1,15 @@ | |
+" | |
+" | |
+" | |
+function! tweetvim#action#say#define() | |
+ return { | |
+ \ 'description' : 'say', | |
+ \ 'need_tweet' : 0, | |
+ \ } | |
+endfunction | |
+" | |
+" | |
+" | |
+function! tweetvim#action#say#execute(tweet) | |
+ call tweetvim#say#open() | |
+endfunction | |
diff -r a6552438b5e1 -r be5ec4a1cff3 autoload/tweetvim/buffer.vim | |
--- a/autoload/tweetvim/buffer.vim Sat Dec 14 12:30:42 2013 +0900 | |
+++ b/autoload/tweetvim/buffer.vim Sat Dec 14 12:40:44 2013 +0900 | |
@@ -606,5 +610,8 @@ | |
nnoremap <silent> <buffer> a :call unite#sources#tweetvim_action#start()<CR> | |
nnoremap <silent> <buffer> t :call unite#sources#tweetvim_timeline#start()<CR> | |
nnoremap <silent> <buffer> <leader>a :call unite#sources#tweetvim_switch_account#start()<CR> | |
+ | |
+ nmap <silent> <buffer> <leader>S <Plug>(tweetvim_action_say) | |
augroup END | |
endfunction | |
+ | |
diff -r a6552438b5e1 -r be5ec4a1cff3 plugin/tweetvim.vim | |
--- a/plugin/tweetvim.vim Sat Dec 14 12:30:42 2013 +0900 | |
+++ b/plugin/tweetvim.vim Sat Dec 14 12:40:44 2013 +0900 | |
@@ -145,6 +145,7 @@ | |
nnoremap <silent> <Plug>(tweetvim_action_cursor_down) :<C-u>call tweetvim#action('cursor_down')<CR> | |
nnoremap <silent> <Plug>(tweetvim_action_favstar) :<C-u>call tweetvim#action('favstar')<CR> | |
nnoremap <silent> <Plug>(tweetvim_action_favstar_browser) :<C-u>call tweetvim#action('favstar_browser')<CR> | |
+nnoremap <silent> <Plug>(tweetvim_action_say) :<C-u>call tweetvim#action('say')<CR> | |
nnoremap <silent> <Plug>(tweetvim_action_buffer_previous_stream) :<C-u>call tweetvim#action('buffer_previous_stream')<CR> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment