If you like to have an extra window for editing files with vim, you may either install/use GVim or you can simply make vim run inside xterm.
You'll need (at least) VIM 7.3 and XTerm 276.
To open vim in its own window, you may complete your ~/.bashrc with that snippet:
# XVim, what's GVim again? :)
#
# @param ... - files to open
xvim()
{
local F=$@
if [[ `vim --serverlist` == *XVIM* ]]
then
vi --servername xvim --remote ${F[*]} &>/dev/null
else
xterm -class xvim -e "vi --servername xvim ${F[*]}" &>/dev/null &
fi
}
After reloading your bash configuration you may type
$ xvim some-file
to open "some-file". Subsequent invocations will add the given files to the already open window so you can copy/paste between buffers.
The popular Solarized color scheme (http://ethanschoonover.com/solarized) works just fine if you configured xterm AND vim to use 256 colors.
For xterm, open (or create) ~/.Xdefaults and add (or change) the resource termName to xterm-256color. Here's a sample with configurations that go well with the dark flavour of Solarized:
xterm*background: #1c1c1c
xterm*foreground: white
xterm*highlightColor: #323232
xterm*faceName: Luxi Mono
xterm*faceSize: 8
xterm*scrollBar: false
xterm*colorBDMode: false
xterm*visualBell: false
xterm*saveLines: 512
xterm*termName: xterm-256color
For vim, open (or create) ~/.vimrc and add this BEFORE you're setting the color scheme:
syntax on
set background=dark
let g:solarized_termcolors=256
color solarized
If you're using PieDock (https://github.com/markusfisch/PieDock), you probably want the XVim window to have its own icon. To distinguish xvim from xterm, add this alias to ~/.piedockrc:
alias class "xvim" xvim
Now you just need a nice icon called xvim.png in your icon path. Check that SVG icon below.