Skip to content

Commit 9a5948c

Browse files
committed
init
0 parents  commit 9a5948c

File tree

772 files changed

+140404
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

772 files changed

+140404
-0
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.tags

Diff for: README.md

+99
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
-------------
2+
# phper之vimer配置
3+
-------------
4+
该vim配置拥有各种大气的被动和主动技能!!
5+
6+
## 一键安装
7+
```sh
8+
curl https://raw.githubusercontent.com/Leptune/vimrc-for-phper/master/install.sh|sh
9+
```
10+
11+
## 截图
12+
![截图1](https://raw.githubusercontent.com/Leptune/vimrc-for-phper/master/screenshots/1.png)
13+
![截图2](https://raw.githubusercontent.com/Leptune/vimrc-for-phper/master/screenshots/2.png)
14+
15+
## 被动技能
16+
- 各种自动补全(php、html、括号)
17+
- 编辑多个文件时显示标签
18+
- 保存时自动检查php文件有无语法错误
19+
- 状态栏增强
20+
- 增加molokai主题
21+
- 让vim能兼容tmux
22+
23+
## 主动技能
24+
| 功能 | 快捷键 | 备注 |
25+
| --------------------------- | ----------------------------------------- | -------------- |
26+
| 文件时光机 | `<Leader>h` | |
27+
| 目录树 | `Tab` | |
28+
| 代码段补全 | `Tab` | 插入模式 |
29+
| tag列表 | `<Leader>t` | |
30+
| 快速对齐 | `<Leader>符号` | |
31+
| 快速注释/解开注 | `gcc` | |
32+
| html代码补全 | `<c-y>,` | |
33+
| 快速打开文件 | `<c-u/e>/<` | |
34+
| 快速搜索函数 | `<Leader>fu` | |
35+
| 快速选择区域/取消选择区域 | `v/V` | |
36+
| 运行当前文件 | `<Leader>q` | 可用于调试文件 |
37+
| 快速跳转 | `<Leader><Leader>w/b/h/k/j/l` | |
38+
| 多光标操作 | `ctrl-m ` | |
39+
40+
## 自定义快捷键
41+
快捷键 | 映射为 | 功能说明
42+
:-: | :-: | :-:
43+
`Y` | `$` | 复制到行尾
44+
`<space>` | `/` | 搜索
45+
`<C-j>` | `<C-W>j` | 跳转到下面的窗口
46+
`<C-k>` | `<C-W>k` | 跳转到上面的窗口
47+
`<C-h>` | `<C-W>h` | 跳转到左边的窗口
48+
`<C-l>` | `<C-W>l` | 跳转到右边的窗口
49+
`<C-n>` | `:bnext<cr>` | 跳转到下一个标签
50+
`<C-p>` | `:bprev<cr>` | 跳转到上一个标签
51+
`<Leader>sa` | `ggVG` | 全选
52+
`<Leader>i` | `:noh<cr>` | 取消高亮
53+
`<leader>zz` | `:call ToggleFold()<cr>` | 折叠/反折叠
54+
`<leader>1` | `:bfirst<cr>` | 跳转到第一个标签
55+
`<leader>2` | `:b2<cr>` | 跳转到标签2
56+
`<leader>3` | `:b3<cr>` | 跳转到标签3
57+
`<leader>4` | `:b4<cr>` | 跳转到标签4
58+
`<leader>5` | `:b5<cr>` | 跳转到标签5
59+
`<leader>6` | `:b6<cr>` | 跳转到标签6
60+
`<leader>7` | `:b7<cr>` | 跳转到标签7
61+
`<leader>8` | `:b8<cr>` | 跳转到标签8
62+
`<leader>9` | `:b9<cr>` | 跳转到标签9
63+
`<leader>0` | `:blast<cr>` | 跳转到标签0
64+
`<leader>d` | `:bd<cr>` | 移除当前标签
65+
`<leader>y` | `"+y` | 选中区域复制到系统剪贴板
66+
`leader>v` | ``V`}`` | 选中当前区块
67+
`<leader>w` | `:w<CR>` | 快速保存
68+
`<leader>ev` | `:e $MYVIMRC<CR>` | 快速编辑vim配置文件
69+
`<leader>sv` | `:so $MYVIMRC<CR>` | 快速重载vim配置文件
70+
`<F1>` | `<Esc>` | 取消按F1键呼出帮助中心
71+
`<F2>` | `:call HideNumber()<CR>` | 显示/隐藏行号
72+
`<F3>` | `:set list! list?<CR>` | 显示/隐藏可打印符号
73+
`<F4>` | `:set wrap! wrap?<CR>` | 开启/关闭换行
74+
`<F6>` | `:exec exists('syntax_on') ? 'syn off' : 'syn on'<CR>` | 开启/关闭语法检查(关闭可加快大文件显示)
75+
`<F7>` | | 开启/关闭黏贴模式(关闭时可原样黏贴代码)
76+
`H` | `^` | 快速跳转到行首
77+
`L` | `$` | 快速跳转到行尾
78+
`;` | `:` | 执行vim命令
79+
`<C-a>` | `<Home>` | vim本身的命令模式下跳转到行首
80+
`/` | `/\v` | (正常/选中)模式下搜索
81+
`<` | `<gv` | 选中往右移动后,保持选中
82+
`>` | `>gv` | 选中往左移动后,保持选中
83+
`w!!` | `w !sudo tee >/dev/null %` | 强制写入(用root权限写)
84+
`U` | `<C-r>` | 重做
85+
`<C-b>` | `<Left>` | 插入模式下往左移动
86+
`<C-j>` | `<Down>` | 插入模式下往下移动
87+
`<C-k>` | `<Up>` | 插入模式下往上移动
88+
`<C-f>` | `<Right>` | 插入模式下往右移动
89+
`<C-a>` | `<Home>` | 插入模式下移动到行首
90+
`<C-e>` | `<End>` | 插入模式下移动到行尾
91+
`<C-d>` | `<Del>` | 插入模式下删除当前字符
92+
93+
## 注意事项
94+
- 该配置参考了 [wklken/vim-for-server](https://github.com/wklken/vim-for-server) 的配置
95+
- 详细配置,请查看vimrc文件!
96+
97+
## License
98+
想干嘛干嘛
99+

Diff for: bundle/Vundle.vim/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
doc/tags
2+
.netrwhist

Diff for: bundle/Vundle.vim/CONTRIBUTING.md

+111
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
Pull Requests
2+
=============
3+
4+
1. Please squash your commits to minimize the log pollution. This is more of a convenience for the maintainer who pulls. If you are unfamiliar, see [here](http://ariejan.net/2011/07/05/git-squash-your-latests-commits-into-one/).
5+
6+
2. Clearly describe what you aim to fix or add to Vundle.
7+
8+
3. Try to minimize code changes and use existing style/functions.
9+
10+
Issues
11+
======
12+
13+
## Check For Answers
14+
15+
Before submitting an issue, be sure to check the following places for answers.
16+
17+
1. Vundle docs at [`:h vundle`](https://github.com/VundleVim/Vundle.vim/blob/master/doc/vundle.txt).
18+
19+
2. The [FAQ](https://github.com/VundleVim/Vundle.vim/wiki).
20+
21+
3. [Search](https://github.com/VundleVim/Vundle.vim/search) the repository for related issues.
22+
23+
## Try To Eliminate Your Vimrc
24+
25+
In order to make sure it isn't just `.vimrc` replace your own config file with the [minimal vimrc](https://github.com/VundleVim/Vundle.vim/blob/master/test/minirc.vim). Clear out bundles and then try to reproduce.
26+
27+
If the problem stops, likely there is an issue in your user configuration. You can incrementally add back your user changes to the minimal file testing the bug each time. This will allow you to slowly bisect the issue. You may want to test one plugin at a time.
28+
29+
If you can still reproduce the problem, try to find the smallest `.vimrc` config file that creates the problem to include later.
30+
31+
## Guidelines
32+
33+
To better respond to issues please follow these general guidelines when explaining the problem.
34+
35+
1. Clearly describe what the error is, if relevant attach output/screenshots.
36+
37+
2. Describe how developers can reproduce the bug, the steps should be from starting Vim.
38+
39+
3. Include your OS, version and architecture. For example, Windows 7 64, Kubuntu 13.04 32, etc...
40+
41+
4. If relevant to reproducing the bug, include the smallest subset of your `.vimrc` that causes the issue. Put this in code tags.
42+
43+
5. At the end of your issue, please put the output of `vim --version` in code tags.
44+
45+
## Example Post
46+
47+
I am using Vim on Kubuntu 13.04 64 bit and I get the following error... (add further explanation here)
48+
49+
To reproduce the bug, use the vimrc file below and run `:PluginInstall`... (continue with steps)
50+
51+
Vimrc:
52+
```
53+
set nocompatible
54+
syntax on
55+
filetype off
56+
set rtp+=~/.vim/bundle/Vundle.vim/
57+
call vundle#rc()
58+
Plugin 'VundleVim/Vundle.vim'
59+
Plugin 'relevant/plugin'
60+
filetype plugin indent on
61+
62+
.... more user configs here...
63+
```
64+
65+
Vim Version:
66+
```
67+
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 15 2013 10:58:39)
68+
Included patches: 1-5
69+
Modified by [email protected]
70+
Compiled by buildd@
71+
Huge version with GTK2 GUI. Features included (+) or not (-):
72+
+arabic +file_in_path +mouse_sgr +tag_binary
73+
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
74+
+balloon_eval +float +mouse_urxvt -tag_any_white
75+
+browse +folding +mouse_xterm +tcl
76+
++builtin_terms -footer +multi_byte +terminfo
77+
+byte_offset +fork() +multi_lang +termresponse
78+
+cindent +gettext -mzscheme +textobjects
79+
+clientserver -hangul_input +netbeans_intg +title
80+
+clipboard +iconv +path_extra +toolbar
81+
+cmdline_compl +insert_expand +perl +user_commands
82+
+cmdline_hist +jumplist +persistent_undo +vertsplit
83+
+cmdline_info +keymap +postscript +virtualedit
84+
+comments +langmap +printer +visual
85+
+conceal +libcall +profile +visualextra
86+
+cryptv +linebreak +python +viminfo
87+
+cscope +lispindent -python3 +vreplace
88+
+cursorbind +listcmds +quickfix +wildignore
89+
+cursorshape +localmap +reltime +wildmenu
90+
+dialog_con_gui +lua +rightleft +windows
91+
+diff +menu +ruby +writebackup
92+
+digraphs +mksession +scrollbind +X11
93+
+dnd +modify_fname +signs -xfontset
94+
-ebcdic +mouse +smartindent +xim
95+
+emacs_tags +mouseshape -sniff +xsmp_interact
96+
+eval +mouse_dec +startuptime +xterm_clipboard
97+
+ex_extra +mouse_gpm +statusline -xterm_save
98+
+extra_search -mouse_jsbterm -sun_workshop
99+
+farsi +mouse_netterm +syntax
100+
system vimrc file: "$VIM/vimrc"
101+
user vimrc file: "$HOME/.vimrc"
102+
2nd user vimrc file: "~/.vim/vimrc"
103+
user exrc file: "$HOME/.exrc"
104+
system gvimrc file: "$VIM/gvimrc"
105+
user gvimrc file: "$HOME/.gvimrc"
106+
2nd user gvimrc file: "~/.vim/gvimrc"
107+
system menu file: "$VIMRUNTIME/menu.vim"
108+
fall-back for $VIM: "/usr/share/vim"
109+
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/harfbuzz -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -I/usr/include/tcl8.5 -D_REENTRANT=1 -D_THREAD_SAFE=1 -D_LARGEFILE64_SOURCE=1
110+
Linking: gcc -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -o vim -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -ltinfo -lnsl -lselinux -lacl -lattr -lgpm -ldl -L/usr/lib -llua5.1 -Wl,-E -fstack-protector -L/usr/local/lib -L/usr/lib/perl/5.14/CORE -lperl -ldl -lm -lpthread -lcrypt -L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -L/usr/lib/x86_64-linux-gnu -ltcl8.5 -ldl -lpthread -lieee -lm -lruby-1.9.1 -lpthread -lrt -ldl -lcrypt -lm -L/usr/lib
111+
```

Diff for: bundle/Vundle.vim/LICENSE-MIT.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright (C) 2010 http://github.com/gmarik
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Diff for: bundle/Vundle.vim/README.md

+161
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
## [Help Maintain Vundle](https://github.com/VundleVim/Vundle.vim/issues/383)
2+
3+
## About
4+
5+
[Vundle] is short for _Vim bundle_ and is a [Vim] plugin manager.
6+
7+
[Vundle] allows you to...
8+
9+
* keep track of and [configure] your plugins right in the `.vimrc`
10+
* [install] configured plugins (a.k.a. scripts/bundle)
11+
* [update] configured plugins
12+
* [search] by name all available [Vim scripts]
13+
* [clean] unused plugins up
14+
* run the above actions in a *single keypress* with [interactive mode]
15+
16+
[Vundle] automatically...
17+
18+
* manages the [runtime path] of your installed scripts
19+
* regenerates [help tags] after installing and updating
20+
21+
[Vundle] is undergoing an [interface change], please stay up to date to get latest changes.
22+
23+
[![Gitter-chat](https://badges.gitter.im/VundleVim/Vundle.vim.svg)](https://gitter.im/VundleVim/Vundle.vim) for discussion and support.
24+
25+
![Vundle-installer](http://i.imgur.com/Rueh7Cc.png)
26+
27+
## Quick Start
28+
29+
1. Introduction:
30+
31+
Installation requires [Git] and triggers [`git clone`] for each configured repository to `~/.vim/bundle/` by default.
32+
Curl is required for search.
33+
34+
If you are using Windows, go directly to [Windows setup]. If you run into any issues, please consult the [FAQ].
35+
See [Tips] for some advanced configurations.
36+
37+
Using non-POSIX shells, such as the popular Fish shell, requires additional setup. Please check the [FAQ].
38+
39+
2. Set up [Vundle]:
40+
41+
`$ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim`
42+
43+
3. Configure Plugins:
44+
45+
Put this at the top of your `.vimrc` to use Vundle. Remove plugins you don't need, they are for illustration purposes.
46+
47+
```vim
48+
set nocompatible " be iMproved, required
49+
filetype off " required
50+
51+
" set the runtime path to include Vundle and initialize
52+
set rtp+=~/.vim/bundle/Vundle.vim
53+
call vundle#begin()
54+
" alternatively, pass a path where Vundle should install plugins
55+
"call vundle#begin('~/some/path/here')
56+
57+
" let Vundle manage Vundle, required
58+
Plugin 'VundleVim/Vundle.vim'
59+
60+
" The following are examples of different formats supported.
61+
" Keep Plugin commands between vundle#begin/end.
62+
" plugin on GitHub repo
63+
Plugin 'tpope/vim-fugitive'
64+
" plugin from http://vim-scripts.org/vim/scripts.html
65+
Plugin 'L9'
66+
" Git plugin not hosted on GitHub
67+
Plugin 'git://git.wincent.com/command-t.git'
68+
" git repos on your local machine (i.e. when working on your own plugin)
69+
Plugin 'file:///home/gmarik/path/to/plugin'
70+
" The sparkup vim script is in a subdirectory of this repo called vim.
71+
" Pass the path to set the runtimepath properly.
72+
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
73+
" Install L9 and avoid a Naming conflict if you've already installed a
74+
" different version somewhere else.
75+
Plugin 'ascenator/L9', {'name': 'newL9'}
76+
77+
" All of your Plugins must be added before the following line
78+
call vundle#end() " required
79+
filetype plugin indent on " required
80+
" To ignore plugin indent changes, instead use:
81+
"filetype plugin on
82+
"
83+
" Brief help
84+
" :PluginList - lists configured plugins
85+
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
86+
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
87+
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
88+
"
89+
" see :h vundle for more details or wiki for FAQ
90+
" Put your non-Plugin stuff after this line
91+
```
92+
93+
4. Install Plugins:
94+
95+
Launch `vim` and run `:PluginInstall`
96+
97+
To install from command line: `vim +PluginInstall +qall`
98+
99+
## Docs
100+
101+
See the [`:h vundle`](https://github.com/VundleVim/Vundle.vim/blob/master/doc/vundle.txt) Vimdoc for more details.
102+
103+
## Changelog
104+
105+
See the [changelog](https://github.com/VundleVim/Vundle.vim/blob/master/changelog.md).
106+
107+
## People Using Vundle
108+
109+
see [Examples](https://github.com/VundleVim/Vundle.vim/wiki/Examples)
110+
111+
## Contributors
112+
113+
see [Vundle contributors](https://github.com/VundleVim/Vundle.vim/graphs/contributors)
114+
115+
*Thank you!*
116+
117+
## Inspiration & Ideas
118+
119+
* [pathogen.vim](http://github.com/tpope/vim-pathogen/)
120+
* [Bundler](https://github.com/bundler/bundler)
121+
* [Scott Bronson](http://github.com/bronson)
122+
123+
## Also
124+
125+
* Vundle was developed and tested with [Vim] 7.3 on OS X, Linux and Windows
126+
* Vundle tries to be as [KISS](http://en.wikipedia.org/wiki/KISS_principle) as possible
127+
128+
## TODO:
129+
[Vundle] is a work in progress, so any ideas and patches are appreciated.
130+
131+
* ✓ activate newly added bundles on `.vimrc` reload or after `:PluginInstall`
132+
* ✓ use preview window for search results
133+
* ✓ Vim documentation
134+
* ✓ put Vundle in `bundles/` too (will fix Vundle help)
135+
* ✓ tests
136+
* ✓ improve error handling
137+
* allow specifying revision/version?
138+
* handle dependencies
139+
* show description in search results
140+
* search by description as well
141+
* make it rock!
142+
143+
[Vundle]:http://github.com/VundleVim/Vundle.vim
144+
[Windows setup]:https://github.com/VundleVim/Vundle.vim/wiki/Vundle-for-Windows
145+
[FAQ]:https://github.com/VundleVim/Vundle.vim/wiki
146+
[Tips]:https://github.com/VundleVim/Vundle.vim/wiki/Tips-and-Tricks
147+
[Vim]:http://www.vim.org
148+
[Git]:http://git-scm.com
149+
[`git clone`]:http://gitref.org/creating/#clone
150+
151+
[Vim scripts]:http://vim-scripts.org/vim/scripts.html
152+
[help tags]:http://vimdoc.sourceforge.net/htmldoc/helphelp.html#:helptags
153+
[runtime path]:http://vimdoc.sourceforge.net/htmldoc/options.html#%27runtimepath%27
154+
155+
[configure]:https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L126-L233
156+
[install]:https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L234-L254
157+
[update]:https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L255-L265
158+
[search]:https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L266-L295
159+
[clean]:https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L303-L318
160+
[interactive mode]:https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L319-L360
161+
[interface change]:https://github.com/VundleVim/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L372-L396

0 commit comments

Comments
 (0)