2012-12-06 Nikolo Vim/Log: Unterschied zwischen den Versionen

aus Metalab Wiki, dem offenen Zentrum für meta-disziplinäre Magier und technisch-kreative Enthusiasten.
Zur Navigation springenZur Suche springen
(Die Seite wurde neu angelegt: „ 22:19 <+thp> == https://metalab.at/wiki/2012-12-06_Nikolo_Vim == 22:20 < bfo> dont like vi 22:23 <+thp> kurz-ausflug: GNU nano (historic background: UW pico…“)
 
K (+Kat)
Zeile 71: Zeile 71:
 
  03:26 < SvenG> Fri Dec  7 03:26:49 CET 2012
 
  03:26 < SvenG> Fri Dec  7 03:26:49 CET 2012
 
  08:58 <+Rhonda> SvenG: bin eh da
 
  08:58 <+Rhonda> SvenG: bin eh da
 +
 +
[[Kategorie:Protokolle]]

Version vom 21. Januar 2013, 14:22 Uhr

22:19 <+thp> == https://metalab.at/wiki/2012-12-06_Nikolo_Vim ==
22:20 < bfo> dont like vi
22:23 <+thp> kurz-ausflug: GNU nano (historic background: UW pico, Pine, lizenz, etc..)
22:24 <+thp> pico vs. vi comparison: http://guckes.net/pico/vs.vi.html
22:24 <+thp> aber heute: http://guckes.net/vimberlin/small_commands.txt.html
22:27 < bfo> nano i like
22:30 <+thp> bew (begin of word, end of word, ...) -> with shift (BEW) it works on *real* words
22:30 < bfo> what are "FAKE" words :D
22:30 < bfo> xD
22:31 <+thp> this-is-a-fake-word -> bew would jump between "this", "-", "is", "-", ..., BEW jumps over it as a whole
22:33 < bfo> ah so
22:33 <+thp> fX (forward in current line onto character X)
22:33 <+thp> FX (same thing, different direction)
22:33 <+thp> fX (forward in current line *before* character X)
22:34 <+thp> search for string with / and ?, e.g. /foo<ENTER>
22:36 <+thp> after that, n to jump to next match
22:38 <+thp> search for next occurence of word under cursor: *
22:39 <+thp> same in different direction: #
22:39 <+thp> (und hier kommt de.wikipedia Rautezeichen)
22:44 <+thp> reposition current line in center of the screen: zz ("scrolling")
22:45 <+thp> reposition current line in top of screen: zt ("zum top")
22:45 <+thp> reposition current line in top of screen: zb ("zum bottom")
22:54 <+thp> aio / AIO
22:55 <+thp> goto end of line kennen wir meist schon: $
22:55 <+thp> goto beginning of line: 0
22:55 <+thp> goto first non-whitespace character: ^
22:57 <+thp> :help i_CTRL-O
22:57 <+thp> execute one command, return to Insert mode   i_CTRL-O
23:06 <+thp> das punkt-kommando (.)
23:07 <+thp> SvenG: nachher das "." kommando ins tutorial uebernehmen
23:10 <+thp> <irgendwas>iw "inner word"
23:20 <+thp> indenting the current paragraph: >ip
23:20 <+thp> praktisch kein unterschied zu >ap
23:23 <+thp> :help text-objects
23:29 <+thp> :set ff=dos
23:29 <+thp> # speichern mit dos line endings
23:34 < SvenG> :set listchars=tab:»·,trail:·,eol:$
23:35 <+thp> :help virtualedit
23:36 <+thp> :set list -> listcharacters einschalten
--- Day changed Fri Dec 07 2012
00:07 < SvenG> Fri Dec  7 00:07:19 CET 2012
00:26 <+thp> http://linux.die.net/man/8/mdadm
00:28 <+thp> w3m http://linux.die.net/man/8/mdadm ,_ "quasi remote manpage"
00:29 <+thp> K -> keywordprog (standard: man)
00:29 <+thp> also -> c code schreiben -> memset -> cursor drüber -> K -> ... -> PROFIT!!
00:31 < SvenG> Rhonda: wo bist?  huhu!
00:33 < daxim> das neue youtube == krebs krebs krebs krebs krebs krebs krebs krebs
00:34 < SvenG> daxim: huh??
00:34 < daxim> wenn du's noch nicht hast, kriegst du's noch
00:34 < daxim> rolling release, kennste?
00:35 <+thp> daxim: was ist dran anders? oder meinst den flashplayer den eingebetteten?
00:35 < daxim> nein, benutzeröberfläche
00:36 < daxim> http://youtube-global.blogspot.com/2012/12/a-new-look-to-help-you-to-subscribe-and.html
00:37 <+thp> oha jetzt seh ichs :)
00:37 <+thp> find ich jetzt ned so schirch
00:49 <+thp> im visual mode o       "other" im visual mode (wechsle anfang und ende)
00:52 < SvenG> thp: DANKE fuer's dokumentieren! :-)
00:52 <+thp> im visual block mode: $ -> block + überall noch bis zum ende der zeile
00:55 <+thp> registers
01:03 <+thp> ausflug: wie kann man register oder solche sachen zwischen 2 unterschiedlichen vim-prozessen auf einem system sharen, ohne x clipboard und so zu verwenden?
01:03 <+thp> -> über files in /tmp/
01:08 <+thp> aktuellen dateinamen im insert mode -> Ctrl+R %
01:08 <+thp> (weil % register = aktueller dateiname)
01:09 <+thp> Ctrl+R " ist quasi so wie put (p), aber bisserl anders
01:09 <+thp> (und halt im insert mode)
02:00 < SvenG> GUI programs... are not cooperative :-(
02:03 <+thp> .viminfo / marks
02:06 <+thp> copy from/to X11 clipboard (or even system clipboard on non X11 systems)
02:07 <+thp> % wird in der kommandozeile immer zum aktuellen dateinamen expanded
02:10 <+thp> abbreviations: nur auf ganze worte, imap: geht auch 'innerhalb von worten'
03:26 < SvenG> Fri Dec  7 03:26:49 CET 2012
08:58 <+Rhonda> SvenG: bin eh da