Advanced Command-Line Editing

•September 11, 2007 • Leave a Comment

: Today I passed my 117-201 exam and now I play a little bit with the Vi
: key bindings on Zsh. In Bash you can set them with set -o vi, and in Zsh you
: can set them additionally with setopt vi.
:
: I want to get to the point of command line editing above the basic
: tab complete and history browsing, searching and minor corrections. So I
: start witch a little example:
:
: I want to rename a file with the following naming scheme:
:
: someID_filename.txt to filename.txt
:
: After my fulminant efficient Vim key combination for table editing, (see this article)
: I challenge everybody to find the shortest key combination to fulfill this
: task.
:
: I start with an self-deprating solution:
:
: First I type:
: mv someID_filname.txt
:
: Now the count begins:
:
: <Space><Esc>T_y$$p<Enter>
:
: This makes a total of 9 characters which i have to store in my brain. As I want
: to have my head free for more complicated tasks, of course this has to
: be optimized dramatically :)
:
: Have fun.

GoogleEarth Freezes With Actual Ati-Drivers (No More)

•August 30, 2007 • Leave a Comment

There is a library missing, libGL.so.1 see this site for instructions.

Edit: Everything works fine for me now with latest googleearth (4.2.0198.2451 (beta)), no need to copy this library anymore as googleearth starts then in software-emulation mode.

Insert Current Date In Vim

•August 27, 2007 • 3 Comments

If you write a ToDo list or a schedule in vim, you probably want to insert the current date or the date after one week from now. Here is how to do:

:r !date

or to add one week to the current date:

:r !date -d “today 1 week”

enjoy :)

technorati tags:, ,

Move files beginning with an hyphen

•August 19, 2007 • 2 Comments

This one is easy, as escaping does not work you have to prefix the filename with two hyphens like so:

mv — -some_silly_filename_with_an_hyphen_before_it

technorati tags:, ,

Cannot connect with ipw2000 module

•August 11, 2007 • Leave a Comment

Building a new kernel i couldn’t connect annymore to my wlan-router, allthough i had the same configuration as my other kernel. Whell, almost, under Cryptographic options i build the AES cipher algorithms as module therefore the ieee80211_crypt_ccmp module could not find it , though i made a depmod. It gave me the errormessage:

ieee80211_crypt_ccmp: could not allocate crypto API aes

So apparently you have to build this into the kernel for wlan

technorati tags:, ,

gcc-config error: Could not run/locate “gcc”

•July 23, 2007 • 2 Comments

Whenever switching gcc-versions, for example from 4.1 to 4.2 dont forget to do a:

gcc-config i686-pc-linux-gnu-4.2.0

technorati tags:, , ,

Append yanked and deleted lines to registers in vim

•July 13, 2007 • Leave a Comment

Man, this never has an ending, so you already yank some files like this into a register:

“b3yy

“B3yy appends the next 3 lines into the b-register

technorati tags:, ,

Vim commandline

•July 13, 2007 • Leave a Comment

Today i have my LPIC 101 exam, and while learning i tripped over this two examples:

vi +”set number” somefile.txt

vi +/sometext somefile.txt

The first one opens a file and numbers it and the second one opens a file and highlights the searchterm.

technorati tags:, , ,

mysqlimport: Error: The table ’sometable’ is full, when using table: sometable

•July 6, 2007 • Leave a Comment

If this error drives you mad on Gentoo, change this line in your /etc/mysql/my.cnf (if you use inoDB):

innodb_data_file_path = ibdata1:10M:autoextend:max:128M

and delete the :max:128M part or raise it up to your liking.

technorati tags:, , ,

SQSWSE

Browsing the Rails API with elinks using rails.vim

•June 29, 2007 • Leave a Comment

Add this line to your .vimrc

command -bar -nargs=1 OpenURL :!elinks <args>

technorati tags:, , ,