All Projects → luofei614 → Vim Plug

luofei614 / Vim Plug

我的vim插件, 基于vim-plug安装

Labels

Projects that are alternatives of or similar to Vim Plug

Vimrc
My vim files (i'm a n00b, don't use these)
Stars: ✭ 100 (-11.5%)
Mutual labels:  viml
Hermes
An environment for Ruby and JS developers in Darwin
Stars: ✭ 105 (-7.08%)
Mutual labels:  viml
Vim Visualstar
star for Visual-mode.
Stars: ✭ 106 (-6.19%)
Mutual labels:  viml
Vim Hybrid
A dark color scheme for Vim
Stars: ✭ 1,380 (+1121.24%)
Mutual labels:  viml
Vim Slack
Slack for Vim client
Stars: ✭ 104 (-7.96%)
Mutual labels:  viml
Bufexplorer.zip
Buffer Explorer / Browser
Stars: ✭ 106 (-6.19%)
Mutual labels:  viml
Vim Arduino Syntax
Arduino syntax files for Vim
Stars: ✭ 100 (-11.5%)
Mutual labels:  viml
Apiblueprint.vim
This vim plugin brings syntax highlighting and linting for API Blueprint.
Stars: ✭ 112 (-0.88%)
Mutual labels:  viml
Securemodelines
A secure alternative to Vim modelines
Stars: ✭ 104 (-7.96%)
Mutual labels:  viml
Vim G
Quick Google lookup directly from Vim
Stars: ✭ 107 (-5.31%)
Mutual labels:  viml
Vim Luna
Touchdown on Lunar Surface ! :)
Stars: ✭ 102 (-9.73%)
Mutual labels:  viml
Argtextobj.vim
Text-object like motion for arguments
Stars: ✭ 103 (-8.85%)
Mutual labels:  viml
Seti.vim
Stars: ✭ 107 (-5.31%)
Mutual labels:  viml
Browser Connect.vim
Live browser interaction for VIM.
Stars: ✭ 101 (-10.62%)
Mutual labels:  viml
Vim Redl
A better Vim integration story for Clojure
Stars: ✭ 108 (-4.42%)
Mutual labels:  viml
Vim Togglelist
Functions to toggle the [Location List] and the [Quickfix List] windows.
Stars: ✭ 100 (-11.5%)
Mutual labels:  viml
Vim I18n
Vim plugin to easily add I18n translations to your Rails project
Stars: ✭ 106 (-6.19%)
Mutual labels:  viml
Vim Notes
Easy note taking in Vim
Stars: ✭ 1,518 (+1243.36%)
Mutual labels:  viml
Vim Pydjango
Ultimate VIM for Python & Django development.
Stars: ✭ 109 (-3.54%)
Mutual labels:  viml
Vim Colorscheme Switcher
Makes it easy to quickly switch between color schemes in Vim
Stars: ✭ 107 (-5.31%)
Mutual labels:  viml

运行三个命令配置一个强大的VIM编辑器。

 # mkdir -p ~/.vim/autoload
 #  curl -fLo ~/.vim/autoload/plug.vim \
      https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
 # curl -fLo ~/.vimrc \
      https://raw.githubusercontent.com/luofei614/vim-plug/master/.vimrc

然后打开vim 运行 :PlugInstall 就能安装上所有插件(共43个插件)

这些VIM配置我已经用了四年了,用着非常爽。 所以特意整理出来分享给大家,大家只需要简单的执行上面三条命令就能获得我的配置。

安装好后效果如下: enter image description here

内置两种流行主题,默认是sublime风格的主题。

设置了很多方便的快捷键

  • F11 : 在编辑器左侧打开文件浏览器, 再按一次F11则会关闭文件浏览器。

  • F12: 在编辑器右侧打开当前文件的函数列表, 再安一次F12关闭函数列表。函数列表是基于ctags的先需要在项目目录下运行 ctags -R 在VIM中按快捷键 F3 可以自动执行ctags命令。

  • 注意,在mac下, F11,F12 是系统默认的快捷键,需要修改系统设置。

enter image description here

在"设置"->"键盘"中勾选"将F1,F2等快捷键作为标准功能键"

然后选择"快捷键"这个tab页,去掉"显示桌面"和"显示Dashboard"的快捷键 enter image description here

  • F2: 可以快速查函数手册, 如果当前VIM的光标在php的file_put_contents函数上,按一下F2 会自动打开PHP手册的网页。

  • ctrl+p : 快速查找文件, 用的fzf插件, 第一次ctrl+p时会先安装fzf命令, 默认是下载github源码来安装,可能会安装比较慢,在mac下还可以用brew安装brew install fzf

  • ctrl+f : 快速查找当前文件中的函数

  • ctrl+] : 跳到函数声明出(自己定义的函数,非系统函数),会在当前界面打开函数声明文件,如果想新建个tab页再跳到函数声明处,可以用 ctrl+\

  • 支持ctrl+a 全选 ctrl+c 复制 ctrl+v 粘贴 ctrl+x 剪切。ctrl+s 保存, ctrl+z撤销。 ctrl+c 复制和默认的y复制不一样, 它会复制到系统剪切板, 因此可以在其他软件上面粘贴。 同理 ctrl+v 粘贴的内容是系统剪切板的。

  • shift+q: 快速退出VIM。 如果vim同时打开多个文件是,不用挨着一个一个关闭。

建议大家在看看.vimrc 配置文件 了解更多用法。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].