Saturday, 5 December 2015
I have to confess that it took me a few tries before getting the entire command sequence right. First, I forgot the colon in "firstname.lastname@example.org:jiayeerawr/GlacieRaiN" and had a slash in place of it. Second, I forgot the remote name in the same command. Apparently "git add" doesn't seem to detect any of my minor mistakes only until I try to pull and of course there is no such remote name. Haven't found out why but I'll be happy to be spoon-fed with the answer. My guess would be that in "git remote add ... ...", the second "..." is optional because the first "..." would have to be the remote name and the remote name can be set to point (not sure about this choice of word) to the repository URL upon another command which would set up this relationship..., or mapping.
My focus for today is on Vim. I don't think I want to memorise every basic command so diligently because it will be boring if I don't have to actually do the job. So nowadays I am using vim more often (also because it is more convenient in terms of opening an editing mode) and when I need to do something, I will search for the shortcuts in the user-friendly tip sheet written by Greg Hewgill on stackoverflow.
So far, in addition to the "i", Esc, "dd", and ":wq", in the past few days, I used and learnt:
1. Shift + G -> last line
2. 123G -> go to line 123
3. :/word -> search forward for a line with "word"
I may have interpreted the commands slightly wrongly too, but I am sure I can clarify those upon future observations. I am lagging behind the people in my cohort who studied the other programming module in the usage of Vim because they used it for the entire semester while I use it... largely for fun.