.perltidyrc-i=4 # 4 spaces for indent
-bar # opening brace always on right, even for long clauses
-ce # cuddled } else {
-b # write in-place, plus .bak
-l=140 # maximum line length; default n=80
-ci=4 # continuation indent is 4 cols
-vt=1 # medium vertical tightness
-cti=0 # no extra indentation for closing brackets
-pt=1 # medium parenthesis tightness
-bt=1 # medium brace tightness
-sbt=1 # medium square bracket tightness
-bbt=1 # medium block brace tightness
-nsfs # no space before semicolon
-nolq # don't outdent long quoted strings
# break before all ops
-wbb="% + - * / x != == >= <= =~ !~ < > | &
>= < = **= &= <<= &&= -= /= |= >>= ||= .= %= ^= x="
--blanks-before-subs # Introduce blank line before 'sub'
posted by sick 2 years ago (May 15, 06); edited 11 months ago (Jan 26, 08).
.perltidyrc (newer)--blanks-before-subs --noblanks-before-comments --block-brace-tightness=0 --brace-tightness=1 --brace-vertical-tightness=2 --continuation-indentation=4 --cuddled-else --maximum-consecutive-blank-lines=2 --maximum-line-length=127 --nooutdent-long-quotes --output-line-ending="unix" --paren-tightness=2 --paren-vertical-tightness=1 --profile="mreece.perltidyrc" --square-bracket-vertical-tightness=1 --static-block-comment-prefix="^#" --want-break-before=". % + - * / x != == >= <= =~ !~ < > |\ & >= < = **= += *= &= <<= &&= -= /= |= >>= ||= .= %= ^= x="
posted by sick 1 year ago (Feb 10, 07); edited 1 year ago (Feb 10, 07).
vimrcset nocompatible
set expandtab
set shiftwidth=4
set tabstop=4
set textwidth=0
set shiftround
" set autoindent
set backspace=indent,eol,start
set showcmd
set backup
set history=1000
set ruler
set viminfo='500,:1000,/1000,f1
set incsearch
set nohlsearch
set showmatch
set formatoptions=tcq
" Switch syntax highlighting on, when the terminal has colors
if &t_Co > 2 || has("gui_running")
syntax on
hi Comment ctermfg=DarkGreen term=bold
endif
posted by sick 2 years ago (May 15, 06); edited 2 years ago (Jul 5, 06).
reworld.tf/~loaded reworld.tf
/def addworld_site = /echo -- %L2 %L1
/def this_site = /echo -- ${world_host} ${world_port}
/def site = \
/if /test %# > 0%;\
/then \
/echo $(/addworld_site $(/listworlds %1))%; \
/else \
/echo $(/this_site)%;\
/endif
/def reworld = \
/let addr=$(/site %*)%;\
/if /test "%{addr}" !~ ""%;\
/then \
/world %{addr}%;\
/else \
/echo Site for world %* not found.%;\
/endif
posted by sick 2 years ago (Apr 22, 06).
|
|
|
|