sedrik


Joined 2 years ago
Homeworks submitted:
Homework comments:
4
3

About Me

No description provided.

Classes

Learning Vim from the inside

Class status: Established
Role: Student
. 23% complete

Submitted Assignments

Learning Vim from the inside: Lesson 3, HW 3

Starting from the src/README.txt under the Ex command section we can start looking for do_cmdline() or since we know :make is only one command jump stright to do_one_cmd() as mentioned in that section. do_one_cmd will eventually after some parsing and possible recursive calls call ex_make (:make has been replaced by :makeprg by this time).

The buffer will be flushed by the autowrite_all function.

eap is a struct defined in ex_cmds.h:1130 (or around that line depending on version of vim) that hold the arguments for the Ex command.

Now I don't know if it is just me that have not read C in a while but it is quite hard to follow. Thankfully by a mixture of tag jumping, documentation reading and cheating (read other peoples solutions) I came to this conclusion. :(


sedrik 2 years ago
Learning Vim from the inside: Lesson 3, HW 2

Tried using both lid and grep. For me grep is easier, I guess I would have to start going through the files I get from lid if I had continued on that path.

sedrik@localhost ~/temp/vim $ lid mail
mail           README.txt src/INSTALLvms.txt runtime/doc/{develop,filetype,gui_x11,insert,intro,mbyte,mlang,options,os_mint,os_vms,quickref,quotes,recover,rileft,sponsor,starting,syntax,todo,uganda,usr_10,usr_23,usr_28,usr_30,usr_31,usr_41,usr_44,usr_45,version5,version6,vi_diff}.txt runtime/indent/README.txt src/po/{README,README_mingw}.txt
sedrik@localhost ~/temp/vim $ grep mail *
Binary file ID matches
README.txt:There are five mailing lists for Vim:
README.txt:For more info and URLs of the archives see "http://www.vim.org/maillist.php".
README.txt:  from (to avoid spam mail).
README.txt:If you want to join a maillist, send a message to
README.txt:	Bram Moolenaar		E-mail:	Bram@vim.org

sedrik 2 years ago
Learning Vim from the inside: Lesson 2, HW 1

Ran it on the entire vim directory, can't say I'm to fond of the idutlis package though, annoying commands and horrible standard output (yeah can probably be changed but so far I see no reason to even bother ^^).

a little grep magic can probably do everything I need.


sedrik 2 years ago
Learning Vim from the inside: Lesson 1, HW 1

the idutils package is called just that (idutils) in gentoo FYI


sedrik 2 years ago