Why I love Vim: It’s the lesser-known features that make it so amazing
1–6 of 6 posts
Re: Why I love Vim: It’s the lesser-known features that make it so amazing
#2Excellent introduction to vim.
The preface is a bit too long, IMO. But great job.
Re: Why I love Vim: It’s the lesser-known features that make it so amazing
#3Cool. I wasn't aware of opening files in tabs.
Re: Why I love Vim: It’s the lesser-known features that make it so amazing
#4{O\begin{quote}}o\end{quote}{v}:normal A \\
Replacing with escape and with return/enter, what does this sequence of keys do?
Re: Why I love Vim: It’s the lesser-known features that make it so amazing
#5{O\begin{quote} }o\end{quote} {v}:normal A \\ Replacing with escape and with return/enter, what does this sequence of keys do?
I don't ever use :normal so not sure but wrap the curreny block in a tex quote environment and append a backslash to the end of each(?) line?
If so I'd probably use a substitution after the visual select to do that instead since I use those more often.
Re: Why I love Vim: It’s the lesser-known features that make it so amazing
#6{O\begin{quote} }o\end{quote} {v}:normal A \\ Replacing with escape and with return/enter, what does this sequence of keys do?
Seems to:
1. move up a text block ({)
2. enter insert mode on line above cursor (O)
3. enter a LaTeX string (\begin{quote})
4. exit insert mode, move down a block of text (})
5. enter insert mode one line below the cursor and enter the closing LaTeX string (\end{quote})
6. exit insert mode and move back up to the start of the text block, enter visual mode, move back to the bottom of the text block and also selecting it ({v})
7. while still in visual mode run a normal mode command that moves to the end of the line and inserts "\\" at the end of the line.
So the output would be
\begin{quote} \\
\end{quote} \\