Ⅰ. 插件描述
heuristic syntax-based text-object for functionⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'haya14busa/vim-textobj-function-syntax'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'haya14busa/vim-textobj-function-syntax'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'haya14busa/vim-textobj-function-syntax'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/haya14busa/vim-textobj-function-syntax
Ⅳ. 文档说明
## vim-textobj-function-syntax - heuristic syntax-based text-object for function
vim-textobj-function-syntax provides heuristic text-objects for function by
using syntax definitions.
This plugin extends
kana/vim-textobj-function
plugin and provides syntax-based text-object for function. It doesn't overwide
filetype specific text-object for function, so you can use
vim-textobj-function-syntax as a fallback.
Requirements:
- Vim 8.0 or later
- https://github.com/kana/vim-textobj-function 0.1.0 or later
Credit
It's inspired by the
t9md/atom-vim-mode-plus
implementation of text-object for function.