andrewferk


Joined 2 years ago
Homeworks submitted:
Homework comments:
9
2

About Me

No description provided.

Classes

Learning Vim from the inside

Class status: Established
Role: Student
. 52% complete

Submitted Assignments

Learning Vim from the inside: Lesson 3, HW 4

by running grep -R '~/\.vimrc' . I was able to locate a starting point of main.c.

The main() function in main.c executes source_startup_scripts() in main.c. source_startup_scripts() will try to execute a startup file in this order (once a file is found, the rest are ignored):

  • environment variable VIMINIT
  • user vimrc file (s:.vimrc for Amiga, ~/.vimrc otherwise)
  • second user vimrc file ($VIM/.vimrc for Dos)
  • environment variable EXINIT
  • user exrc file (s:.exrc for Amiga, ~/.exrc otherwise)
  • second user exrc file ($VIM/.exrc for Dos)

andrewferk 2 years ago
Learning Vim from the inside: Lesson 3, HW 3
  • I found this site very helpful: http://vim.wikia.com/wiki/Browsing_programs_with_tags
  • how does ":make" work? - ":make ***" eventually executes ex_make() found in 'quickfix.c'. This function executes make *** on the shell.
  • what's the name of the C routine which implements it? - the path to ex_make() is the following: main_loop() -> normal_cmd() -> do_cmdline() -> do_one_cmd() -> ex_make()... so it is implemented by do_one_cmd() in 'ex_docmd.c'
  • what are the side effects of ":make" on your current files/buffers? - Line 3937 in of ex_make() in quickfix.c calls autowrite_all(). Using Ctrl+] I was able to jump to the function and it is noted to "flush all buffers, except the ones that are readonly". So, the side effects would be that all buffers are flushed (except those that are readonly :).
  • Extra Credit: whats that 'eap' argument all about? What is it and what does it contain? - eap is an exarg struct which is used to pass around Ex commands. By using :tag exarg, you can quickly look it up.

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

$ grep -R 'mailing' . ... ./README.txt:There are five mailing lists for Vim: ...


./README.txt


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

Again, running a minimal setup of Debian 5.0 Lenny. I had to first install some packages: sudo aptitude install libncurses-dev build-essential. After that, ./configure and make worked.


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

I am doing these assignments on a minimal install of Debian 5.0 Lenny, and updatedb was not available. I installed locate, sudo aptitude install locate, then I ran sudo updatedb.


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

First time using id-utils. Nothing too difficult.


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

No problems on Debian Lenny


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

hg clone https://vim.googlecode.com/hg/ vim .. 2257 files updated, 0 files merged, 0 files removed, 0 files unresolved


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

sudo aptitude install mercurial id-utils


andrewferk 2 years ago