Vim Tips And Tricks
  1. Edit file in HEX binary format
    • vim ~/file.bin
    • <now editing in vi>
    • [esc] :%!xxd
    • <now editing file.bin in hex>
    • <find some innocuous string or rcsid>
    • <change the values on the hex side>
    • [esc] :%!xxd -r
    • [esc] :wq!
  2. Disable backup files *.*~
    • add
      • set nobackup
    • in vimrc file
  3. Set forground/background colors
    • for example:
      • hi normal ctermfg=white ctermbg=black guifg=white guibg=black
      • hi nontext ctermfg=blue ctermbg=black guifg=blue guibg=black
  4. How to indent
  5. Using Tabs
  6. VIM swap files and backup files
  7. Enable code autocomplete in VIM for html/php/c/java editing
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License