showhide.vim


Ⅰ. 插件描述

Show or Hide lines by folding based on pattern

Ⅱ. 基本信息

创建日期:  2006-06-29
使用用户:  2
Github星:  3
插件作者:  Amit Sethi

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

A simple script to quickly show/hide lines of interest. Useful for viewing log files or other huge files in general.

Uasge:
     zs    Show all lines containing word under cursor
     zh    Hide all lines containing word under cursor

     :SHOW word pattern ...
           Show lines containing either word or pattern
    
     :HIDE word pattern ...
           Hide lines containing either word or pattern

           -- pattern can be any regular expression --

  See ":h fold" for commands related to folds, e.g.,
     zn    Open all folds

添加新评论