Giter VIP home page Giter VIP logo

vim-integration's Introduction

vim box logo


VimBox

一个定位于 PHP 开发的轻量 Vim 配置包,只包含开发中必要的部分插件,并定义开发中高频使用的一些操作的快捷键。

安装方便开箱即用。适合用于快速部署服务器等环境所需的 Vim 或刚接触 Vim 想要快速上手的朋友尝试。


依赖

安装前请先确认你的环境中已经安装了下面列表中所需的依赖

  1. Vim7.4
  2. PHP7.1
  3. Node.js
  4. ack
  5. js-beautify

安装

  1. 进入用户的 home 目录,执行下面命令:
$ cd ~

$ rm ~/.vim -rf

$ mkdir ~/.vim

$ cd ~/.vim

$ git clone https://github.com/chawuciren/vim-box.git ./

$ rm ~/.vimrc

$ ln -s ~/.vim/.vimrc ~/.vimrc

$ git submodule init

$ git submodule update
  1. 完成上述步骤后,打开 Vim:
$ vim
  1. 使用 Vundle 安装所有插件,在 Vim 中执行下面命令:
:VundleClean

:VundleInstall



文档

快捷键:

快捷键 说明
Ctrl+j j 将当前行移动到下一行
Ctrl+j k 将当前行移动到上一行
Ctrl+j y 复制当前行,并在后面一行粘贴
Ctrl+j d 删除当前行
Ctrl+j c; 在行尾添加 ; 符号并换行
Ctrl+j c{ 在行尾添加 { 符号并换行
Ctrl+j l 直接换行
Ctrl+j f 格式化当前代码 (支持 *.js, *.html, *.css, *.php)
Ctrl+m y 打开/关闭 NERDTree 插件
Ctrl+m u 打开/关闭 TagBar 插件
Ctrl+m n 切换到 buffer 列表 中的下一个 buffer (顶部标签栏的标签切换)
Ctrl+m b 切换到 buffer 列表 中的上一个 buffer (顶部标签栏的标签切换)
Ctrl+m s 清空当前项目目录下的 .swp and .swo 文件
Ctrl+n 重复执行上一步的快捷键

命令

命令 说明
:Bdo 关闭除当前 buffer 外的所有 buffer
:Bdc 关闭当前 buffer
:Bp 切换到上一个 buffer
:Bp 切换到下一个 buffer

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.