1 if v:progname =~? "evim"
7 set backspace=indent,eol,start
11 " so that you can undo CTRL-U after inserting a line break.
12 inoremap <C-U> <C-G>u<C-U>
14 "if has("gui_running")
19 if &t_Co > 2 || has("gui_running")
26 filetype plugin indent on
31 autocmd FileType text setlocal textwidth=78
34 \ if line("'\"") > 1 && line("'\"") <= line("$") |
35 \ exe "normal! g`\"" |
42 set autoindent " always set autoindenting on
44 endif " has("autocmd")
46 if !exists(":DiffOrig")
47 command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis
48 \ | wincmd p | diffthis
72 nnoremap <F12> :TlistToggle<CR>
78 "autocmd BufRead *.rb set foldmethod=syntax
79 "autocmd BufRead *.rb set foldcolumn=5
80 vmap <C-y> y:call system("xclip -i -selection clipboard", getreg("\""))<CR>:call system("xclip -i", getreg("\""))<CR>
81 nmap <C-y> yw:call system("xclip -i -selection clipboard", getreg("\""))<CR>:call system("xclip -i", getreg("\""))<CR>
82 nmap <C-v> :call setreg("\"",system("xclip -o -selection clipboard"))<CR>p
84 au BufRead /tmp/mutt* set tw=72
85 au BufRead /tmp/mutt* :normal G?--
86 au BufRead /tmp/mutt* :normal k
89 autocmd BufRead *.rb map <F5> :!clear; ruby %
\r
90 au BufNewFile,BufRead *.srt setf srt
98 " read in template files
99 autocmd BufNewFile *.* silent! execute '0r /home/cinan/.vim/templates/skeleton.'.expand("<afile>:e")
100 " autocmd BufNewFile * %substitute#\[:VIM_EVAL:\]\(.\{-\}\)\[:END_EVAL:\]#\=eval(submatch(1))#ge
101 autocmd BufNewFile *.cs %substitute#\[:VIM_EVAL:\]FILENAME\[:END_EVAL:\]#\=expand("%:r")#ge