Vim vim vim

June 24th, 2008 | by guda |

I cant live without vim. Today is the day I understand this and have install vim on my home windows:) I hope that no one will start it accidently.

Ok. Here i will keep track of the commands that I use in vim.

configuring vim and nice screenshots tutorial

Here is more on the topic

  • Open many files in tabs:  vim -p file*
  • Search & Replace:  %s/something/nothing/g
  • cntrl-space in vim is: cntr-n /  cntrl-p
    load words from all pl/pm files: ctags *.p?
  • windows: :split / :vsplit
    cntr-w - switch
    :close
    :only
  • tabs:
  • set tabstop=2
    set autoindent
    << >>  size is controller:
    shiftwidth=4
  1. 3 Responses to “Vim vim vim”

  2. By guda on Aug 12, 2008 | Reply

    wrap long lines in vim:
    :set wrap

  3. By guda on Oct 27, 2008 | Reply

    set encoding=”utf8″
    set background=dark /light

  4. By guda on Oct 27, 2008 | Reply

    Replacing special characters:

    Putting this line in your .vimrc or .exrc file.
    :set magic

    Next, do:
    :s/,/,^M/g

    To get the ^M character, type ctrl-v and hit enter.

Post a Comment

Trackback URL for this post:
http://www.gudasoft.com/uncategorized/06/24/76/vim-vim-vim/2008/trackback