Code Monkey home page Code Monkey logo

twitvim's Introduction

TwitVim - Twitter client for Vim

Introduction

TwitVim is a Vim plugin that allows you to post to Twitter and view Twitter timelines. It is an enhancement of vimscript #2124 by Travis Jeffery. Credit goes to Travis for the original script concept and implementation.

TwitVim supports most of the features of a typical Twitter client, including:

  • Friends, User, Direct Message, Mentions, and Favorites timelines
  • Twitter Search
  • Replying and retweeting
  • Hashtags (jump to search timeline)
  • In reply to (See which tweet an @-reply is for.)
  • Opening links in a browser
  • User profile display
  • Twitter List viewing and managing
  • Trending topics
  • Timeline filtering

Prerequisites

TwitVim uses cURL to communicate with Twitter. Alternatively, you can configure TwitVim to use Vim's Perl, Python, Ruby, or Tcl interfaces for faster network I/O.

Twitter OAuth requires either the OpenSSL software or a Vim binary compiled with Perl, Python, Ruby, or Tcl.

Some platforms already have cURL and OpenSSL preinstalled or have installation packages for those, so that is the easier way to satisfy the prerequisites.

Installation

Use one of the methods below, depending on which plugin manager (or not) you have. After installation, see :help TwitVim-install for further instructions.

Pathogen

Use the following commands:

cd ~/.vim/bundle
git clone https://github.com/twitvim/twitvim.git

Vundle

Add the following to your vimrc:

Plugin 'https://github.com/twitvim/twitvim.git'

Install with :PluginInstall.

Vimball file

Open the vmb file and then source it.

vim twitvim-0.9.1.vmb
:so %

Usage

Plugin commands

  • :PosttoTwitter - This command will prompt you for a message to send to Twitter.
  • :CPosttoTwitter - This command posts the current line in the current buffer to Twitter.
  • :BPosttoTwitter - This command posts the current buffer to Twitter.
  • :FriendsTwitter - View friends timeline.
  • :UserTwitter - View your timeline.
  • :MentionsTwitter - View @-mentions.
  • :PublicTwitter - View public timeline.
  • :DMTwitter - View direct messages.
  • :SearchTwitter - Use Twitter Search.

Global mappings

  • Alt-T - In Visual select mode, the Alt-T key posts the selected text to Twitter. Use this mapping if you compose your tweets in a separate scratch buffer.
  • Ctrl-T - Use this instead if the menu bar is enabled or if Alt-T is not available on your platform.

Timeline buffer mappings

  • Alt-R or <Leader>r - Starts a @-reply. (in timeline buffer)
  • Alt-D or <Leader>d - Starts a direct message. (in timeline buffer)

Many more commands and mappings are available. See TwitVim's help documentation for full details.

License

TwitVim is distributed under the same terms as Vim itself. See :help license.

Contact

twitvim's People

Contributors

mortonfox avatar mattn avatar y-ono366 avatar keith avatar gw31415 avatar dwink avatar fgken avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.