Giter Club home page Giter Club logo

vimplus's Introduction

An automatic configuration program for vim

安装

Mac OS X

  • 安装HomeBrew

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • 安装vimplus

    git clone https://github.com/chxuan/vimplus.git ~/.vimplus
    cd ~/.vimplus
    ./install.sh

Ubuntu

  • 版本要求

    ubuntu14.04及其以上64位系统。

  • 安装vimplus

    git clone https://github.com/chxuan/vimplus.git ~/.vimplus
    cd ~/.vimplus
    ./install.sh

Centos

  • 版本要求

    centos7及其以上64位系统。

  • 安装vimplus

    git clone https://github.com/chxuan/vimplus.git ~/.vimplus
    cd ~/.vimplus
    ./install.sh

ArchLinux

  • 安装vimplus

    git clone https://github.com/chxuan/vimplus.git ~/.vimplus
    cd ~/.vimplus
    ./install.sh

个性化

修改 ~/.vimrc.local 文件内容,以启用个性化定制,可覆盖 ~/.vimrc 中的设置。

插件列表

快捷键

  • Leader键为 ,
  • 打开/关闭目录树 <Leader>n
  • 显示函数、变量、宏列表 <Leader>t
  • 分析语法错误 <F5>
  • .h .cpp 文件切换 <Leader>a
  • 转到函数实现 <Leader>u
  • 转到函数声明 <Leader>i
  • 打开include文件 <Leader>o
  • 窗口切换 Ctrl + P/Ctrl + N
  • 光标位置切换 Ctrl + O/Ctrl + I
  • 模糊搜索文件 Ctrl + f
  • Surround ys{motion or text-object}{char}/cs{orig_char}{dest_char}/ds{char}
  • 注释 gcc/gcap/gc/,ca/,cA
  • 目录比较 :DirDiff <dir1> <dir2>
  • 重复上次操作 .
  • 改变主题颜色 F9/F10
  • 单词跳转 <Leader>w
  • 启用/关闭markdown实时预览 F7/F8

Q & A

  • 安装vimplus后Airline等插件有乱码,怎么解决?

    linux和mac系统需设置终端字体为DroidSansMonofor Powerline Nerd Font。

  • xshell连接远程主机使用NerdTree出现错位!!!

    执行rm -rf ~/vim/bundle/vim-devicons命令,将vim-devicons删除即可,或移动到其他地方。

  • 安装vimplus会经常失败,安装了几次都不成功!!!

    vimplus安装时需要访问外国网站,由于网络原因,可能会失败,安装成功也要1个多小时,ycm插件有200M左右,下载比较耗时,这里有下载好的YouCompleteMe.tar.gz文件,下载后解压到~/.vim/bundle/目录,并进入YouCompleteMe目录执行sudo ./install.py --clang-completer即可安装。

  • 使用第三方库时怎么让ycm补全第三方库API?

    vimplus安装完毕之后,~目录下将会生成两个隐藏文件分别是.vimrc和.ycm_extra_conf.py,其中.vimrc是vim的配置文件,.ycm_extra_conf.py是ycm插件的配置文件,当你需要创建一个project时,需要将.ycm_extra_conf.py拷贝到project的顶层目录,通过修改该配置文件里面的flags变量来添加你的第三方库路径。

  • 安装vimplus完成后ycm不能够工作!!!

    这里的原因可能就有很多了,可能每个人遇到的问题不一样,但vimplus尽最大努力不让用户操心,需要注意的是ycm插件只支持64位的系统,更多信息请访问ycm官网

  • 在Archlinux环境下不能使用ycm怎么办?(缺少libtinfo.so.5)

    在Archlinux下可以试着使用pkgfile命令搜索依赖的文件具体在什么包内,目前找到的包含libtinfo.so.5的包是ncurses5-compat-libs(AUR)或者32位的lib32-ncurses5-compat-libs(AUR),安装后即可正常使用。

  • 使用vimplus为什么不能补全JS、Go、Java等语言?

    目前vimplus只支持C、C++、Shell、vimscript、Python等语言补全,后序会支持更多的语言,若您真的需要使用其他语言,您可以在vimplus基础上扩展。

  • 以上没有我遇到的问题怎么办?

    您可以通过上网找解决方法,或提Issues,也可以通过发邮件方式[email protected]一起讨论解决方法。

  • vimplus用起来真的太棒了,怎么办?

    那就麻烦您打赏一颗星星吧,给予我继续维护的动力。

特性展示

  • YouCompleteMe

  • ctrlp

  • vim-airline

  • vim-surround

  • vim-commentary

  • auto-pairs

  • vim-easymotion

  • vim-devicons

  • vim-startify

  • markdown-preview

vimplus's People

Contributors

chxuan avatar dofy avatar freedomdr avatar

Watchers

James Cloos avatar storm_zy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.