/home/drscream

  • home
  • blog
  • gallery
  • studies
  • about
  • vim dynamic fileheader

    I’ve currently programming some small bash scripts and I would use my default Frubar fileheader for every script:

    "--------------------------------------------------------------------
    " $Id: vimrc.header,v 0.1 2008/01/23 16:05:22 drscream Exp $
    " Copyright 2008 Frubar Network (drscream@frubar.net)
    "--------------------------------------------------------------------
    

    At this point i’ve written a small vimrc file, thats allows me to insert the header by typing ,fh. The vimrc.header file can be found here!

    To use this script insert the following in your ~/.vimrc file:

    " Source vimrc.header file, code header function
    let VIM_HEADER=expand("~/.vim/vimrc.header")
    if filereadable(VIM_HEADER)
            exe "source " VIM_HEADER
    endif
    

    Posted

    January 23, 2008

    Tags

    bash, linux, vim

  • linux dot files

    Now i’ve created a small subdomain for some interesting linux (and other system) dot files:
    dot.cyber-tec.org

    I hope someone need the stuff ;-)

    Posted

    January 7, 2008

    Tags

    bash, bsd, linux, vim

  • Remove unwanted spaces

    If you have a document thats full of spaces or empty lines, edit it with Vim:

    Eliminate empty lines:

    :v/\S/d

    Eliminate spaces at the beginning of each line:

    :%s/^\s\+//

    Eliminate spaces at the end of the each line:

    :%s/\s\+$//

    Posted

    October 30, 2007

    Tags

    bash, bsd, linux, vim

  • Vim cheat code sheet

    Nobody can or want use Vi or Vim. Now with this nice easy code sheet it is no problem to use Vim:

    vi-vim_cheat_sheet.png

    Posted

    May 19, 2007

    Tags

    cheatcode, linux, sheet, vim