login
.net

LinuxSnippets

login
down

Linux Snippets

Vim

  • Meine vimrc.local (bzw. .vimrc)
" define F5 to reload file (reverts changes!)
:map <F5> <Esc>:e!<CR>G
 
"define command Q = q and W = w
ab Q q
ab W w
ab Wq wq
 
"color scheme
color murphy
"syntax on
 
" tab stops
set ts=4 sw=4
 
 

Screen

  • /etc/screenrc
# display audible bell
vbell on
 
# disable the the copyright splash screen
startup_message off
 
# define some usefull options
defscrollback 1000
 
#
# keybindings
#
 
# remove some useless / dangerous keybindigs
bind k
bind ^k
bind .
bind ^\
bind \
bind ^h
bind h
 
# always show status line
hardstatus alwayslastline
 
# host date and load:
hardstatus string "%{kw}Host: %H | %d-%m-%y %c | Load: %l | %w"
 
#rosa:
#hardstatus string '%{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK}%+Lw%< %{= kG}%-=%D %d %M %Y %c:%s%{-}'                                                              
#with hostname:
hardstatus string '%{= kG}%{G}%H %{g}%{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}[%{B} %d/%m %{W}%c %{g}]'                       
#very simple
#hardstatus string '%{= kG}%-Lw%{= kW}%50> %n%f* %t%{= kG}%+Lw%< %{= kG}%-=%c:%s%{-}'                                                                         
#load average
#hardstatus string '%{gk}%{G}%H %{g}%{wk}%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}[%{Y}%l%{g}]%{=b C}%m/%d %c %{W}'   
shelltitle "$ |bash"
 
#make scrolling work
termcapinfo xterm ti@:te@
 
 

up
Home upload edit Recent Changes Find Page All Pages