norman's blog

Notes of an amnesiac.
Never stop thinking.
Find an aesthetic description.

Sunday, May 17, 2009

GVIM Notes

Install on ubuntu8.04:

sudo apt-get install vim-genome

Dependent files:

  • $HOME/.vimrc
  • configuration file
  • $HOME/.viminfo
  • $HOME/.vim/skeleton
  • prewritten content with respect to file types

Binary File Editing

xxd can be used to convert the file into hex dump format:
    
%!xxd
Result should look like this: 0000000: 6262 630a 6465 660a 6768 696b 0aab de0a bbc.def.ghik.... There are two parts: hex part and printable character part. Go back:
    
%!xxd -r

Setup for backup&swap files:

set directory=$HOME/.vim/temp "set folder for storing swap files
set backup                " keep backup file after written
set backupdir=$HOME/.vim/backups  " directory of backup files

Documents:

http://vimdoc.sourceforge.net/
100-vim-commands-every-programmer-should-know
VIM REFERENCE MANUAL by Bram Moolenaar

Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home