Wednesday, January 19, 2011

256 colors - screen

By default, screen is not aware that it is running in a 256 color
capable xterm. To make programs in screen recognize this feature, you
need to set three things in your ~/.screenrc:

# terminfo and termcap for nice 256 color terminal
# allow bold colors - necessary for some reason
attrcolor b ".I"
# tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# erase background with current bg color
defbce "on"
via http://www.frexx.de/xterm-256-notes/

Thursday, December 30, 2010

^? for backspace

putty > terminal > keyboard > The backspace key = Control-H
echo "bindkey "^?" backward-delete-char" >> ~/.zshrc
echo "set t_kb=^V<BS>" >> ~/.vimrc
echo "set fixdel" >> ~/.vimrc

Tuesday, October 5, 2010

Spell correct in vim:

set spell spelllang=en_us

[s -previous spelling error
s] -next spelling error

Thursday, April 29, 2010

unknown terminal "xterm-256color"

sudo apt-get install ncurses-term
echo "export TERM=xterm-256color" >> ~/.bashrc
echo "export set t_Co=256" >> ~/.vimrc

Wednesday, April 28, 2010

convert ext3 -> ext4

umount /dev/sda1
tune2fs -O extents,uninit_bg,dir_index /dev/sda1
e2fsck /dev/sda1
append to kernel boot options in file: /boot/grub/menu.lst rootfstype=ext4

force fsck

sudo touch /forcefsck
or during boot press Alt+F+F to check the filesystem