vimify


Ⅰ. 插件描述

Spotify integration for vim

Ⅱ. 基本信息

创建日期:  2016-05-01
使用用户:  7
Github星:  10
插件作者:  Mustafa Ansari

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'muansari96/vimify'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'muansari96/vimify'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'muansari96/vimify'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/muansari96/vimify

Ⅳ. 文档说明

## About
vimify is a plugin for Vim that provides simple Spotify integration. Since it uses the MPRIS2 dbus interface to control Spotify, it works out of the box with all Linux systems, provided that the Vim installation was compiled with python. Using this plugin, users can search for spotify tracks, browse through artists and albums, and completely control the playback of tracks through the desktop version of Spotify, all without leaving the comfort of Vim!

Features and Usage

vimify is designed to interface with a running desktop instance of Spotify. Currently, the following features are supported:

  • :SpPlay will play the current track
  • :SpPause will pause the current track
  • :Spotify or :SpToggle will toggle play/pause
  • :SpSearch <query> will search spotify for 'query' and return the results in a new buffer. While working in the Vimify buffer, the name, artist and album of all pertinent tracks will be displayed. Vimify's behavior in this buffer is described as follows::

    • <Enter>: If the cursor is over the name of the track, Spotify will begin playback of that track
    • <Enter>: If the cursor is over the name of the artist, all of the artists tracks will be displayed, sorted chronologically and by album
    • <Enter>: If the cursor is over the name of the album, all of the tracks on the album will be displayed in the proper order
    • <Space>: Is bound to :SpToggle when working in the Vimify buffer

Installation

The preferred way to install vimify is to use pathogen. With pathogen installed, simply run

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

and you'll be good to go! Once help tags are generated, you can just run :help vimify in vim to see the manual.

添加新评论