Dummkopf's guide to vim

Dotan Cohen dotancohen at gmail.com
Wed Sep 3 17:47:37 UTC 2008


2008/9/3 Knapp <magick.crow at gmail.com>:
> sudo vim <file-name>
>
> dhtn keys more the cursor around and the arrow keys work too.
>
> dd deletes current line
>
> 5dd deletes 5 lines including current line.
>
> r<new charater> changes character under cursor
>
> i enters edit mode. (edit mode is just like Kate)
>
> esc exits edit mode
>
> :wq (saves file and quits)
>
> :w <new-file-name>
>
> :q! quits no matter what is wrong, like an unsaved file.
>
> I bet there is not much more that you do with Kate most of the time. Am I wrong?
>
> For more check this out.
> http://tips.webdesign10.com/another-vim-tutorial
>

Thanks, Douglas. How about logging into a remote server from my
bookmarks within VIM, browsing to the file I need, and editing it on
the server? While flipping tabs between a local file and a remote
file?

Yes, that is part of my daily workflow. Kate does all that.

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

ä-ö-ü-ß-Ä-Ö-Ü


More information about the kubuntu-users mailing list