Created
January 14, 2009 04:04
-
-
Save wezm/46771 to your computer and use it in GitHub Desktop.
Dot Files for Windows/Cygwin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Make Windows use my UNIX vimfiles | |
if has("win32") | |
set runtimepath=$HOME/.vim,$HOME/vimfiles,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,$HOME/vimfiles/after | |
endif | |
let skip_loading_mswin=1 | |
"let perl_fold = 1 | |
let perl_include_pod = 1 | |
let perl_extended_vars = 1 | |
"set ttybuiltin | |
set encoding=utf-8 | |
syntax on | |
"behave mswin | |
set bs=2 | |
" Non-compatible mode | |
set nocp | |
" Workaround strange Solaris behaviour | |
if &term == "xterm" | |
set term=xtermc | |
endif | |
" Disable clever clipboard behaviour that slows startup times down | |
set clipboard=exclude:.* | |
" Enable mouse in all modes (doesn't seem to work in screen) | |
set mouse=a | |
" perltidy | |
map t :%!perltidy | |
map T t | |
map t | |
" auto indent | |
filetype indent on | |
filetype plugin on | |
set ai | |
" Set up not to use Tabs | |
set expandtab | |
set shiftwidth=4 | |
set backspace=indent,eol,start | |
set noshowmatch | |
set ts=8 | |
set shiftround | |
set tw=78 | |
set formatoptions=crqb | |
"set formatoptions=tcq2bn | |
" Globally enable clever indenting | |
set cin | |
" Perl clever indenting | |
augroup My_Cin | |
autocmd! | |
"autocmd BufNewFile,BufReadPost * set noexpandtab ai backspace=0 nocin nosm fo=tcq2bn comments=sr:/*,mb:*,el:*/,://,b:#,:%,:XCOMM,n:>,fb:- tw=72 noshiftround tabstop=8 | |
autocmd BufNewFile,BufReadPost * if (&filetype == "perl") | |
autocmd BufNewFile,BufReadPost * set matchpairs+=<:> cinoptions=>s,e0,n0,f0,{0,}0,^0,:s,=s,l1,b0,g0,hs,ps,t0,is,+s,c2,C1,/0,(s,us,Us,w0,Ws,m1,j1,)60,*60 cinkeys=0{,0},0),:,!^F,o,O,e | |
autocmd BufNewFile,BufReadPost * endif | |
augroup END | |
" Perl syntax options | |
"let perl_fold = 1 | |
let perl_include_pod = 1 | |
let perl_extended_vars = 1 | |
" Load the POD template for a script | |
iab pbppods :r ~/.code_templates/script.pod | |
" Load the POD template for a module | |
iab pbppodm :r ~/.code_templates/module.pod | |
set laststatus=2 | |
"set ruler | |
set statusline=%<%f\ %m%a%=%([%R%H%Y]%)\ %-19(%3l\ of\ %L,%c%)%P | |
set showcmd | |
set complete=.,w,b,u,t | |
if has("gui_running") | |
if has("gui_gtk2") | |
:set guifont=Bitstream\ Vera\ Sans\ Mono\ 10 | |
elseif has("x11") | |
" Also for GTK 1 | |
:set guifont=*-lucidatypewriter-medium-r-normal-*-*-180-*-*-m-*-* | |
elseif has("gui_win32") | |
:set guifont=Consolas:h8,ProggyTiny:h8,Luxi_Mono:h12:cANSI | |
endif | |
set columns=90 lines=65 | |
colorscheme railscasts | |
highlight LineNr guifg=#2B2B2B ctermfg=159 guibg=#111111 | |
else | |
colorscheme koeler | |
highlight LineNr guifg=#666666 | |
endif | |
set number | |
autocmd BufRead *.vala set efm=%f:%l.%c-%[%^:]%#:\ %t%[%^:]%#:\ %m | |
autocmd BufRead *.vapi set efm=%f:%l.%c-%[%^:]%#:\ %t%[%^:]%#:\ %m | |
au BufRead,BufNewFile *.vala setfiletype vala | |
au BufRead,BufNewFile *.vapi setfiletype vala | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#alias spec="spec -c -fn" | |
# Git | |
alias ga="git add" | |
alias gc="git commit" | |
alias gca="git commit -a -v" | |
alias gd="git diff" | |
alias gp="git pull" | |
alias gs="git status" | |
alias bc="basketcase" | |
alias gvim=gvim.bat | |
alias vim=gvim | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The following lines were added by compinstall | |
#zstyle ':completion:*' completer _complete _correct _approximate | |
#zstyle ':completion:*' completer _complete _correct | |
zstyle ':completion:*' completer _complete _approximate _expand | |
#zstyle ':completion:*' insert-unambiguous true | |
zstyle ':completion:*' list-colors '' | |
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s | |
#zstyle ':completion:*' matcher-list '' 'r:|[._-]=* r:|=*' 'm:{a-z}={A-Z}' 'l:|=* r:|=*' | |
zstyle ':completion:*' max-errors 3 | |
zstyle ':completion:*' menu select=1 | |
zstyle ':completion:*' original true | |
zstyle ':completion:*' prompt '%e errors, choose correction' | |
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s | |
zstyle ':completion:*' use-compctl false | |
zstyle :compinstall filename '/home/wmoore/.zshrc' | |
autoload -Uz compinit | |
compinit | |
# End of lines added by compinstall | |
# Lines configured by zsh-newuser-install | |
HISTFILE=~/.zhistory | |
HISTSIZE=10000 | |
SAVEHIST=10000 | |
setopt appendhistory nomatch | |
unsetopt notify | |
bindkey -e | |
# End of lines configured by zsh-newuser-install | |
### COLORS ### | |
fg_green=$'%{\e[0;32m%}' | |
fg_blue=$'%{\e[0;34m%}' | |
fg_cyan=$'%{\e[0;36m%}' | |
fg_red=$'%{\e[0;31m%}' | |
fg_brown=$'%{\e[0;33m%}' | |
fg_purple=$'%{\e[0;35m%}' | |
fg_yellow=$'%{\e[0;33m%}' | |
fg_light_gray=$'%{\e[0;37m%}' | |
fg_dark_gray=$'%{\e[1;30m%}' | |
fg_light_blue=$'%{\e[1;34m%}' | |
fg_light_green=$'%{\e[1;32m%}' | |
fg_light_cyan=$'%{\e[1;36m%}' | |
fg_light_red=$'%{\e[1;31m%}' | |
fg_light_purple=$'%{\e[1;35m%}' | |
fg_no_colour=$'%{\e[0m%}' | |
fg_white=$'%{\e[1;37m%}' | |
fg_black=$'%{\e[0;30m%}' | |
left=33 # yellow | |
middle=35 # magenta | |
right=32 # green | |
start_title=$'\ek' | |
end_title=$'\e\\' | |
if [ "$CLEARCASE_ROOT" ]; then | |
# Avoid clearmake parallel builds | |
export CCASE_CONC=0 | |
# Display ClearCase dates as 21-Jan.14:03, 08-Mar-2005 | |
export CCASE_ISO_DATE_FMT=0 | |
ccview=`cleartool pwv -s` | |
case $ccview in | |
*integ*) # highlight integration views | |
ccview="*${ccview}*" | |
middle='31' | |
;; | |
esac | |
if [[ $TERM == 'screen' ]]; then | |
PS1="${fg_yellow}(%n:%l@%m%)${fg_purple}[$ccview]${fg_green}%~>${fg_no_colour} | |
%(?,,${fg_white}[%?]${fg_no_colour} )%#%{${start_title}[${ccview}]%~${end_title}%} " | |
else | |
PS1="${fg_yellow}(%n:%l@%m%)${fg_purple}[$ccview]${fg_green}%~>${fg_no_colour} | |
%(?,,${fg_white}[%?]${fg_no_colour} )%# " | |
fi | |
export PATH=/vobs/kalm/src/tools:/vobs/kalm/src/scripts:/vobs/kalm/src/scripts/udt:${PATH} | |
export PERL5LIB=/vobs/irm/src/perl/lib:/vobs/kalm/src/perl/lib | |
else | |
if [[ $TERM == 'screen' ]]; then | |
PS1="${fg_yellow}(%n:%l@%m%)${fg_green}%~>${fg_no_colour} | |
%(?,,${fg_white}[%?]${fg_no_colour} )%#%{${start_title}%~${end_title}%} " | |
else | |
PS1="${fg_yellow}(%n:%l@%m%)${fg_green}%~>${fg_no_colour} | |
%(?,,${fg_white}[%?]${fg_no_colour} )%# " | |
fi | |
fi | |
# zsh options | |
#seoptt PRINT_EXIT_VALUE | |
setopt ALWAYS_TO_END | |
#setopt APPEND_HISTORY | |
setopt AUTO_LIST | |
setopt AUTO_MENU | |
setopt NOAUTO_REMOVE_SLASH | |
setopt NOCOMPLETE_IN_WORD | |
setopt CORRECT | |
setopt HASH_CMDS | |
setopt HIST_ALLOW_CLOBBER | |
setopt HIST_IGNORE_DUPS | |
setopt HIST_REDUCE_BLANKS | |
setopt NOBEEP | |
setopt NOCLOBBER | |
setopt NOHIST_BEEP | |
setopt NOHUP | |
#setopt NOMATCH | |
setopt NOTIFY | |
setopt SHARE_HISTORY | |
#export LESS="--quit-if-one-screen" | |
#alias ctpriv='cleartool lsprivate -other | grep -v .cmake.state | sort' | |
source "$HOME/.zsh_aliases" | |
export PATH="$PATH:$HOME/local/bin" | |
export ORACLE_HOME='c:\oracle\product\10.2.0\client_2' | |
export EDITOR="gvimf" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export VIMNOFORK=.1 | |
gvim.bat -f "$@" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment