forked from faktiva/vim-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc.local
96 lines (69 loc) · 1.91 KB
/
vimrc.local
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
"
" vim configuration by Emiliano 'AlberT' Gabrielli <[email protected]>
" feel free to use
" Expecially intended for PHP and Symfony coding
"
set nocompatible
" enable pathogen plugin manager
" execute pathogen#infect()
call pathogen#infect()
filetype plugin indent on
syntax on
" Highlight current line in insert mode.
autocmd InsertLeave * se nocul
autocmd InsertEnter * se cul
" Enable modeline
set modeline
set modelines=5
" {{{ Settings
if &diff
"diff mode
set diffopt+=iwhite
endif
colorscheme default
set background=dark
set ruler " show line and column information
set laststatus=2
set tabstop=4
set shiftwidth=4
set softtabstop=0
set noexpandtab
set ignorecase " caseinsensitive searches
set showmode " always show command or insert mode
" Show line numbers by default
set nonumber
set norelativenumber
" Enable folding by fold markers
set foldmethod=marker
" Autoclose folds, when moving out of them
set foldclose=all
" Use incremental searching
set incsearch
" Do not highlight search results
set nohlsearch
set fileformat=unix fileformats=unix
set encoding=utf-8 fileencoding=utf-8 fileencodings=utf-8
" XXX fix Mac backspace
if has("unix")
let s:uname = system("uname -s")
if s:uname == "Darwin\n"
set backspace=2
:fixdel
endif
endif
" }}}
highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
" {{{ .phps files handled like .php
au BufRead,BufNewFile *.phps set filetype=php
" }}}
" {{{ FIXME Reads the skeleton php file
" it doen't work if moved into the ftplugin file
" Note: The normal command afterwards deletes an ugly pending line and moves
" the cursor to the middle of the file.
autocmd BufNewFile *.php 0r ~/.vim/php/skeleton.php
" }}}
" {{{ Symfony settings
if filereadable(glob("~/.vim/symvimny/symfony.vim"))
source ~/.vim/symvimny/symfony.vim
endif
" }}}