/vim-fanfou

Fanfou client for VIM

Primary LanguagePython

Vim-Fanfou

Vim-Fanfou = VIM + Fanfou. It allows you to post to status and view Fanfou timeline.

Just like Fanfou is a Twitter clone. Vim-Fanfou is a TwitVim clone.

About

Links:

Contact

License

Vim-Fanfou is distributed under the same terms as VIM itself. See :help license.

Installation

  • Requirements:
    Vim-Fanfou is based on Python 2.7(+) & VIM 7+. Please check your VIM before you install Vim-Fanfou.
  • Steps to install:
    Copy the "plugin" folder to your VIM "plugin" folder.

Usage

Setup & Login

  • To enable HTTP Proxy: Add below line to your .vimrc.
    let g:fanfou_http_proxy = "http://<proxy-host>:<proxy-port>"
  • To setup your Fanfou account: Run below command for save the Fanfou OAuth token.
    :FanfouSetAccount
    • This command will open the Fanfou OAuth confirmation Web Page.
    • After you get the PIN code, please enter it to VIM.
      NOTE: In default, Vim-Fanfou saves your OAuth Token to "$HOME/.fanfou_auth_cache".

Commands

  • :FanfouSetAccount
    To setup your Fanfou account. Please check "Setup & Login" section.
  • :FanfouSwitchAccount
    Login to another Fanfou account.
  • :FanfouHomeTimeline
    View your Fanfou home timeline.
  • :FanfouMentions
    View @ mention messages.
  • :FanfouFavorites
    View your Fanfou favorites.
  • :FanfouRefresh
    Update Fanfou Vim Buffer.
  • :FanfouPostStatus
    To post a new Status to your Fanfou.

Shortcut keys in the Fanfou VIM buffer

  • <Leader><Leader> :FanfouRefresh<cr>
  • <Leader>h :FanfouHomeTimeline<cr>
  • <Leader>m :FanfouMentions<cr>
  • <Leader>s :FanfouFavorites<cr>
  • <Leader>p :FanfouPostStatus<cr>