From b84f35c8bc5ee42d90918f45cd252c6b637dba0b Mon Sep 17 00:00:00 2001 From: mde Date: Wed, 26 May 2010 11:51:56 -0700 Subject: [PATCH] first commit --- .exrc | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ .screenrc | 7 +++++++ README | 0 3 files changed, 57 insertions(+) create mode 100644 .exrc create mode 100644 .screenrc create mode 100644 README diff --git a/.exrc b/.exrc new file mode 100644 index 0000000..d826855 --- /dev/null +++ b/.exrc @@ -0,0 +1,50 @@ +syntax on +set background=dark + +" Highlight redundant whitespaces. +highlight RedundantSpaces ctermbg=blue guibg=blue +match RedundantSpaces /\s\+$\| \+\ze\t/ +" Suppress all spaces at end/beginning of lines +nmap _s :%s/\s\+$// +nmap _S :%s/^\s\+// +nmap _j :g/\S/,/^\s*$/join +nmap _w :set wrap lbr tw=0 co=65 +nmap _t :tabnew +nmap _l :set nonu +nmap _L :set nu + +" Turn off auto-indent for paste +set pastetoggle= + +" Line numbahs ... +set nu +" Use spaces for tabs +set et +" Indent 2 spaces +set ts=2 +set sw=2 +" Jump to matching brackets +" set sm +" Auto-indent +set ai + +:set history=1000 + +" @ will reformat the current paragraph +map @ !} fmt -w 65 + +" Cycle through the tabs +map :tabp +map :tabn + +:abbr #b /*------------------------------------------------ +:abbr #e -----------------------------------------------*/ + +cabbr lint !runjslint "`cat %`" \| lynx --force-html /dev/fd/5 -dump 5<&0 \| less + +" HTML syntax for .ejs template files +au BufRead,BufNewFile *.ejs set filetype=html + +" JS syntax for .as files +au BufRead,BufNewFile *.as set filetype=javascript + diff --git a/.screenrc b/.screenrc new file mode 100644 index 0000000..ef0e34d --- /dev/null +++ b/.screenrc @@ -0,0 +1,7 @@ +shell -${SHELL} +caption always "%{= kw}%?%-Lw%?%{+b kw}%n*%t%f %?(%u)%?%{= kw}%?%+Lw%?" +defscrollback 2048 +startup_message off +#hardstatus on +#hardstatus alwayslastline + diff --git a/README b/README new file mode 100644 index 0000000..e69de29