-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
69 lines (52 loc) · 1.41 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()
" Include user's local pre .vimrc config
if filereadable(expand("~/.vimrc.pre"))
source ~/.vimrc.pre
endif
set nocompatible
set number
set ruler
syntax on
" Set encoding
set encoding=utf-8
" Whitespace stuff
set nowrap
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set list listchars=tab:\ \ ,trail:·
" Searching
set hlsearch
set incsearch
set ignorecase
set smartcase
" Tab completion
set wildmode=list:longest,list:full
set wildignore+=*.o,*.obj,.git,*.rbc,*.class,.svn,vendor/gems/*
" Status bar
set laststatus=2
" Without setting this, ZoomWin restores windows in a way that causes
" equalalways behavior to be triggered the next time CommandT is used.
" This is likely a bludgeon to solve some other issue, but it works
set noequalalways
" NERDTree configuration
let NERDTreeIgnore=['\.pyc$', '\.rbc$', '\~$']
map <Leader>n :NERDTreeToggle<CR>
" Command-T configuration
let g:CommandTMaxHeight=20
"allow backspacing over everything in insert mode
set backspace=indent,eol,start
"load the plugin and indent settings for the detected filetype
filetype plugin indent on
"default color scheme
color desert
"Show (partial) command in the status line
set showcmd
"latex suite
set grepprg=grep\ -nH\$*
let g:tex_flavor='latex'
let g:Tex_DefaultTargetFormat="pdf"
let g:Tex_ViewRule_pdf="Preview"
let g:Tex_MultipleCompileFormats="dvi,pdf"