]> git.draconx.ca Git - vimconf.git/blobdiff - vimrc
Add editing rules for awk.
[vimconf.git] / vimrc
diff --git a/vimrc b/vimrc
index 70b49a973005ba9cb81a46dd869f833ac60a85cb..fb2ec80f57e11d38793403a4c5af183a45c222dd 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -1,11 +1,10 @@
 " Global stuff
 set ai backup
 autocmd Syntax * syntax sync fromstart
+syntax on
 
-" langmaps for non-stantard 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
+" Try to prevent vim from seeing terminal escape sequences with user input
+set timeoutlen=100
 
 " Mouse Stuff
 set mouse=a
@@ -16,15 +15,27 @@ 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 $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