X-Git-Url: http://git.draconx.ca/gitweb/vimconf.git/blobdiff_plain/8214b90df1346ea4433e4593da86ca44686c376e..HEAD:/vimrc diff --git a/vimrc b/vimrc index 40de099..fb2ec80 100644 --- a/vimrc +++ b/vimrc @@ -6,11 +6,6 @@ syntax on " Try to prevent vim from seeing terminal escape sequences with user input set timeoutlen=100 -" langmaps for non-standard layouts -if $KEYMAP == "colemak" - set langmap=sd,fe,tf,dg,ui,nj,ek,il,kn,yo,\\;p,pr,rs,gt,lu,jy,SD,FE,TF,DG,UI,NJ,EK,IL,KN,YO,:P,PR,RS,GT,LU,JY,o\\;,O: -endif - " Mouse Stuff set mouse=a :map 5 @@ -22,6 +17,7 @@ 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 @@ -31,6 +27,15 @@ au BufReadPre .skk-uim-jisyo set fileencodings=euc-jp au BufNewFile,BufRead *.frag,*.vert,*.fp,*.vp,*.glsl set filetype=glsl -if $TERM == "rxvt-unicode" - set t_Co=256 +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