-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
100 lines (84 loc) · 2.29 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
" Begin .vimrc
"
" by Patrick MacArthur <[email protected]>
" Start out with vim (not vi) defaults
set nocompatible
" Load all plugins that I've installed into .vim/bundle
runtime bundle/vim-pathogen/autoload/pathogen.vim
call pathogen#infect()
if has("syntax")
if has("gui_running")
syntax enable
set hlsearch
colorscheme solarized
elseif &t_Co > 2
syntax enable
set hlsearch
colorschem solarized
else
syntax off
set nohlsearch
endif
endif
if has("gui_running")
set cursorline
set guifont=Ubuntu\ Mono\ 12
set guioptions-=T
runtime ftplugin/man.vim
nmap K :Man <cword><CR>
endif
" These are my settings; in (mostly) alphabetical order. If you don't know what
" one of them does, run :help <name> from within vim.
set autoindent
set nobackup
set noesckeys
set number
set matchtime=2
set incsearch
set list
set listchars=tab:»\ ,extends:>,precedes:<,nbsp:+,trail:·
set printoptions=paper:letter,duplex:off
set pastetoggle=<f11>
set ruler
set showcmd
set showmode
set showmatch
set smarttab
set wildignore+=*.o,*.trs,configure,Makefile.in,tags
set wildmenu
set wrapmargin=8
" Enable saving things into viminfo. However, vim will complain if we try to
" use a newer feature in an older version, so test the version before enabling
" newer viminfo features.
if has("viminfo")
if version >= 700
set viminfo='200,<300,s150,%,h,!
elseif version >= 600
set viminfo='200,\"300,%,h,!
endif
endif
" Assume /bin/sh is the POSIX shell, not the original Bourne shell
let g:is_posix = 1
" Highlight whitespace at end of line.
let c_space_errors = 1
" For vim-latexsuite
set grepprg=grep\ -nH\ $*
let g:tex_flavor = "latex"
let g:Tex_DefaultTargetFormat = "pdf"
let g:Tex_MultipleCompileFormats = "dvi pdf"
let g:tex_indent_brace = 0
let g:tex_indent_items = 0
let g:tex_indent_and = 0
let g:tex_noindent_env = 'document\|verbatim\|lstlisting\|proof'
let g:EditorConfig_exclude_patterns = ['fugitive://.*']
" Source local vimrc to grab local-only modifications to this file
if filereadable(expand("$HOME/.vimrc.local"))
source $HOME/.vimrc.local
endif
" Unhighlight any previous searches because I find it annoying
nohlsearch
" Automatically detect filetypes and use the appropriate plugins
filetype plugin indent on
" End .vimrc
"
" vim: set et sw=2 ts=2 wm=2: