" Global stuff set ai backup autocmd Syntax * syntax sync fromstart syntax on " Try to prevent vim from seeing terminal escape sequences with user input set timeoutlen=100 " Mouse Stuff set mouse=a :map 5 :map 5 set nowrap listchars=eol:$,precedes:<,extends:@ au BufNewFile,BufRead {.,}z{profile,logout,login,shrc,shenv} set filetype=zsh au BufNewFile,BufRead *.scheme set filetype=scheme au BufNewFile,BufRead *.cls set filetype=tex au BufNewFile,BufRead *.sig set filetype=sml au BufNewFile,BufRead *.txt set filetype=txt au BufNewFile,BufRead *.cabal set filetype=cabal au BufNewFile,BufRead *.h set filetype=c au BufNewFile,BufRead *.gob set filetype=gob au BufNewFile,BufRead Makefile.inc set filetype=automake au BufReadPre .skk-uim-jisyo set fileencodings=euc-jp au BufNewFile,BufRead *.frag,*.vert,*.fp,*.vp,*.glsl set filetype=glsl if has("cscope") && executable(&csprg) set nocscopeverbose for s:cscopedir in map([0, 1, 2, 3, 4, 5], "repeat('../', v:val)") let s:cscopedb = s:cscopedir . "cscope.out" if filereadable(s:cscopedb) let s:cscopedir = substitute(s:cscopedir, "/$", "", "") execute "cscope add" s:cscopedb s:cscopedir set cscopetag break endif endfor endif