forked from crccheck/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc2
executable file
·38 lines (33 loc) · 1.1 KB
/
.vimrc2
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
set nocompatible
set bs=2
set laststatus=2
set ts=8 sts=4 sw=4 expandtab smarttab
set autoindent smartindent
if &term =~ "^screen"
set ttymouse=xterm2
endif
set mouse=a
" Show tab chars and trailing whitespace.
" Useful for cleaning up slop left by Emacs users.
set list
set listchars=tab:>-,trail:-
" do i really want to do this?
" autocmd BufWrite * %s/\s\+$//
autocmd BufRead *.c set cindent
autocmd BufRead *.cpp set cindent
autocmd BufRead *.cxx set cindent
autocmd BufRead place.c set sw=2 sts=2
autocmd BufRead *.txt set tw=76 wrap formatoptions+=n
autocmd BufRead /tmp/cvs* set tw=76 wrap
autocmd BufNewFile,BufRead *.frag,*.vert,*.fp,*.vp,*.glsl setf glsl
autocmd BufNewFile,BufRead *.html set ft=htmldjango
" smartindent seems to have formatting leakage from cindent, because
" it forces lines beginning with '#' to column 0.
autocmd BufRead *.py set nocindent nosmartindent autoindent
let fortran_free_source=1 " Default on new files is fixed-format Fortran
set wildmode=longest,list
set nu
set nostartofline " Leave cursor in same column after page up/down.
set ruler
set background=dark
syntax on