pbr


Joined 2 years ago
Homeworks submitted:
Homework comments:
5
83

About Me

Old dude, w/ 30+ years UNIX/Linux industry experience.

Classes

Reddit Learns Programming

Class status: Under Construction
Role: Student
. 0% complete

Guitar for Beginners - Playing Pink Floyd

Class status: Established
Role: Student
. 0% complete

Learning Vim from the inside

Class status: Established
Role: Creator
. 29% complete

Submitted Assignments

Learning Vim from the inside: Lesson 4, HW 3

So there are some additional VimScript tutorials on the IBM site; enjoy!

http://www.ibm.com/developerworks/linux/library/l-vim-script-1/index.html

http://www.ibm.com/developerworks/linux/library/l-vim-script-2/index.html

http://www.ibm.com/developerworks/linux/library/l-vim-script-3/index.html

http://www.ibm.com/developerworks/linux/library/l-vim-script-4/index.html

http://www.ibm.com/developerworks/linux/library/l-vim-script-5/index.html


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

OK so I guess we need to jump-start this one. Here goes.

* Whats the difference between a buffer and a window?

This one I'm not going to give away; do a little research, it's not hard.

* What are the main states a buffer can be in?

See snippet of buffer.c below

* What are the main states a window can be in?

OK so this one's tougher... no easy answer from what I can see. Rendered-vs-hidden? Folded? What's a frame vs. a window?

* What's the name of the little window at the bottom of the screen?

They refer to it as the "command line"

* What are tabs in Vim? What's the -p option all about?

Also left as exercises for students.

/* from buffer.c
 *
 * Each buffer can be in one of these states:
 * never loaded: BF_NEVERLOADED is set, only the file name is valid
 *   not loaded: b_ml.ml_mfp == NULL, no memfile allocated
 *       hidden: b_nwindows == 0, loaded but not displayed in a window
 *       normal: loaded and displayed in a window
 */

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

So although I've been able to compile vim since day one of this course, I've not been able to successfully compile gvim, or run 'vim -g'.

It took me a while to unravel why. Below are the steps I had to take on Ubuntu 9.10. Without the various libraries I needed from the build-dep package, even when I used --enable-gui=whatever it didn't take. But, as usual with Linux, a little persistence paid off.

Hope this helps if you're experiencing similar difficulties!

sudo apt-get build-dep
cd src; ./configure -prefix=$HOME --with-features=huge \
 --enable-gui=gtk2 --enable-cscope --enable-pythoninterp \
 --enable-fontset
make
make install

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

So the main thing to learn here is that there's a README for the Vim package and separate README for the source code directory 'src'.

They BOTH deserve to be read through thoroughly.


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

You might find the following useful if you prefer reading documentation online instead of from the command line:

http://www.gnu.org/software/idutils/manual/


pbr 2 years ago