Science and technology

Use Vim to handle your activity listing and entry Reddit and Twitter

Last yr, I introduced you 19 days of recent (to you) productiveness instruments for 2019. This yr, I am taking a special strategy: constructing an setting that may can help you be extra productive within the new yr, utilizing instruments you could or might not already be utilizing.

Doing (nearly) all of the issues with Vim, half 2

In yesterday’s article, you began studying mail and checking your calendars with Vim. Today, you are going to do much more. First, you will maintain your activity monitoring, and you then’ll get social, straight within the Vim textual content editor.

Track your to-do’s in Vim with todo.txt-vim

Editing a text-based to-do file with Vim is a pure match, and the todo.txt-vim package deal makes it even simpler. Start by putting in the todo.txt-vim package deal:

git clone https://github.com/freitass/todo.txt-vim ~/.vim/bundle/todo.txt-vim
vim ~/path/to/your/todo.txt

Todo.txt-vim mechanically acknowledges recordsdata ending in todo.txt and completed.txt as todo.txt recordsdata. It provides key bindings particular to the todo.txt format. You can mark issues “done” with x, set them to the present date with d, and alter the precedence with a, b, and c. You can bump the priorities up (okay) or down (j) and kind (s) primarily based on venture (s+), context (s@), or date (sd). And if you end up completed, you’ll be able to shut and save the file like regular.

The todo.txt-vim package deal is a good addition to the todo.sh program I wrote about just a few days in the past, and with the todo edit add-on, it will possibly actually supercharge your to-do listing monitoring.

Read Reddit in Vim with vim-reddit

Vim additionally has a pleasant add-on for Reddit referred to as vim-reddit. It is not as good as Tuir, however for a fast evaluate of the newest posts, it really works very well. Start by putting in the bundle:

git clone https://github.com/DougBeney/vim-reddit.git ~/.vim/bundle/vim-reddit
vim

Now sort :Reddit and the Reddit frontpage will load. You can load a selected subreddit with :Reddit title. Once the article listing is onscreen, navigate with the arrow keys or scroll with the mouse. Pressing o will open the article in Vim (until it’s a media put up, wherein case it opens a browser), and urgent c brings up the feedback. If you wish to go proper to the web page, press O as an alternative of o. Going again a display is as simple as u. And if you end up completed with Reddit, sort :bd. The solely disadvantage is vim-reddit can not log in or put up new tales or feedback. Then once more, generally that may be a good factor.

Tweet from Vim with twitvim

And final, we’ve got twitvim, a Vim package deal for studying and posting to Twitter. This one takes a bit extra to arrange. Start by putting in twitvim from GitHub:

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

Now it’s essential to edit the .vimrc file and set some choices. These assist the plugin know which libraries it will possibly use to speak to Twitter. Run vim –version and see what languages have a + subsequent to them—these languages are supported by your copy of Vim.

Since mine says +perl -python +python3, I do know I can allow Perl and Python three, however not Python 2 (python).

" TwitVim Settings
let twitvim_enable_perl = 1
" let twitvim_enable_python = 1
let twitvim_enable_python3 = 1

Now you can begin up Vim and log into Twitter by operating :SetLoginTwitter, which launches a browser window asking you to authorize VimTwit as an software with entry to your account. Once you enter

the equipped PIN into Vim, you are good to go.

Twitvim’s instructions are usually not so simple as within the different packages. To load up the timeline of your mates and followers, sort in :PalsTwitter. To listing your mentions and replies, use :MentionsTwitter. Posting a brand new tweet is :PosttoTwitter <Your message>. You can scroll via the listing and reply to a selected tweet by typing r, and you can begin a direct message with somebody utilizing d.

And there you’ve it; you are doing (nearly) all of the issues in Vim!

Most Popular

To Top