-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_vimrc
54 lines (44 loc) · 1.06 KB
/
dot_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
set nocompatible
source ~/.vim/vimrc-python.org
let python_highlight_all=1
set tabstop=4
set backspace=indent,eol,start
set autoindent
set cindent
set copyindent
set shiftwidth=4
set softtabstop=4
set showmatch
set ignorecase
set smartcase
set smarttab
set hlsearch
set incsearch
set expandtab
set ml
set history=5000
set undolevels=5000
set wildignore=*.swp,*.bak,*.pyc,*.class,*.o,*.so,*.la,*.a
set title
set visualbell
set noerrorbells
filetype on
filetype plugin indent on
syntax enable
set background=dark
"colorscheme solarized
autocmd BufRead,BufNewFile *.[ch] let fname = expand('<afile>:p:h') . '/types.vim'
autocmd BufRead,BufNewFile *.[ch] if filereadable(fname)
autocmd BufRead,BufNewFile *.[ch] exe 'so ' . fname
autocmd BufRead,BufNewFile *.[ch] endif
" noweb
au BufRead,BufNewFile *.nw set filetype=noweb
let noweb_backend = "tex"
let noweb_language = "c"
let noweb_fold_code = 0
" for latexsuite
set grepprg=grep\ -nH\ $*
" restore last position when opening a buffer
set viminfo='1000,:1000,@1000,/1000
au BufWinLeave /* mkview
au VimEnter /* silent loadview