15:32:41 <FranciscoD> #startmeeting VIM Classroom repeat for APAC time zone
15:32:41 <zodbot> Meeting started Wed Jan 18 15:32:41 2012 UTC.  The chair is FranciscoD. Information about MeetBot at http://wiki.debian.org/MeetBot.
15:32:41 <zodbot> Useful Commands: #action #agreed #halp #info #idea #link #topic.
15:33:00 <FranciscoD> To start with how many folks here for the class room?
15:33:22 * FranciscoD waits for a response
15:33:33 <luceliofreitas> +1
15:33:44 <sayan> FranciscoD, +1
15:33:44 <FranciscoD> ah, at least one ;)
15:33:47 <FranciscoD> okay
15:33:58 <FranciscoD> to start with, please install the required pacakges:
15:34:13 <luceliofreitas> ready.
15:34:35 <makfinsky> +1... sort of. Have $dayjob to attend to.
15:34:36 <FranciscoD> yum install vim vim-X11 vim-vimoutliner
15:34:55 <FranciscoD> please install the related packages if you're not on fedora
15:35:02 * bckurera is started learning
15:35:19 <FranciscoD> I'll wait for you folks to install them
15:35:27 <FranciscoD> let me know when you're done :)
15:35:55 <bckurera> I m already equipped with vim
15:36:00 <luceliofreitas> while waiting....may I start questions?
15:36:21 <FranciscoD> luceliofreitas: yes, sure,
15:36:25 <FranciscoD> you can ask one question ;)
15:36:37 <FranciscoD> (to avoid using too much time)
15:37:07 <FranciscoD> okay, assuming everyones installed the packages,
15:37:12 <FranciscoD> #topic invocation
15:37:35 <luceliofreitas> why vim?  I'm used to kate.
15:37:39 <makfinsky> Done with install.
15:37:42 <FranciscoD> please download this file to a directory
15:37:47 <FranciscoD> luceliofreitas: that question is out of scope, sorry
15:38:09 <FranciscoD> the class is not intended to market vim
15:38:25 <FranciscoD> it is for those who wish to learn how to use it properly, by choice
15:38:49 <luceliofreitas> ok. is my case.
15:38:54 <FranciscoD> please download  this my file: http://ankursinha.fedorapeople.org/fedora-classroom.txt
15:39:00 <chandan_kumar> FranciscoD, +1
15:39:01 <FranciscoD> to some directory,
15:39:09 <FranciscoD> we'll make use of this for excercises
15:39:36 <FranciscoD> once you're done,
15:39:40 <FranciscoD> please open a terminal
15:39:50 <FranciscoD> go to the directory (cd <path>
15:39:53 <FranciscoD> )
15:39:55 <FranciscoD> ls should show the file
15:40:07 <FranciscoD> you can use wget http://ankursinha.fedorapeople.org/fedora-classroom.txt straight away too ;)
15:40:15 <FranciscoD> simplest invocation:
15:40:19 <FranciscoD> vim <filename>
15:40:32 <FranciscoD> that should open the file for you in vim
15:40:40 * FranciscoD waits for folks to complete this step
15:40:52 <makfinsky> Done.
15:40:57 <chandan_kumar> FranciscoD, done
15:41:02 <sayan> done
15:41:21 <FranciscoD> okay, great
15:41:29 <FranciscoD> lets get out of vim
15:41:32 <FranciscoD> press "ZQ"
15:41:40 <FranciscoD> that is capital Z followed by capital Q
15:41:48 <FranciscoD> ZQ = quit without saving
15:42:04 <FranciscoD> you should be back on the terminal
15:42:27 <FranciscoD> any issues here?
15:42:30 * FranciscoD waits
15:42:41 <sayan> no
15:42:50 <FranciscoD> great
15:42:52 <FranciscoD> next
15:42:55 <FranciscoD> reopen the file
15:42:59 <chandan_kumar> no
15:43:38 <FranciscoD> hit ctrl G
15:43:42 <FranciscoD> that will give you info on the file
15:44:11 <FranciscoD> lets quit again, and get back to the terminal
15:44:30 <FranciscoD> c cp fedora-classroom.txt another-classroom.txt
15:44:40 <FranciscoD> cp fedora-classroom.txt another-classroom.txt
15:44:45 <FranciscoD> make a copy
15:45:21 <FranciscoD> vim -p fedora-classroom.txt another-classroom.txt
15:45:30 <FranciscoD> you should see *2* tabs
15:45:39 <FranciscoD> one with each copy of the file
15:45:58 <FranciscoD> to switch b/w tabs:
15:46:04 <FranciscoD> gT and gt
15:46:07 <FranciscoD> try it
15:46:11 * FranciscoD waits
15:46:24 <FranciscoD> gt: next tab
15:46:28 <FranciscoD> gT: previous tab
15:46:40 <FranciscoD> stop me if you run into any issues please
15:46:50 <meka> works for me
15:46:59 <sayan> yes it's working
15:47:02 <JorisL_42> yes
15:47:13 <FranciscoD> great, lets get back to the terminal
15:47:23 <FranciscoD> #topic modes
15:47:46 <FranciscoD> open one of the two files
15:47:57 <FranciscoD> by default, the file is opened in COMMAND mode
15:48:13 <FranciscoD> which is why ZQ didn't insert ZQ into the document like in Notepad
15:48:27 <FranciscoD> also why gT and gt didnt insert text
15:48:38 <FranciscoD> in command mode, the various mappings have various functions
15:48:44 <makfinsky> Kool, tabs!
15:48:59 <FranciscoD> lets see another mode: INSERT mode
15:49:05 <FranciscoD> in insert mode, vim is notepad
15:49:24 <FranciscoD> to enter insert mode, hit "i"
15:49:27 <FranciscoD> small i
15:49:50 <FranciscoD> now, you can insert text, delete text, use the arrow keys to navigate
15:49:55 <FranciscoD> etc etc
15:50:00 <FranciscoD> just like notepad
15:50:23 <FranciscoD> run around a little, edit stuff if you want
15:50:56 <FranciscoD> to get out of insert mode, and back into command mode, hit esc
15:51:01 <FranciscoD> try thsi out
15:51:10 <FranciscoD> switch between them a few times
15:51:21 <FranciscoD> next, a third mode: ex mode
15:51:36 <FranciscoD> in command mode, hit ":"
15:51:38 <FranciscoD> (colon)
15:51:53 <FranciscoD> a colon should pop up in the lower right hand corner
15:52:22 <FranciscoD> write "wq" and hit enter
15:52:31 <FranciscoD> total-> :wq in command mode
15:52:38 <FranciscoD> wq -> save and quite
15:52:41 <FranciscoD> er.. quit
15:52:50 <FranciscoD> so you can use whatever method you are comfortable with
15:53:09 <FranciscoD> to quit without saving, hit ":wq!"
15:53:32 <FranciscoD> any issues
15:53:37 <FranciscoD> ?
15:53:37 * FranciscoD waits
15:53:41 <sayan> no
15:53:46 <chandan_kumar> done
15:53:54 <chandan_kumar> no
15:54:13 <FranciscoD> now, we are going to learn how to use vim correctly, efficiently
15:54:13 <makfinsky> Done.
15:54:24 <JorisL_42> Wait, shouldn't "wq!" be "q!"
15:54:33 <JorisL_42> to quit without saving
15:54:50 <FranciscoD> JorisL_42: ugh, correct
15:55:06 <FranciscoD> thanks
15:55:23 <FranciscoD> okay, open the file, *stay* in command mode
15:55:46 <FranciscoD> h,j,k,l
15:55:57 <FranciscoD> hit these, see what happens
15:56:08 <FranciscoD> j - down
15:56:10 <FranciscoD> k - up
15:56:12 <FranciscoD> h - left
15:56:15 <FranciscoD> l - right
15:56:28 <FranciscoD> the idea is to stay in command mode, and only go into insert mode when necessary
15:56:41 <FranciscoD> now, this moves column by column or line by line
15:56:47 <FranciscoD> what if i want to move quicker?
15:56:51 <FranciscoD> try:
15:57:06 <FranciscoD> w, b
15:57:08 <FranciscoD> e
15:57:14 <FranciscoD> you should move wordwise
15:57:19 <FranciscoD> with subtle differences
15:57:27 <FranciscoD> also try: W, B, E
15:58:04 <FranciscoD> the capital versions ignore punctuations
15:58:12 <FranciscoD> all okay till here?
15:58:18 <JorisL_42> yes
15:58:24 <meka> yes
15:58:33 <sayan> yes
15:58:40 <chandan_kumar> yes
15:58:48 <FranciscoD> try: "G"
15:58:56 <FranciscoD> and then "gg"
15:59:03 <FranciscoD> thats two small gs in quick succession
15:59:26 <FranciscoD> try: 45G
15:59:38 <FranciscoD> goes to line 45
15:59:58 <FranciscoD> try 13| (13 followed by pipe) -> goes to column 13
16:00:17 <FranciscoD> try: "$"
16:00:19 <FranciscoD> and "0"
16:00:24 <FranciscoD> end of line, beginning of line
16:00:54 <FranciscoD> what you need to see is, that you can move around the file using minute key strokes
16:00:55 <bioinfornatics> me i use http://fpaste.org/wLX6/ into vimrc for use my mouse
16:01:16 * bioinfornatics hide
16:01:22 <FranciscoD> bioinfornatics: yeah, some of us dont like to leave the home row on the keyboard to use the mouse
16:01:33 <FranciscoD> ;)
16:01:36 <FranciscoD> wastes time
16:02:01 <FranciscoD> move *sentence* wise:
16:02:23 <FranciscoD> ( and )
16:02:28 <FranciscoD> for forward and backward
16:03:06 <FranciscoD> or, move *paragraph* wise: { and }
16:03:19 <FranciscoD> all okay?
16:03:36 <meka> FranciscoD, is it just me, or ^ should (not) act as 0, too
16:03:58 <FranciscoD> meka: 0 goes to column 0, while ^ goes to the first non spaced letter of the line
16:04:11 <meka> FranciscoD, ok, thanx
16:04:22 <FranciscoD> so if you have something that begins with a tab, 0 will still go to column 0, but ^ will go to 4
16:04:33 <FranciscoD> (depending on the tabwidth)
16:04:48 <meka> ok, I got it
16:05:07 <FranciscoD> now, most of these commands can be prefixed my a number
16:05:18 <FranciscoD> which tells vim how many times to repeat the command
16:05:32 <FranciscoD> so "4j" will take you down *4* lines
16:05:43 <FranciscoD> try it out with the other commands: hjkl web
16:05:50 <FranciscoD> see if it works as expected
16:06:12 <FranciscoD> and stop me if anyone gets stuck
16:06:20 <FranciscoD> remember, we are still in command mode
16:06:38 <FranciscoD> okay
16:06:47 <FranciscoD> if you want to move about even quicker:
16:06:51 <FranciscoD> ctrl f -> forward
16:06:55 <FranciscoD> ctrl b -> backward
16:06:59 <FranciscoD> ctrl u -> up
16:07:03 <FranciscoD> ctrl d -> down
16:07:43 <FranciscoD> will someone tell me the difference in ctrl f and ctrl d?
16:08:08 <FranciscoD> f moves by the screen full iirc
16:08:23 <FranciscoD> while d mimics page down
16:08:43 <FranciscoD> should we look at ex mode then?
16:08:47 * FranciscoD waits for responses and queries
16:08:58 <sayan> what does iirc means?
16:09:09 <FranciscoD> "if i recall correctly"
16:09:11 <FranciscoD> ;)
16:09:25 <FranciscoD> anything else?
16:09:34 <FranciscoD> okay
16:09:51 <FranciscoD> now you already know how to invoke ex mode (use ":")
16:10:05 <FranciscoD> ex mode works on lines
16:10:09 <FranciscoD> try
16:10:12 <FranciscoD> ":40"
16:10:21 <FranciscoD> should take you to line 40
16:10:40 <FranciscoD> most of the vim config commands are given in this mode too
16:10:44 <FranciscoD> for instance,
16:10:45 <FranciscoD> try:
16:10:48 <FranciscoD> ":set nu"
16:10:54 <FranciscoD> that should give you line numbers
16:11:19 <FranciscoD> to remove line numbers:
16:11:19 <FranciscoD> ":set nonu"
16:11:19 <FranciscoD> works for everyone?
16:11:27 <sayan> yes
16:11:29 <JorisL_42> yep
16:11:36 <FranciscoD> #chair FranciscoD_
16:11:36 <zodbot> Current chairs: FranciscoD FranciscoD_
16:11:36 <meka> yes
16:11:38 <chandankumar_> yes
16:11:43 <FranciscoD> great
16:11:58 <FranciscoD> lets see some more complex stuff:
16:12:01 <FranciscoD> try:
16:12:41 <FranciscoD> ":%s/Fedora/The Fedora/"
16:12:55 <FranciscoD> what does that do?
16:13:00 <meka> replace?
16:13:07 <FranciscoD> let me break it up
16:13:11 <FranciscoD> meka: search and replace, yes
16:13:18 <FranciscoD> in ex mode,
16:13:22 <FranciscoD> % -> on every line
16:13:34 <FranciscoD> s -> search and replace (like sed if anyones used it)
16:13:45 <FranciscoD> s/search string/replacement string/
16:14:03 <FranciscoD> thos only replaces the first occurence of "Fedora" on each line
16:14:10 <FranciscoD> to replace *all* of them
16:14:15 <FranciscoD> ":%s/Fedora/The Fedora/g"
16:14:21 <FranciscoD> notice the "g" at the end
16:14:32 <FranciscoD> oh, and hit "u" to undo ;)
16:14:37 <FranciscoD> and "ctrl r" to redo
16:14:40 * FranciscoD waits
16:14:51 <FranciscoD> you will notice that vim highlights the string you are searching for
16:14:59 <FranciscoD> so "Fedora" should be highlighted
16:15:14 <FranciscoD> to only search, not replace:
16:15:25 <FranciscoD> "/search string" in command mode
16:15:28 <cc__> wait
16:15:31 <FranciscoD> (no : needed"
16:15:36 <FranciscoD> cc__: yep?
16:16:02 <cc__> difference between ":%s/Fedora/The Fedora/" and....
16:16:14 <cc__> ":%s/Fedora/The Fedora/g"
16:16:31 <FranciscoD> the first one only replaces the *first* occurence in each line
16:16:39 <FranciscoD> the second replaces all occurences
16:17:04 <FranciscoD> so:
16:17:26 <FranciscoD> ?searchstring -> backword search
16:17:42 <FranciscoD> to move to the next matching string, use "n"
16:17:49 <FranciscoD> to move to the previous match, use "N"
16:17:54 <FranciscoD> (small and capital)
16:18:02 * FranciscoD waits so you folks can try it out
16:18:05 <FranciscoD> 2 minutes
16:18:09 <cc__> ok
16:18:19 <FranciscoD> any queries?
16:18:27 <sayan> no
16:18:51 <meka> cool, it works
16:18:56 <FranciscoD> grat
16:18:58 <FranciscoD> great
16:19:01 <FranciscoD> hit gg0
16:19:09 <FranciscoD> to go to the first word of our document
16:19:33 <FranciscoD> "/asdfsadfdsf" -> to search for dummy string and unhighlight fedora
16:19:41 <FranciscoD> (if it is still highlighted)
16:19:54 <FranciscoD> on "Fedora", hit *
16:19:59 <FranciscoD> (star)
16:20:01 <FranciscoD> what happens?
16:20:27 <meka> highlight Fedora
16:20:30 <FranciscoD> great
16:20:40 <FranciscoD> to forward search the word under cursor
16:20:54 <FranciscoD> now, gg0 again
16:21:07 <FranciscoD> "2fR"
16:21:18 <meka> FranciscoD, what's the difference between gg and gg0?
16:21:21 <FranciscoD> thats a two followed by an "f" followed by capital "R"
16:21:35 <FranciscoD> meka: iirc, gg doesnt change what column you are on
16:21:42 <FranciscoD> ah, it does
16:21:46 <FranciscoD> my bad
16:21:51 <meka> ok
16:21:54 <FranciscoD> gg -> starting of doc, no 0 required
16:22:12 <FranciscoD> so, try out the "2fR" and tell me where your cursor goes ;)
16:22:46 <meka> hm
16:22:50 <meka> jumps to Red Hat
16:22:54 <FranciscoD> graet
16:23:00 <FranciscoD> did it do that for everyone?
16:23:05 * FranciscoD hopes it dic
16:23:08 <FranciscoD> *did
16:23:23 <bitlord> yes
16:23:26 <FranciscoD> i'll break it up ->
16:23:34 <FranciscoD> 2 -> repeat 2 times
16:23:39 <FranciscoD> f -> find forward
16:23:45 <FranciscoD> R -> occurence of R
16:23:55 <FranciscoD> so 2fR goes to the second occurence of capital r forwards
16:24:00 <FranciscoD> clear?
16:24:04 <meka> cool
16:24:11 <FranciscoD> now, when you're on Red, hit #
16:24:13 <FranciscoD> (hash)
16:24:18 <FranciscoD> this is a backward search
16:24:57 <FranciscoD> now, more on insertions
16:25:03 <FranciscoD> hit :
16:25:06 <FranciscoD> I
16:25:09 <FranciscoD> capital I
16:25:21 <FranciscoD> write something, hit esc to return to command mode
16:25:25 <FranciscoD> then, try:
16:25:34 <FranciscoD> o and O
16:25:36 <FranciscoD> write something, hit esc to return to command mode
16:25:42 <FranciscoD> try:
16:25:45 <FranciscoD> a and A
16:26:01 <FranciscoD> all of these are easy to remember
16:26:04 <FranciscoD> i -> insert
16:26:07 <FranciscoD> a -> append
16:26:13 <FranciscoD> o -> no clue ;)
16:26:23 <FranciscoD> but I'm hoping its working for you folks
16:26:39 * FranciscoD waits while folks try it all out
16:26:58 <cc__> i vs a ?
16:27:08 <FranciscoD> i inserts at cursor location
16:27:12 <FranciscoD> a inserts at next location
16:27:22 <FranciscoD> also try "rP"
16:27:25 <FranciscoD> r -> replace
16:27:33 <cc__> k
16:27:39 <FranciscoD> it will replace the letter under cursor with "P"
16:27:55 <FranciscoD> okay,
16:28:00 <FranciscoD> #topic copy paste!
16:28:12 <FranciscoD> on any line, hit "yy"
16:28:20 <FranciscoD> thats small y twice, in command mode
16:28:34 <FranciscoD> then:
16:28:38 <FranciscoD> ":tabedit temp"
16:28:46 <FranciscoD> it should open a new tab, called temp
16:28:56 <FranciscoD> works for everyone?
16:29:06 <bitlord> yes
16:29:07 <FranciscoD> you can also open an existing file -> :tabedit <filename>
16:29:15 <FranciscoD> tab completion works btw
16:29:26 <bioinfornatics> ok
16:29:27 <FranciscoD> great, in the new tab, hit "p"
16:29:36 <FranciscoD> small "p"
16:29:46 <FranciscoD> y -> yank (copy)
16:29:47 <FranciscoD> p -> paste
16:29:49 <FranciscoD> works for all?
16:29:55 <FranciscoD> p -> paste after cursor
16:30:01 <FranciscoD> P -> paste before cursor
16:30:21 <FranciscoD> go back to the previous tab (remember gt?)
16:30:26 <FranciscoD> lets copy multiple lines
16:30:41 <FranciscoD> ":29,45y"
16:30:49 <FranciscoD> that will copy lines 25 through 45
16:30:58 <FranciscoD> please go to the other tab and paste them
16:31:06 <FranciscoD> and get back to this tab
16:31:12 * FranciscoD waits
16:31:12 <FranciscoD> any issues?
16:31:14 <FranciscoD> any one stuck?
16:31:34 <FranciscoD> logs will be available, please dont make notes ;)
16:31:36 <sayan> it works
16:31:52 <FranciscoD> we have 15 more minutes, so lets hurry it up ;)
16:32:01 <FranciscoD> now, another way of copying ->
16:32:06 <FranciscoD> ":34"
16:32:11 <FranciscoD> to go to line 34
16:32:14 <FranciscoD> or 34G
16:32:19 <FranciscoD> whatever you're comfortable with
16:32:27 <FranciscoD> "ma"
16:32:34 <FranciscoD> -> mark this spot as "a"
16:32:41 <FranciscoD> then go down to line 45
16:32:48 <FranciscoD> and try:
16:33:00 <FranciscoD> "y'a"
16:33:08 <FranciscoD> thats y followed by a single quote followed by a
16:33:18 <FranciscoD> -> yank from marker "a" till here
16:33:34 <FranciscoD> please go paste these in the new tab and get back
16:34:34 <FranciscoD_> all okay?
16:34:44 <FranciscoD_> any issues anyone?
16:35:05 <sayan> no
16:35:57 <FranciscoD_> now, like you have y for yank,
16:36:05 <FranciscoD_> you have d for "delete"
16:36:19 <FranciscoD_> the catch is, it isnt really delete, as much it is "cut"
16:36:56 <FranciscoD> try cutting a few lines
16:37:06 <FranciscoD> to cut *one* letter, use "x"
16:37:16 <FranciscoD> x -> looks like a cross ;)
16:37:40 <FranciscoD> now, more fun!
16:37:44 <FranciscoD> to change stuff, you have "c"
16:37:47 <FranciscoD> go to any word,
16:37:50 <FranciscoD> hit "cw"
16:38:00 <FranciscoD> the word goes, and you are in insert mode
16:38:08 <FranciscoD> so you can easily change stuff
16:38:17 <FranciscoD> 2cw will change *two* words
16:38:20 <FranciscoD> etc
16:38:29 <FranciscoD> 2cb
16:38:31 <FranciscoD> 5ce
16:38:33 <FranciscoD> tc
16:38:36 <FranciscoD> *etc
16:38:44 <FranciscoD> (various combinations as required)
16:38:58 <FranciscoD> all okay?
16:39:10 <FranciscoD> 2 minutes for questions, clarifications
16:39:15 * FranciscoD waits
16:40:17 <FranciscoD_> anyone?
16:40:21 <bioinfornatics> k
16:40:24 <FranciscoD_> continue then?
16:40:31 <meka> ok
16:40:40 <FranciscoD_> #topic macros!
16:41:02 <FranciscoD> so, open yet another dummy tab
16:41:13 <FranciscoD> ":tabedit anotherdummy"
16:41:29 <FranciscoD> write -> 1
16:41:31 <FranciscoD> thats ONE
16:41:36 <FranciscoD> and return to command mode
16:41:40 * FranciscoD waits again
16:41:48 <FranciscoD> for folks to catch up
16:41:53 <FranciscoD> this is important stuff
16:41:59 <FranciscoD> comes in handy
16:42:16 <FranciscoD> keeping the cursor at 1, try:
16:42:24 <FranciscoD> hit -> "qa"
16:42:37 <FranciscoD> it should say "recording" in the bottom left corner
16:43:02 <FranciscoD> yy
16:43:03 <meka> ok
16:43:07 <FranciscoD> to yank the "1"
16:43:09 <FranciscoD> p
16:43:13 <FranciscoD> to paste it in the next line
16:43:35 <FranciscoD> hit "ctrl a"
16:43:52 <FranciscoD> the freshly pasted "1" should increase to 2
16:43:54 <FranciscoD> q
16:44:01 <FranciscoD> the "recording" should vanish
16:44:09 <FranciscoD> what we've done is create a macro
16:44:24 <FranciscoD> we copied 1 to a new line, incremented it by one useing "ctrl a"
16:44:50 <FranciscoD> on the second line, hit "@a"
16:44:55 <FranciscoD> thats AT
16:45:05 <FranciscoD> followed by the macro name we used, which was "a"
16:45:15 <FranciscoD> it should give you "3" in the next line
16:45:23 * FranciscoD waits for response/confirmation
16:45:41 <meka> ok
16:46:35 <FranciscoD> grat
16:46:42 <FranciscoD> s/grat/great!
16:46:49 <FranciscoD> now, you know how to use macros
16:46:57 <FranciscoD> what if we want to write 1-30?
16:47:05 <FranciscoD> on the 3, hit "27@a"
16:47:19 <FranciscoD> basically calling the macro *27* times
16:47:30 <FranciscoD> #chair FranciscoD_
16:47:30 <zodbot> Current chairs: FranciscoD FranciscoD_
16:47:41 <FranciscoD> did that work?
16:49:00 <meka> yes
16:49:03 * FranciscoD waits for le response
16:49:07 <FranciscoD> meka: great
16:49:09 <sayan> yes
16:49:09 <FranciscoD> othes?
16:49:27 <FranciscoD> okay, I'm going to end here
16:49:37 <FranciscoD> what you must remember ->
16:49:47 <FranciscoD> do not use Insert mode unless necessar
16:49:57 <FranciscoD> vim is way more powerful, and efficient in the other modes
16:50:18 <FranciscoD> if you learn how to use vim correctly, you can edit docs, source etc with just a few key strokes
16:50:26 <FranciscoD> ten minutes for questions
16:50:38 <FranciscoD> #topic questions -> 10 minutes
16:50:52 <FranciscoD> go ahead :) shoot
16:50:58 <meka> FranciscoD, does "qa" means "macro named a"?
16:51:05 <FranciscoD> yes
16:51:12 <meka> I mean, we could name it anything else?
16:51:16 <FranciscoD> sure
16:51:24 <meka> and is it limited to one char?
16:51:30 <FranciscoD> any of the 26 alphas I guess
16:51:35 <FranciscoD> other than q probably
16:51:46 <bioinfornatics> you not talk about template ( ~/.vim/templates )
16:51:47 <FranciscoD> meka: to my knowledge yes,
16:51:55 <bioinfornatics> me i use one for my d programm
16:51:58 <bioinfornatics> http://fpaste.org/yFAn/
16:52:01 <FranciscoD> bioinfornatics: thats advanced stuff
16:52:04 <bioinfornatics> ok
16:52:13 <FranciscoD> i didnt talk about vimrc, or even programming with vim
16:52:22 <bioinfornatics> true
16:52:27 <FranciscoD> the class is intended to teach folks how to use vim correctly
16:52:38 <FranciscoD> *not* like NOTEPAD
16:52:43 <bioinfornatics> whre we can getthe log ?
16:53:05 <FranciscoD> bioinfornatics: I'll give you the link once class finishes and zodbot spews them out
16:53:10 <FranciscoD> btw,
16:53:20 <FranciscoD> ZQ -> quit without save
16:53:24 <FranciscoD> ZZ -> save and quit
16:53:25 <sayan> if i use only :tabedit, it creates a tab with No Name. can we change its name later?
16:53:29 * FranciscoD forgot to mention it
16:53:37 <FranciscoD> sayan: yes
16:53:57 <FranciscoD> ":w filename"
16:53:57 <FranciscoD> will save the current tab (buffer) to "filename"
16:54:26 <sayan> ok
16:54:27 <FranciscoD> you should all run "vimtutor" in the terminal and take the tutorial
16:54:41 <FranciscoD> its very simple, gives you some practice in navigation etc
16:55:06 <FranciscoD_> and the vim help docs themselves
16:55:17 <FranciscoD> another source of knowledge is google of course
16:55:19 <FranciscoD_> for help on any command
16:55:23 <FranciscoD_> :h command
16:55:25 <FranciscoD_> for instance
16:55:27 <FranciscoD_> try:
16:55:38 <FranciscoD_> :h y
16:55:53 <FranciscoD_> it will open the help for yank in a split window
16:56:00 <FranciscoD_> like a text document
16:56:26 <FranciscoD> theres also a great book -> "vim and vi" that you can refer to
16:56:36 * FranciscoD is going to close the class now
16:56:45 <FranciscoD> thanks all for coming, hope you learnt something new!
16:56:49 <FranciscoD> #endmeeting