vim

Vi-IMproved.org

detaillierte Tutorials zu vi / vim.

Before we start, let me explain how this little tutorial was started, basically I was tired of explaining vim usage on irc, and found myself doing it repeatedly, at the same time, I was too lazy to sit down and write my own "real" vim tutorial (I ignored the fact that I spent 10x the time explain stuff to people on line than it would have taking me to write a tutorial). So after one conversation explaining a large chunk of vim usage, I pulled it out of the logs, and published it (cropped and modified of course) here.

Tip #330 - how to stop auto indenting : vim online

VIM Autoindent für pasting ausschalten:

:set paste

:set nopaste

http://www.vim.org/tips/tip.php?tip_id=330

vim syntax highlighting aktivieren

bei vim klappt per default unter Ubuntu Edgy Eft (6.10) und anderen derviaten das SyntaxHighlightning nicht. Das liegt an zwei Punkten. Zum einen ist vim per default nicht installiert. Es existiert zwar ein symlink auf vi und auch ein config-file, jedoch müssen wir vim erst einmal installieren

$ sudo apt-get install vim

danach dann ab in's Config-File und das SyntaxHighlightning einschalten

$ sudo vim /etc/vim/vimrc

jetzt einfach die doublequotes vor syntax on entfernen - die gelten in den config files von vim als kommentar-trenner.