summaryrefslogtreecommitdiff
path: root/dotrc
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2007-03-04 18:35:36 +0000
committerIan C <ianc@noddybox.co.uk>2007-03-04 18:35:36 +0000
commit954af9179665457b40453a0417ddf5b3949a0449 (patch)
treee3772817de5c79e29b602ebe47fe0129793f1470 /dotrc
parent892e6e107dbf2386831bd00e7f1c2a0bbe8b2cbb (diff)
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'dotrc')
-rw-r--r--dotrc/_alias92
-rw-r--r--dotrc/_bashrc6
-rw-r--r--dotrc/_gvimrc22
-rw-r--r--dotrc/_vimrc82
4 files changed, 202 insertions, 0 deletions
diff --git a/dotrc/_alias b/dotrc/_alias
new file mode 100644
index 0000000..2b72874
--- /dev/null
+++ b/dotrc/_alias
@@ -0,0 +1,92 @@
+alias setcore="ulimit -c unlimited"
+
+alias mem=free
+
+#alias XTERM="xterm -vb -bg black -fg grey90 -cr red -sb -sl 5000 -sk -si -ls -geom 80x40 &"
+
+alias diffsrc='rcsdiff *.[ch] *.html makefile >& diff.out'
+
+alias ctags=exctags
+
+alias vi=vim
+
+alias gvim="gvim -geom 80x83"
+
+alias V="vi"
+
+alias ls="ls -Fx"
+alias lsc="ls --color"
+alias lrt="ls -lrt"
+alias la="ls -a"
+alias lsd="ls -1 | egrep /"
+
+alias h="history|more"
+alias hi="history 20"
+alias p="pwd"
+
+alias vc="vi ~/.alias"
+alias sc="source ~/.alias"
+
+alias wenv="env | egrep "
+alias wal="alias | egrep "
+alias wset="set | egrep "
+
+alias pslink="/usr/sbin/ncpd -s /dev/ttyS1 -b 115200"
+alias winamp="wine /home/wine/DriveC/Program\ Files/Winamp/winamp.exe"
+
+alias bug="gvd"
+
+alias status="cvs status | egrep Status:"
+
+. ~/.b_dalias
+
+# Vars
+#
+FIGNORE=.o
+
+
+# Functions
+#
+function setenv ()
+{
+ export $1=$2
+}
+
+function vgrep()
+{
+ local vgargs
+ local vgflist
+ local vgexp
+
+ if [ $1 == "-i" ] ; then
+ vgargs="-i"
+ shift
+ else
+ vgargs=""
+ fi
+
+ vgexp="$1"
+ shift
+
+ vgflist=`egrep -l $vgargs "$vgexp" $*`
+
+ if [ "$vgflist" == "" ] ; then
+ echo "No matches found"
+ else
+ vi -R -M -c "/$vgexp" $vgflist
+ fi
+}
+
+
+# Directory setting aliases
+#
+alias dsrc="source ~/.b_dalias"
+
+function dset ()
+{
+ echo "export $1=\"$PWD\" ; alias $1='cd \"$PWD\"'" >> ~/.b_dalias
+ dsrc
+}
+
+alias dwot='alias | egrep "=.cd" | egrep -v dwot'
+alias vd="vi ~/.b_dalias"
diff --git a/dotrc/_bashrc b/dotrc/_bashrc
new file mode 100644
index 0000000..dbd3b3d
--- /dev/null
+++ b/dotrc/_bashrc
@@ -0,0 +1,6 @@
+
+if [ "$PS1" != "" ] ; then
+ PS1='[\w] % '
+fi
+
+test -s ~/.alias && . ~/.alias
diff --git a/dotrc/_gvimrc b/dotrc/_gvimrc
new file mode 100644
index 0000000..dace2c8
--- /dev/null
+++ b/dotrc/_gvimrc
@@ -0,0 +1,22 @@
+set ch=2
+
+set guioptions-=T
+set hlsearch
+set mousehide
+
+set mouse=
+
+highlight Normal guibg=black guifg=white
+highlight Search guibg=grey20 guifg=white
+highlight Cursor guibg=white guifg=NONE
+highlight NonText guibg=black
+highlight Constant gui=NONE guibg=black
+highlight Special gui=NONE guibg=black
+set background=dark
+
+"set guifont=-adobe-courier-medium-r-normal-*-*-120-*-*-m-*-iso8859-9
+"set guifont=-adobe-courier-medium-r-normal-*-*-140-*-*-m-*-iso10646-1
+"set guifont="-windows-proggysquare-medium-r-normal--11-80-96-96-c-70-iso8859-1"
+set guifont=fixed
+
+syntax on
diff --git a/dotrc/_vimrc b/dotrc/_vimrc
new file mode 100644
index 0000000..fcda293
--- /dev/null
+++ b/dotrc/_vimrc
@@ -0,0 +1,82 @@
+version 4.0
+set compatible
+set cpo-=<
+set sw=4
+" set expandtab
+set ai
+set report=2
+set more
+set history=50
+set visualbell
+set noshowmatch
+set modeline
+
+:if &term =~ "linux"
+: syntax on
+:endif
+
+set background=dark
+syntax on
+
+set wildchar=^I
+set wildmode=list,longest
+set wildignore=*.o,core,*~,*.bak,*.a,*.obj
+set wildmenu
+
+" set fileformats=unix,dos,mac
+
+" For quickfix
+" set mp=make\ \\\|&\ egrep\ ^cc:\ \\\|&\ egrep\ error
+set mp=make\ \\\|&\ egrep\ ^cc:
+
+"
+" This should work, but doesn't...
+" set errorformat=cc:\ \"%f\"\,\ line\ %l:\ error\ %n:\ %m\.
+
+" Map error commands
+map _a :cn
+map _s :cp
+map __ :cc
+
+" Map buffer cycling
+map <C-Tab> :bnext
+map! <C-Tab> :bnext
+
+" Try and set color for xterm
+"
+" :if &term =~ "xterm"
+" : if has("terminfo")
+" : set t_Co=16
+" : set t_AB=[%?%p1%{8}%<%t%p1%{40}%+%e%p1%{92}%+%;%dm
+" : set t_AF=[%?%p1%{8}%<%t%p1%{30}%+%e%p1%{82}%+%;%dm
+" : else
+" : set t_Co=16
+" : set t_Sf=[3%dm
+" : set t_Sb=[4%dm
+" : endif
+" :endif
+
+
+" Autocommands for skeletons and the such
+"
+:if !exists("autocommands_loaded")
+: let autocommands_loaded = 1
+": autocmd BufNewFile *.c 0r /devel/proformas/proforma.c
+": autocmd BufNewFile *.h 0r /devel/proformas/proforma.h
+": autocmd BufNewFile *.htm,*.html 0r $HOME/.skeleton/skeleton.html
+": autocmd BufNewFile,BufReadPost *.htm,*.html :vmenu HTML.Bold `>a</b>`<i<b>
+": autocmd BufNewFile,BufReadPost *.htm,*.html :vmenu HTML.Italic `>a</i>`<i<i>
+": autocmd BufNewFile,BufReadPost *.htm,*.html :vmenu HTML.Header.1 `>a</h1>`<i<h1>
+": autocmd BufNewFile,BufReadPost *.htm,*.html :vmenu HTML.Header.2 `>a</h2>`<i<h2>
+": autocmd BufNewFile,BufReadPost *.htm,*.html :vmenu HTML.Header.3 `>a</h3>`<i<h3>
+": autocmd BufNewFile,BufReadPost *.htm,*.html syntax on
+": autocmd BufNewFile,BufReadPost *.css syntax on
+": autocmd BufNewFile,BufReadPost *.h syntax on
+": autocmd BufNewFile,BufReadPost *.c syntax on
+": autocmd BufNewFile,BufReadPost *.cpp syntax on
+": autocmd BufNewFile,BufReadPost *.sql syntax on
+": autocmd BufNewFile,BufReadPost *.pc syntax on
+": autocmd BufNewFile,BufReadPost *.pc set syntax=cpp
+": autocmd BufNewFile,BufReadPost *.pkg syntax on
+": autocmd BufNewFile,BufReadPost *.pkg set syntax=plsql
+:endif