Tuesday, March 29, 2011

vim reload all buffers/windows

Buffers:
:bufdo e

Windows:
:windo e

#reload syntax
doautoall FileType

Monday, March 14, 2011

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