[Assorted-commits] SF.net SVN: assorted: [244] configs/trunk/src
Brought to you by:
yangzhang
|
From: <yan...@us...> - 2008-01-20 00:21:21
|
Revision: 244
http://assorted.svn.sourceforge.net/assorted/?rev=244&view=rev
Author: yangzhang
Date: 2008-01-19 16:21:21 -0800 (Sat, 19 Jan 2008)
Log Message:
-----------
added darcs configuration
Modified Paths:
--------------
configs/trunk/src/ssh/config
configs/trunk/src/subversion/config
configs/trunk/src/vim/plugin/_yang.vim
Added Paths:
-----------
configs/trunk/src/darcs/
configs/trunk/src/darcs/boring
Added: configs/trunk/src/darcs/boring
===================================================================
--- configs/trunk/src/darcs/boring (rev 0)
+++ configs/trunk/src/darcs/boring 2008-01-20 00:21:21 UTC (rev 244)
@@ -0,0 +1,2 @@
+^_whizzy_.*_tex$
+\.aux$
Modified: configs/trunk/src/ssh/config
===================================================================
--- configs/trunk/src/ssh/config 2008-01-20 00:17:56 UTC (rev 243)
+++ configs/trunk/src/ssh/config 2008-01-20 00:21:21 UTC (rev 244)
@@ -5,6 +5,10 @@
# StrictHostKeyChecking no
+Host pdos
+ HostName pdos.csail.mit.edu
+ User yang
+
Host sn
HostName sn002.datapository.net
User yang
Modified: configs/trunk/src/subversion/config
===================================================================
--- configs/trunk/src/subversion/config 2008-01-20 00:17:56 UTC (rev 243)
+++ configs/trunk/src/subversion/config 2008-01-20 00:21:21 UTC (rev 244)
@@ -67,7 +67,7 @@
[miscellany]
### Set global-ignores to a set of whitespace-delimited globs
### which Subversion will ignore in its 'status' output.
-global-ignores = *.aux *.aux *.elc *.ml[io] *.hi .*.sw? *.class *.pyc *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store
+global-ignores = tags cscope.* *.aux *.aux *.elc *.ml[io] *.hi .*.sw? *.class *.pyc *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store
### Set log-encoding to the default encoding for log messages
# log-encoding = latin1
### Set use-commit-times to make checkout/update/switch/revert
Modified: configs/trunk/src/vim/plugin/_yang.vim
===================================================================
--- configs/trunk/src/vim/plugin/_yang.vim 2008-01-20 00:17:56 UTC (rev 243)
+++ configs/trunk/src/vim/plugin/_yang.vim 2008-01-20 00:21:21 UTC (rev 244)
@@ -1,3 +1,5 @@
+" crawl http://eigenstate.org/vim/vimrc
+
" UNSORTED
" command! DiffOff :call CleanDiffOptions()
"
@@ -25,6 +27,9 @@
+
+
+
imap ^D <ESC>`[
@@ -40,14 +45,6 @@
" OPTIONS ---------------------------------------------------------------------
-"hi Normal guifg=black guibg=#aaccaa " highlight
-"hi Normal guifg=black guibg=#ccddcc " highlight
-" colorscheme
-colo desert
-" syntax
-sy enable
-set modeline
-set ws
" disable reports
"set report=99999
set display=lastline
@@ -74,20 +71,9 @@
set gfn=Bitstream\ Vera\ Sans\ Mono\ 12
endif
-" switchbuf
-set swb=useopen
" TODO find out what's still causing t_vb to be set
" TODO upgrade to vim 7
set visualbell t_vb=
-" enable bottom horizontal scrollbar
-set go+=b
-" ruler
-set ru
-set list
-" equalalways
-set noea
-" hlsearch
-set hls
highlight WhitespaceEOL ctermbg=red guibg=red " red trailing spaces
"match WhitespaceEOL /\s\+$/
" whitespace
@@ -96,63 +82,51 @@
else
set listchars=tab:>-,trail:-
endif
-" C indent
-"set cindent
-set winaltkeys=menu
-" winminheight
-set wmh=0
-" noexpandtab
-set noet
-" tabstop
-set ts=4
-" shiftwidth
-set sw=4
-" smartindent
-set si
-" showmatch
-set sm
-" mouse
-set mouse=a
if $TERM =~ '^screen' && exists("+ttymouse") && &ttymouse == ''
- set ttymouse=xterm
+ set ttymouse=xterm
endif
-" hidden
-set hid
-" incremental searching
-set incsearch
-" backspace
-set bs=indent,eol,start
-" winaltkeys
-set wak=no
-" cmdheight
-"set ch=2
-" highlight strings in C comments
-let c_comment_strings=1
-" whichwrap
-set ww+=<,>,[,],h,l
-" linebreak
-set lbr
-" number
-"set nu
-" laststatus
-set ls=2
-" statusline
+let c_comment_strings=1 " highlight strings in C comments
" see plugin/cream-statusline.vim
hi User1 guibg=#000000 guifg=#aaaaaa
hi User2 guibg=#000000 gui=bold
hi User3 guibg=#000000 guifg=LightBlue gui=bold
hi User4 guibg=#000000 guifg=LightBlue gui=bold
hi LineNr guibg=grey30
-set cindent
-set cino+=(0
-set updatetime=500
-set fo+=n
-set fo-=l
-set ai
-set nowrap
+colorscheme desert
+syntax enable
+" set number " number lines
+set autoindent
+set backspace=indent,eol,start
+set cinoptions+=(0 " TODO ???
+set expandtab
+set formatoptions+=n " TODO ???
+set formatoptions-=l " TODO ???
+set guioptions+=b " enable bottom horizontal scrollbar
+set hidden " TODO ???
+set hlsearch
+set incsearch
+set laststatus=2 " TODO ???
+set linebreak " do break lines
+set list
+set modeline " TODO ???
+set mouse=a
+set noequalalways " TODO ???
+set nowrap
+set ruler " TODO ???
+set shiftwidth=2
+set showmatch
+set smartindent " TODO ???
+set switchbuf=useopen " TODO ???
+set tabstop=2
+set updatetime=500
+set whichwrap+=<,>,[,],h,l " wrap on these letters
+set winaltkeys=menu
+set winaltkeys=no
+set wrapscan " TODO ???
+
" AUTOCOMMANDS ----------------------------------------------------------------
" makes this enable plugins and indentation based on file types
filetype plugin on
@@ -168,30 +142,13 @@
au BufWritePost *.bin if &bin | %!xxd
au BufWritePost *.bin set nomod | endif
augroup END
-" autocmd Project
-au BufEnter .vimprojects setlocal et
-" autocmd sources
-au BufEnter sources setf make | setlocal et
-" autocmd DIRS
-au BufEnter DIRS setf make | setlocal et
-" autocmd NesC
-au BufEnter *.nc setf nc | setlocal et | setlocal sw=2 | setlocal ts=8
" Java/Eclim
"au BufEnter *.java iunmap <tab>
"au BufEnter *.java setlocal cot+=longest | inoremap <buffer> . .<c-x><c-u> | inoremap <buffer> <c-j> <c-x><c-u> | nnoremap <silent> <buffer> <tab> :call eclim#util#FillTemplate("${", "}")<cr> | nnoremap <silent> <buffer> <leader>i :JavaImport<cr> | nnoremap <silent> <buffer> <leader>d :JavaDocSearch -x declarations<cr> | nnoremap <silent> <buffer> <cr> :JavaSearchContext<cr>
" autocmd Mapserver map files
au BufNewFile,BufRead *.map setf map
-" autocmd SLF
-au BufEnter *.slf setf tcl | setlocal ts=8
-" autocmd TCL
-au BufEnter *.tcl setlocal ts=8
-" autocmd Lisp
-au BufEnter *.lisp setlocal et
-" autocmd C, C++
-au BufEnter *.c setlocal cindent
-au BufEnter *.cc setlocal cindent
-au BufEnter *.cpp setlocal cindent
-au BufEnter *.cxx setlocal cindent
+" temporaries
+autocmd BufEnter *.{c,cc,cpp,cxx,h} setlocal cindent expandtab softtabstop=4 shiftwidth=4 tabstop=8
" autocmd GDB
au BufEnter *.gdb set ft=gdb
" autocmd hxx, cxx
@@ -201,10 +158,10 @@
" \ exe "normal g`\"" |
" \ endif
-" GNU style indentation
-augroup CXX
- autocmd BufRead *.cxx setlocal cinoptions={.5s,:.5s,+.5s,t0,g0,^-2,e-2,n-2,p2s,(0,=.5s formatoptions=croql cindent shiftwidth=4 tabstop=8
-augroup END
+" GNU style indentation TODO
+" augroup CXX
+" autocmd BufRead *.cxx setlocal cinoptions={.5s,:.5s,+.5s,t0,g0,^-2,e-2,n-2,p2s,(0,=.5s formatoptions=croql cindent shiftwidth=4 tabstop=8
+" augroup END
@@ -395,3 +352,29 @@
""au BufRead *.hs compiler ghci " hugs
""au BufRead *.lhs compiler ghci " hugs
filetype plugin indent on
+
+function ProjectDir()
+ let dir = expand('%')
+ if (dir =~ "^$")
+ let dir = getcwd()
+ endif
+ while isdirectory(dir) &&
+ \ dir !~ '^/*$' &&
+ \glob(dir . "/configure*") =~ "^$"
+ let dir = fnamemodify(dir, ":h")
+ endwhile
+ if glob(dir . "/configure*") =~ "^$"
+ let dir = getcwd()
+ endif
+ return dir
+endfunction
+
+" ctags handling
+let tag_path = ProjectDir() . "/tags"
+let &tags = &tags . "," . tag_path
+autocmd BufWritePost *
+ \ if exists("b:is_source") && b:is_source |
+ \ silent! exe "!ctags -f ".tag_path." -a ".expand("%") |
+ \ endif
+
+" vim:et:sw=2:ts=2
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|