You want to insert text at the beginning of each line?  Easiest way
(for me to remember, at least) is to hit shift-v, highlight the lines,
ctrl-v to convert to a block visual mode in the 0th column, shift-i to
start insert, hit " and then esc.  You can play with some of those
steps like using only ctrl-v block visual mode and highlighting
whatever column you want to insert at (to get it not flush-left) or
using a range substitute once you have the lines highlighted (instead
of the block insertion).

On Apr 16, 2011, at 1:45, Barrie Stott <[email protected]> wrote:

> I would like a block quote to use in files like .gvimrc so that I'm not 
> forever typing " at the start of each line; if I justify the line they go all 
> over the place. I tried using the following:
>
>    if 0 == 1
>    ...
>    endif
>
> Unfortunately, this gives errors when sourcing the file if some line (in the 
> ... replacement) begins with a word like else or insert.
>
> If someone has a block quote mechanism they can share that would be 
> wonderful. If not, a way of finding all the words that can give problems 
> (such as else, insert, ...) would be a good second best.
>
> Barrie.
>
> --
> You received this message from the "vim_mac" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php

-- 
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to