-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
34 lines (30 loc) · 835 Bytes
/
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
syntax on
set ignorecase
set hlsearch
set incsearch
set backspace=indent,eol,start
set number
set ai
set gfn=Monaco:h10:a
set tabstop=4
set nocompatible
set wildmenu
set wildmode=list:longest " autocomplete for file selection
set visualbell
filetype plugin indent on
set ignorecase
set smartcase
set list
set listchars=tab:▸\ ,eol:¬
" shift-arrow select mode
if has("gui_macvim")
let macvim_hig_shift_movement = 1
endif
" command-t default open in new tab
let g:CommandTAcceptSelectionTabMap='<CR>'
" autocompletion
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
autocmd FileType css set omnifunc=csscomplete#CompleteCSS
autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags
autocmd FileType php set omnifunc=phpcomplete#CompletePHP