-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
42 lines (37 loc) · 1.95 KB
/
Copy pathvimrc
File metadata and controls
42 lines (37 loc) · 1.95 KB
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
call pathogen#infect()
set nocompatible " Disable complete vi compatibility
set background=dark " Easier-to-read colors for dark backgrounds
set history=1000 " Keep command line history
set ignorecase " Case-insensitive searching
set matchtime=2 " Time between bracket jumping for showmatch
set nobackup " Don't make backup files
set nohlsearch " No search highlighting
set noincsearch " No incremental searching
set noshowcmd " Don't show incomplete commands
set showmatch " Show matching brackets
set ruler " Show cursor information
set smartcase " Case-sensitive searching for searches with uppercase letters
set textwidth=0 " No hard line wrapping
set wildmode=list " More useful command completion
set nowrap " I'm sick of having to do this all the time
set nospell " No spell correction
set foldmethod=marker " Sets foldmethod to marker
set autoindent " Turn on auto indent
set smartindent " Turn on smart indent
set number " Line numbering and coloring below
highlight LineNr term=bold cterm=NONE ctermfg=Green ctermbg=NONE gui=NONE guifg=Blue guibg=NONE
syntax enable " Automatic syntax highlighting
" Setup some default highlighting and tab spacing for some filetypes
autocmd FileType python set ts=8 sts=4 sw=4 expandtab
autocmd FileType html set ts=8 sts=2 sw=2 expandtab
autocmd FileType javascript set ts=8 sts=2 sw=2 expandtab
autocmd BufNewFile,BufRead *.sass,*.scss set ft=css ts=8 sts=2 sw=2 expandtab
autocmd BufNewFile,BufRead *.php,*.install,*.profile,*.module,*.inc set ft=php ts=8 sts=2 sw=2 expandtab
autocmd BufNewFile,BufRead *.md,*.markdown set ft=markdown ts=8 sts=4 sw=4 expandtab
autocmd BufNewFile,BufRead *.pp set ft=ruby ts=8 sts=4 sw=4 expandtab
" A nicer-looking tabline (vim7 only)
if exists(":tabnew") == 2
highlight TabLine term=underline cterm=bold,underline ctermfg=Grey gui=underline
highlight TabLineFill term=underline cterm=bold,underline gui=underline guibg=DarkGrey
highlight TabLineSel term=reverse cterm=reverse gui=reverse
endif