Ⅰ. 插件描述
A tiny plugin for searching Stackoverflow from VIM editorⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'hienvd/vim-stackoverflow-care-of-itself'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'hienvd/vim-stackoverflow-care-of-itself'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'hienvd/vim-stackoverflow-care-of-itself'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/hienvd/vim-stackoverflow
Ⅳ. 文档说明
vim-stackoverflow
vim-stackoverflow is a tiny plugin that allows you to perform a quick Stackoverflow search directly from Vim.
It opens a new browser window with results.
With inspiration from vim-g
Installation
Vundle
Add to your .vimrc
Plugin 'hienvd/vim-stackoverflow'
then open VIM, install
:PluginInstall
Usage
To lookup a word (or words) in Stackoverflow use SO command:
:SO ruby
SO command can use a word under the cursor. Just move the cursor to the word and type the same command in the
command line:
:SO
Additionally, you can select words in the visual mode exactly in the same way. Just select words and type:SO. You can also prepend your selection with more clues:
:SO function
:SO ruby
There is also a special command named SOf to prepend the current file type automatically:
:SOf
:SOf function