-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
79 lines (70 loc) · 1.96 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
" ----------------------------------------
" Pathogen shizzle
" ----------------------------------------
"execute pathogen#infect()
"filetype plugin indent on
"
"set wrap
"syntax enable
"set t_Co=256
"set number
"set vb "no error bells visual nor audio
" ----------------------------------------
" Colorscheme setting
" We are using solarized which needs to have
" the solarozed theme installed as we also use
" iTerm2 so it needs to be imported and then
" set on the default (or given) profile.
" Its held locally (on coot03) but can be
" obtained from http://ethanschoonover.com/solarized
" which details ALL THE THINGS
" ----------------------------------------
set background=dark
colorscheme solarized
set showmode
set laststatus=2
set statusline=%<%F\ %h%m%r%=%-14.(%l,%c%V%)\ %P
set clipboard=unnamed
set backspace=indent,eol,start
if &term =~ '256color'
" disable Background Color Erase (BCE)
set t_ut=
endif
" ----------------------------------------
" LaTex shizzle
" Tex9 configuration for LaTex
" We are using XeTex as the compiler and
" Skim as the .pdf viewer
" ----------------------------------------
let g:tex_flavor='latex'
let g:tex_nine_config = {
\'compiler': 'xelatex',
\'shell_escape': 1,
\'viewer': {'app': 'open -a Skim', 'target': 'pdf'},
\}
" ----------------------------------------
" Backup and Swaps
" These need to be made if they dont exist.
" ----------------------------------------
set directory=$HOME/.vimbk
set backupdir=$HOME/.vimbk
"
" ----------------------------------------
" Tab stops spaces etc
" ----------------------------------------
au BufNewFile,BufRead *.py
\set tabstop=4
\set softtabstop=4
\set shiftwidth=4
\set textwidth=79
\set expandtab
\set autoindent
\set fileformat=unix
\let python_highlight_all=1
au BufNewFile,BufRead *.js, *.html, *.css
\set tabstop=2
\set softtabstop=2
\set shiftwidth=2
set expandtab
set tabstop=2 shiftwidth=2 softtabstop=2
set autoindent