using maps to get to destination

March 31, 2009 at 2:08 pm (fedora, linux, programming) (, )

How can I start this post? I can’t think of any “proper” way, so I will just jump in.

If you are fed up with pressing Esc every time, you can change it to something more “useful,” like Caps Lock. Doing it is very easy:

- in your ~/.Xmodmap file enter these lines: (if it doesn’t exist, create it)

clear Lock
keycode 0×42 = Escape

and if you restart X, you will have your new Esc key!

note: thanks to heftig (#fedora-social @ freenode) for telling me about this.

Permalink Leave a Comment

VIM revealed

March 9, 2008 at 3:43 pm (Uncategorized) (, )

VIM ( Vi IMproved ) is a simple but very powerful text editor which you can use it to write scripts and generally anything. It’s just a text editor which happened to be so powerful. You can use it inside the terminal which gives you the ability to use it in a non-GUI interface ( which I’m going to try now ;) ) and it has its OWN shortcuts. Weird but understandable shortcuts which are again, easy to get used to. Editing is efficient in it, as I found it more efficient in writing C++ codes.

Anyway, for more information you can see www.VIM.org

For downloading it, if you use linux ( at least one of the most popular distros ) you just need to search in your package manager. For example, in case of fedora, the package is: VIM-X11

now, some quick tips to get started:

- if you want to get started, in terminal, type: $ vimtutor

- with ESC key, you go to the normal mode.

- with ‘i’ key, you can start inserting code.

- for saving: go to normal mode and type ‘:w’ without quotations

- for exiting VIM, go to normal mode and type ‘:q!’ without quotations

There are a lot of useful shortcuts which you can learn through VIM tutor ( vimtutor ). Also there is an IRC channel, #vim, if you would like to join and learn more about VIM through live talk.

Leave comments on whether you liked VIM or not ;)

Permalink 2 Comments