Let's say I have a text file called index.html.slim that looks like this:  - if post.published?     section.post     h1 = post.title     p = post.description     a = link_to 'Read more', post   What I'd like to do is indent the last 3 lines so that the file looks like this:  - if post.published?     section.post       h1 = post.title       p = post.description       a = link_to 'Read more', post   What's the most efficient way to do this in Vim?   Right now to do this I would go to line 3 with 3  return, i to enter insert mode, spacebar twice to indent two characters and then esc to exit insert mode. To do this on line 4 and 5 I would move down with j and press . followed and then wq to save.  That's a total of 10 keystrokes. I'm sure there's a better way to accomplish this; however, I'm not sure what the best method is.
It should be trivial, and it might even be in the help, but I can't figure out how to navigate it. How do I indent multiple lines quickly in vi?
Say if I have a dropdown in a form and I have another nested class inside of this class . Now what's the best way to access this dropdown from the nested class? I am trying to override the menu.css file in the default Classy theme through my library file. I have read through the documentation, but anything I tried doesn't work.  What would be the correct markup to override or disable this file? They agreed to stay connected for hours in their provisional support group, looking for answers in their counterparts.   I want to change the bold part to say that they all shared the same problem.  Might end up using one of the above, but I feel like I need some more options to weigh in.    Edit for context: they all share the same rare cognitive impairment When you add an image strip to the Video Sequence Editor, it stretches/shrinks your image to fit the full output frame.  How can I add an image at its original resolution?  For example, if I add a 60x60 pixel image, it should appear very small in the final 1080p render. Strange GET requests in logs I'm getting the following GET requests in my apache logs:  109.230.251.14 - - [29/Mar/2011:16:28:18 +0100] "GET http://209.191.92.114/config/pwtoken_get?login=jackmcphee232&amp;src=ygodgw&amp;passwd=e59e2240415e6f1aba3da72b8f189f4e&amp;challenge=9TbU_9yfZhKmzlHtK9X4OkQlesTH&amp;md5=1 HTTP/1.0" 404 1226 "-" "-"   Any idea what it could be and how is that possibly a get request? That IP address seems to point to Yahoo! I'm very confused. What is the best way to filter a Java Collection? I want to filter a java.util.Collection based on a predicate. How to write the word 'smart phone' in a research article? Smart phone Smartphone Smart-phone   I am really looking for some help regarding hyphen (-) issue in text found in research article. Is there any standard method how to use it? Let's start with a definition:     Definition: Let $F$ be a field, $I$ a nonzero ideal in $F[x]$, and $g(x)$ an element of $F[x]$. Then, $I= \langle g(x)\rangle$ if and only if $g(x)$ is a nonzero polynomial of minimum degree in $I$.   Now it gets completely foggy what is meant with "minimum degree".I constantly come across the "minimal polynomial". This seems to be linked, but it seems strange that there is a division here.   Could someone give a pointer to what the second line actually means. Maybe some example or diagram (if possible) would help a lot here. Sharepoint REST API - Using caml query and select/expand to get lookup data In PostgreSQL is the row ordering preserved in functions and CTEs? Indian CGPA to US GPA system So I've been experiencing this in the last few days: sometimes when someone replies to my comment, and I reply to the reply, then the "add/show 1 more comment" link appears immediately after I post my comment. However, when I click it, it disappears and nothing is shown.  I don't think it's that OP is posting two comments of which he deletes the second one, because this has happened to me several times, even when I was replying within 2-3 seconds.  I do, however, believe that this is more or less the same bug as , except that I don't have to reload the page in order the link to be gone, and I also seem to be getting the erroneous behavior only if I reply to a comment which is itself a reply to an earlier comment of mine.  Unfortunately, I wasn't careful enough to take a screenshot last time this happened, but here's what I am talking about for those who like visual demonstration better: Understand the meaning of `$_` Could you explain the following sentences from Bash manual about $_, especially the parts in bold,  maybe with some examples?      At shell startup, set to the absolute pathname used to   invoke the shell or shell script being executed as passed in the environment   or argument list.      Subsequently, expands to the last argument to the previous   command, after expansion.      Also set to the full pathname used to invoke each   command executed and placed in the environment exported to that command.     When checking mail, this parameter holds the name of the mail file. I got 2 ghast tears after I thought I deflected a fireball back at the ghast (with my looting 3 sword).  But I was pretty close, so I might have just hit it. I'm not sure.  If I deflect a fireball with a looting sword and it kills the ghast, do I still get the looting bonus? Singleton: How should it be used My table doesn't fit; what are my options? Computing determinant without expansion $$\begin{align}\mathrm D &amp;= \left|\begin{matrix} (b+c)^2 &amp; a^2 &amp; a^2 \\ b^2 &amp; (a+c)^2 &amp; b^2 \\ c^2 &amp; c^2 &amp; (a+b)^2 \end{matrix}\right|\\ &amp;= (a+b+c)\left|\begin{matrix} b+c - a &amp; a^2 &amp; a^2 \\ b - a -c &amp; (a+c)^2 &amp; b^2 \\ 0 &amp; c^2 &amp; (a+b)^2 \end{matrix}\right| \\ &amp;= (a+b+c)^2\left|\begin{matrix} b+c - a &amp; 0 &amp; a^2 \\ b - a -c &amp; a+c - b &amp; b^2 \\ 0 &amp; c - a-b &amp; (a+b)^2 \end{matrix}\right|\\ &amp;= (a+b+c)^2\left|\begin{matrix} b+c - a &amp; 0 &amp; a^2 \\ 0 &amp; a+c - b &amp; b^2 \\ c - a-b &amp; c - a-b &amp; (a+b)^2 \end{matrix}\right|\end{align}$$  Can $\rm D$ be further simplified without expanding ?  I feel it should be because this was competition question. Put the book back on the table.   I'm having trouble. I think it is a preposition. Simplest code for array intersection in javascript When will my device get the Android 5.0 update (Lollipop)? Android 5.0 (Lollipop) was officially announced on October 15th, 2014.  You can review the high-level changes at the  and the announcement on the official .  Of course, not all devices will get this update right away and others won't get it at all. Each manufacturer and carrier often choose to add their custom modifications which tend to delay the official release.  When will each device get Android 5.0, either officially or unofficially, if ever?  See also: