GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - whu404/vim: vimrc

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

52 Commits
52 Commits

Folders and files

NameName
Last commit message
Last commit date
.vimrc
.vimrc
 
 
README.md
README.md
 
 
install.sh
install.sh
 
 

Repository files navigation

常用vim插件


##1. What? 大家使用vim的时候为了方便会加入各种各样的插件,但每次都需要从github、vim-scripts上找,于是乎为了大家方便找了一些常用的vim插件及其配置供大家使用。使用vundles管理插件,一键式安装。 ##2. PreRequisite - git - vim版本:7.3+ 可通过 vim version 查看 - npm - jshint - csslint - cscope ##3. Installation 一行shell搞定安装

bash -c "$( curl https://raw.githubusercontent.com/lmule/vim/master/install.sh )"

##4. Feature ###4.1 KeyMap

  • 界面上有多个窗口时,上、下、左、右四个方向键盘会在横向、纵向放大、缩小
  • 界面上有多个窗口时,Ctrl-j、Ctrl-k、Ctrl-h、Ctrl-l会在多窗口间切换(顺序参照vim默认的j、k、h、l)
  • 在命令模式下,输入:Vb file 会在竖直方向打开另外一个文件
  • 在命令模式下,输入:Vd file 会在竖直方向打开另外一个文件进行diff ###4.2 本地自定义快捷键
  • 如果不习惯作者的快捷键,可以在HOME目录下新建.vimrc.local自定义快捷键 ###4.3 Bundles
  • Emmet.vim
    • https://github.com/vim-scripts/Emmet.vim
    • 前身是Zen Coding,通过简写html、js、css标签就可以生成代码。
    • 常用快捷键(注意有逗号)
      • Ctrl-y, 生成代码
  • ctrlp.vim
    • https://github.com/kien/ctrlp.vim
    • 查找利器,可以在文件、buffer、tag、项目中查找
    • 常用快捷键(注意有逗号)
      • ,p 根据文件名查找
      • ,b 只在当前打开的buffer中查找
      • ,t 在tag中查找
  • ctrlp-funky
    • https://github.com/tacahiroy/ctrlp-funky
    • 显示当前文档的函数列表
    • 常用快捷键(注意有逗号)
      • ,f 显示函数列表
      • ,t 在tag中查找
  • neocomplcache.vim
    • https://github.com/Shougo/neocomplcache.vim
    • 自动补全
    • 常用快捷键
      • Ctrl-n 选择提示层中的下一项
      • Ctrl-p 选择提示层中的上一项
      • Ctrl-e 取消弹出提示层
  • bufexplorer
    • https://github.com/jlanzarotta/bufexplorer
    • 显示已经打开的buffer列表
    • 常用快捷键
      • F3 显示已经打开的buffer列表
  • nerdtree
    • https://github.com/scrooloose/nerdtree
    • 打开目录树
    • 常用快捷键
      • F2 打开目录树
  • cscope.vim
    • https://github.com/vim-scripts/cscope.vim
    • 生成tag
    • 常用快捷键
      • F5 生成tag
      • Ctrl-] 跳转到定义
      • Ctrl-t 返回到上次跳转的位置
  • taglist.vim
    • https://github.com/vim-scripts/taglist.vim
    • 显示tag树
    • 常用快捷键
      • F4 显示tag树
  • syntastic
    • https://github.com/scrooloose/syntastic
    • 语法检查
  • vim-snipmate && vim-snippets
    • https://github.com/garbas/vim-snipmate
    • https://github.com/honza/vim-snippets
    • 快速补齐代码片段,比如输入if,按会补齐大括号
    • 常用快捷键
      • TAB 自动补齐
  • comments.vim
    • https://github.com/vim-scripts/comments.vim
    • 注释代码片段
    • 常用快捷键
      • Ctrl-c 注释代码片段
      • Ctrl-x 取消注释代码片段
  • MatchTagAlways
    • https://github.com/Valloric/MatchTagAlways
    • 总是显示配对的标签
  • vim-var_dump
    • https://github.com/lmule/vim-var_dump
    • 打印当前光标所在的变量,目前只适用于php、js
    • 常用快捷键
      • Ctrl-d 打印当前变量

##5. Contributor

  • 岳哥
  • 斯人

About

vimrc

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.