-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
29 lines (25 loc) · 912 Bytes
/
vimrc
File metadata and controls
29 lines (25 loc) · 912 Bytes
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
" common settings
set nocompatible
filetype indent plugin on
syntax on
set hlsearch
set tabstop=4
set autoindent
set showcmd
set incsearch
set ignorecase
set ruler
set number
set scrolloff=5
let maplocalleader=","
let mapleader=";"
set laststatus=2
set statusline=%t\ [%c,%l\/%L]%=%{&fileencoding}\ %{&ff}\ %y\
" autocomplete funcs and identifiers for languages
autocmd FileType python set omnifunc=pythoncomplete#Complete|set nowrap
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS|set nowrap
autocmd FileType html set omnifunc=htmlcomplete#CompleteTags|set nowrap
autocmd FileType css set omnifunc=csscomplete#CompleteCSS|set nowrap
autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags|set nowrap
autocmd FileType php set omnifunc=phpcomplete#CompletePHP|set nowrap|setlocal noeol binary fileformats="mac,unix,dos"
autocmd FileType c set omnifunc=ccomplete#Complete|set nowrap