Chris Jean's Blog

Linux, WordPress, programming, anime, and other stuff.
twitter
rss

Archive for VIM

In many of my Tips ‘n Tricks or tutorial posts, I have commands that involve editing/creating files in Vi. For those that have never used Vi, it can be a daunting experience trying Vi for the first time.

There are many holy wars fought over the best editor to use from the *nix command line. I won’t claim that Vi is the best; rather, Vi is simply what I’m used to, it’s powerful, and it is always available on servers that I work on.

In order to best help those that don’t know how to use Vi but are interested in learning, this will serve as a very brief tutorial on how to get started.

Continue reading “Using Vi/Vim as a Command Line Editor”

Here’s a quick tip for those who may use VIM to edit files locally or remotely. If you are having problems getting your backspace to work (I.E. backspace doesn’t work at all in VIM), then the following tip is for you.

I found out that this is really easy to fix. When you edit a document, type in the following:

:set bs=2

Then hit enter. Now try to use your backspace key while in insert mode.

Once you confirmed that this works for you, add this option to your .vimrc file:

  1. vi ~/.vimrc
  2. Add
    set bs=2
  3. Save and close file

This will set your user to have that option set by default when you edit documents.