Sunday, August 25, 2013

Using Conky as a VIM Cheat Sheet

To become a Vi ninja we need to make sure we have the commands at our finger tips until they become second nature. There are a variety of ways to do this, but in this article I'm going to discusss using Conky as a tool to remember Vi commands. 

First we need to open up the conky config file to edit it. You can use any text editor to do this since it's assumed you're not very good with Vi yet. In this case I'll use geany as a text editor.

k0ncepts@crunchbang:~$ geany /etc/skel/.conkyrc 

I am using Crunch Bang(#!) for this article and #! has a pre configured conky script that I'm just going to edit. In #! you can get to the .conkyrc by right clicking on your Openbox desktop environment > settings > conky > .conkyrc; or geany /etc/skel/.conkyrc. If you're not running #! and want to find out where .conkyrc is located you can use find ~/ -iname .conkyrc. 

 From here we can add our Vi/VIM cheat sheet for example:

VIM Cheat Sheet

${hr}

Inserting Text

${hr}

a:$alignr Append text after cursor

A:$alignr Append text at the end of the line

i:$alignr Insert text before the cursor

I:$alignr Insert text before the curosr 

After you're comfortable with the cheat sheet you've made save .conkyrc, and restart conky. This can be accomplished a couple of ways depending on your distro. I'm just going to show you how to via the cli.

k0ncepts@crunchbang:~$ killall -SIGUSR1 conky


You should now have a nice little cheat sheet to help you become a Vi/VIM ninja! These same concepts can be used for any information you might want at the tip of your finger tips.

Resources:

VIM tutorial

1 comment:

  1. Mà dưới sự nghi hoặc của mấy trăm người này, bầu trời cũng bắt đầu biến hóa, vốn là một cái tiểu tháp nhỏ nhoi đã hóa thành cái tháp lớn mấy chục thước, cùng lúc đó mấy trăm người trong đó cũng xuất hiện ở trên không trung.

    Đi đầu bọn họ là một hắc bào nam tử, ở đằng sau có mười mấy cô gái tuyệt sắc, mà ở sau cùng thì có khoảng ba trăm người mặc khôi giáp màu vàng.

    Nhạc Thành lạnh lẽo nhìn mấy trăm người phía dưới, sau đó ánh mắt của hắn lại dịch chuyển lên trên bầu trời, ở nơi đó lúc này tràn ngập khí tức quỷ dị, Nhạc Thành lạnh lẽo mở miệng nói:
    dongtam
    mu private
    tim phong tro
    http://nhatroso.com/
    nhac san cuc manh
    tổng đài tư vấn luật
    http://dichvu.tuvanphapluattructuyen.com/
    văn phòng luật
    tổng đài tư vấn pháp luật
    thành lập công ty
    http://we-cooking.com/
    chém gió
    trung tâm ngoại ngữ
    - Viễn Cổ Hổ Tộc, Nhạc Thành cùng đội hộ vệ Kim Long đã tới, đụng phải người của Nhạc gia, chúng ta phải dạy dỗ các ngươi cho tốt.

    - Đội hộ vệ Kim Long, động thủ.

    Nhạc Thành ngay sau đó cất tiếng nói nhẹ nhàng, sau đó đưa mắt về mấy trăm người phía sau.

    - Đúng đến người của Nhạc gia, một người cũng không thể lưu lại, giết.

    ReplyDelete