Ⅰ. 插件描述
Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'svermeulen/extended-ft'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'svermeulen/extended-ft'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'svermeulen/extended-ft'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/svermeulen/vim-extended-ft
Ⅳ. 文档说明
vim-extended-ft
This plugin adds the following behaviour to the default behaviour of the f, F, t, and T commands:
- Multiline - Can search across multiple lines or continue searching across multiple lines using
;and,keys - Smart Case - When the search character is lower case it matches both lower and upper case, and when the character is uppercase it matches only upper case.
- Allow repeating
tandTcommands using;or,commands - Highlighting - Which is disabled automatically when moving your cursor afterwards
It's also worth noting that it only adds the new position to the jumplist if you've changed lines.
Seek Operator
vim-extended-ft also includes an option to use a version of the f and F operator with two characters instead of one. This is disabled by default but can be enabled easily by including extra mappings in your vimrc. See the bottom of the file extended-ft.vim for an example (commented out) of what those mappings would look like.
Customization
If you have remapped any of the f/F/t/T/;/, keys you can still use the plugin without changing it, by including the following in your .vimrc:
let g:ExtendedFTUseDefaults = 0
And then remapping the desired keys to the <plug> mappings in your .vimrc (see the bottom of the file vim-extended-ft.vim for an example).
To disable smartcase matching, and either force case-sensitive or case-insensitive, use this option in your .vimrc:
let g:ExtendedFT_caseOption =
Possible values:
- 'c' - Forces
ignorecase - 'C' - Forces
noignorecase
