Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Linux Environment
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Hermann Mayer
Linux Environment
Commits
a9fffdbe
Commit
a9fffdbe
authored
Jan 13, 2013
by
Hermann Mayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VimRC: Added advanced PHP CTags support.
parent
94f29132
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
2 deletions
+39
-2
.bashrc
.bashrc
+3
-0
wombat256mod.vim
.vim/wombat256mod.vim
+2
-1
.vimrc
.vimrc
+22
-1
README-vim.md
README-vim.md
+12
-0
No files found.
.bashrc
View file @
a9fffdbe
...
...
@@ -86,6 +86,9 @@ shopt -s histappend
shopt
-s
extglob
# Auto "cd" when entering just a path
shopt
-s
autocd
# Change the window title of X terminals
case
${
TERM
}
in
xterm
*
|
rxvt
*
|
Eterm|aterm|kterm|gnome
*
|
interix
)
...
...
.vim/wombat256mod.vim
View file @
a9fffdbe
...
...
@@ -72,7 +72,6 @@ hi DiffChange ctermbg=237 guibg=#382a37
"hi User9
"hi WildMenu
" Syntax highlighting
hi
Keyword ctermfg
=
111
cterm
=
none guifg
=
#88b8f6
gui
=
none
hi
Statement ctermfg
=
111
cterm
=
none guifg
=
#88b8f6
gui
=
none
...
...
@@ -87,6 +86,8 @@ hi String ctermfg=113 cterm=none guifg=#95e454 gui=italic
hi
Comment ctermfg
=
246
cterm
=
none guifg
=
#9c998e
gui
=
italic
hi
Todo ctermfg
=
101
cterm
=
none guifg
=
#857b6f
gui
=
italic
" Tagbar Plugin Coloring
hi
!
TagbarVisibilityProtected ctermfg
=
111
cterm
=
none guifg
=
#46B7B7
gui
=
none
" Links
hi
!
link FoldColumn Folded
...
...
.vimrc
View file @
a9fffdbe
...
...
@@ -90,6 +90,8 @@ Bundle "garbas/vim-snipmate"
Bundle
"tpope/vim-markdown"
" NERDTree with tabs
Bundle
'jistr/vim-nerdtree-tabs'
" Advanced PHP CTags Generator
Bundle
'techlivezheng/tagbar-phpctags'
" Bundles from vim-scripts repos
...
...
@@ -222,26 +224,38 @@ imap <M-Left> <ESC><c-w>h
imap
<
M
-
Up
>
<
ESC
><
c
-
w
>
k
imap
<
M
-
Down
>
<
ESC
><
c
-
w
>
j
" Alt+arrow Navigation
nmap
<
silent
>
<
A
-
Up
>
:
wincmd
k
<
CR
>
nmap
<
silent
>
<
A
-
Down
>
:
wincmd
j
<
CR
>
nmap
<
silent
>
<
A
-
Left
>
:
wincmd
h
<
CR
>
nmap
<
silent
>
<
A
-
Right
>
:
wincmd
l
<
CR
>
" ReFormat the Document
vmap
<
Tab
>
>
vmap
<
S
-
Tab
>
<
" Indent Out
map
<
F6
>
>
i
}<
CR
>
imap
<
F6
>
<
ESC
>>
i
}<
CR
>
i
" Indent In
map
<
F5
>
<
i
}<
CR
>
imap
<
F5
>
<
ESC
><
i
}<
CR
>
i
" Reformat the buffer
map
<
F7
>
mzgg
=
G`z
<
CR
>
" Align = or => Statements
map
<
F8
>
<
ESC
>:
Align
=<
CR
>
imap
<
F8
>
<
ESC
>:
Align
=<
CR
>
i
map
<
F9
>
<
ESC
>:
Align
=><
CR
>
imap
<
F9
>
<
ESC
>:
Align
=><
CR
>
i
" Check the syntax of the buffer
map
<
F11
>
<
ESC
>:
SyntasticCheck
<
CR
>
imap
<
F11
>
<
ESC
>:
SyntasticCheck
<
CR
>
i
" Move Lines / Selections
nnoremap
<
A
-
j
>
:
m
.+
1
<
CR
>==
nnoremap
<
A
-
k
>
:
m
.
-2
<
CR
>==
inoremap
<
A
-
j
>
<
Esc
>:
m
.+
1
<
CR
>==
gi
...
...
@@ -447,7 +461,7 @@ endif
" +-----------------------------------------------
" | PHP
Doc
" | PHP
- Doc and common Settings
" +-----------------------------------------------
source
~
/.vim/
php
-
doc
.
vim
...
...
@@ -459,6 +473,9 @@ let g:pdv_cfg_Author = "Hermann Mayer <hermann.mayer92@gmail.com>"
let
g:pdv_cfg_Copyright
=
""
let
g:pdv_cfg_License
=
""
" Advanced PHP CTag generator binary path
let
g:tagbar_phpctags_bin
=
'~/.vim/tools/phpctags/phpctags'
" +-----------------------------------------------
" | Coding References
...
...
@@ -603,10 +620,14 @@ map <C-T> :tabnew<CR>
map
<
C
-
N
>
:!
gvim
&
<
CR
><
CR
>
map
<
C
-
W
>
:
confirm
bdelete
<
CR
>
" Start Tagbar on known filetype and new buffers automatically
autocmd
BufEnter
* nested
if
(!
&readonly && &buftype
!=
'nofile'
&& &buftype
!=
'help'
)
|
:
call
tagbar#autoopen
(
0
)
|
endif
" +-----------------------------------------------
" | Startups
" +-----------------------------------------------
let
g:nerdtree_tabs_open_on_gui_startup
=
1
let
g:tagbar_foldlevel
=
1
README-vim.md
View file @
a9fffdbe
...
...
@@ -19,6 +19,18 @@ Finally you just need to fetch all Vim bundles by opening vim and type the follo
Nice! You made it. Now everything should work!
PHP TagBar
==========
The TagBar for PHP code is quite useless with the common
CTags binary. A alternative is integrated into the VimRC
and here are the steps to install the addon:
cd ~/projects/vim-config/.vim/tools
git clone https://github.com/techlivezheng/phpctags.git && cd phpctags
curl -s http://getcomposer.org/installer | php
php composer.phar install
Fonts
=====
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment