EasyHtml.vim


Ⅰ. 插件描述

Allows to add attributs/values/CSSProperties to HTML tags/attributs very easily.

Ⅱ. 基本信息

创建日期:  2001-11-21
使用用户:  1
Github星:  1
插件作者:  Gontran BAERTS

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

With EasyHtml, you no longer need to look for tags attributes, attributes values or CSS properties values while editing HTML files. EasyHtml let you select the right attribute or value by showing you an attributes/values list for the tag/attribute/CSS property under the cursor.

Move the text cursor on the tag, attribute, or CSS property word then :

  • Press <F2> key to display attributes for the tag before/under the cursor
  • Press <F3> key to display values for the attribute before/under the cursor
  • Press <F4> ket to display values for the CSS Property befor/under the cursor

In the EasyHtml buffer, use :

       - h,j,k,l or <Left>,<Down>,<Up>,<Right> keys to change selected item.
       - <PageUp>/<PageDown> or <C-F>,<C-B> keys to scroll list one page downward/forward.
       - <Home> or <C-Home> to select the first item.
       - <End> or <C-End> to select the last item.
       - <ENTER> to add selected item WITHOUT exiting from items list.
       - <S-ENTER> to add selected item AND exit from items list.
       - q or <ESC> to exit without adding selected item.

Deprecated attributes as declared by W3C are red highlighted, while right attributes are blue highlighted.

Set g:easyHtmlSplitRight variable to 0 or 1 to open items list at left or right of current window. By default, use splitright setting.

Set g:eh_singlequote variable to 0 (default) or 1 to use double or single quote when adding attributes (For example id="" or id='')

Set g:eh_incsearch variable to 0 (default) or 1 to dis- or en-able incremental list search. This feature allows to select an item by typing its beginning. When this is enable, 'q', 'h', 'j', 'k' and 'l' keys aren't used to exit from list and to move highlighting. Use 'Q', '<Left>', '<Down>', '<Up>' and '<Right>' instead.

Set g:eh_atfirstplace to 0 (default) or 1 to indicate if attributes must be added at the end or at the beginning of the tag.

  • Useful mappings :
      . d<F2> : delete tag before/under cursor

  . d<F3> : delete attribute before/under cursor

添加新评论