vimcompletelikeamoderneditor


Ⅰ. 插件描述

Make Vim complete like a modern editor - does the right thing. Works with Ultisnips and neocomplete.

Ⅱ. 基本信息

创建日期:  2014-03-15
使用用户:  3
Github星:  20
插件作者:  Jordan W

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

VimCompleteLikeAModernEditor

  • Requires that you have UltiSnips also installed.

Make Vim complete like a modern editor - does the right thing. Works with Ultisnips and jordwalke's fork of AutoComplPop.

Use VimCompleteLikeAModernEditor to add keyboard interactions to Ultisnips and jordwalke/AutoComplPop in a way that behaves like Sublime/XCode etc.

  • Assumes you have installed ultisnips as well as jordwalke/AutoComplPop (See install instructions).
  • Lets you use either Enter or Tab to complete words or expand snippets - just like Sublime.
  • Removes all default snippets.
  • Tells the snippet system to look for your custom snippets in ~/.vim/myUltiSnippets/
Install
    " Prereqs:
    Bundle "git://github.com/jordwalke/AutoComplPop.git"
    Bundle "git://github.com/SirVer/ultisnips.git"
    
    " Plugin
    Bundle "jordwalke/VimCompleteLikeAModernEditor"

    " Place snippets in ~/.vim/myUltiSnippets/
    " Or if want to use stock snippets too...
    " let g:UltiSnipsSnippetDirectories=["myUltiSnips", "UltiSnips"]
    
    " Put this in your .vimrc
    " let g:UltiSnipsExpandTrigger="<tab>"
    " let g:UltiSnipsJumpForwardTrigger="<tab>"
    " let g:UltiSnipsJumpBackwardTrigger="<s-tab>"
Better Install

Just use https://github.com/jordwalke/VimBox/ - It has all of this included by default.

添加新评论