-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
52 lines (39 loc) · 1.06 KB
/
.vimrc
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
set nocompatible
filetype on
source ~/.vim/plugins.vim
syntax enable
set number
set backspace=indent,eol,start
set smartindent
set autoindent
set showmatch
let mapleader = ','
"-------------------- Viusals ------------------"
"colorscheme gruvbox"
"colorscheme atom-dark-256"
colorscheme seoul256
"color dracula"
"-------------------- Mappings ------------------"
nmap ,ev :e ~/.vimrc<cr>
nmap ,pl :e ~/.vim/plugins.vim<cr>
nmap <Leader><space> :nohlsearch<cr>
nmap <c-R> :CtrlPBufTag<cr>
nmap <Leader>p :tabprevious<cr>
nmap <Leader>n :tabnext<cr>
nmap <Leader>e :tabedit
nmap <Leader>c :tabclose<cr>
"---------- Searching ---------"
set hlsearch
set incsearch
"------ Auto Commands ------"
"Automatically source the vimrc file on save"
augroup autosourcing
autocmd!
autocmd BufWritePost .vimrc source %
augroup END
function! IPhpExpandClass()
call PhpExpandClass()
call feedkeys('a', 'n')
endfunction
autocmd FileType php inoremap <Leader>n <Esc>:call IPhpExpandClass()<CR>
autocmd FileType php noremap <Leader>n :call PhpExpandClass()<CR>