Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mde
committed
May 26, 2010
0 parents
commit b84f35c
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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\+$//<CR> | |||
nmap _S :%s/^\s\+//<CR> | |||
nmap _j :g/\S/,/^\s*$/join<CR> | |||
nmap _w :set wrap lbr tw=0 co=65<CR> | |||
nmap _t :tabnew | |||
nmap _l :set nonu<CR> | |||
nmap _L :set nu<CR> | |||
" Turn off auto-indent for paste | |||
set pastetoggle=<F9> | |||
|
|||
" 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 <C-J> :tabp<CR> | |||
map <C-K> :tabn<CR> | |||
: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 | |||
|
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 | |||
|
Empty file.