Hi!
I just started diving into vi (and just subscribed to the mailing list) and so far learned a basic moving around/editing commands. While I am going through the basic book, is there a fast way to comment out a paragraph with -#
in the same column with the cursor position (indenting the lines accordingly)?
Let's say I have a piece of code:
%table - unless paginate(@clients).nil? %tr %th =t('index.name') %th =t('index.address') %th =t('index.phone') =render :partial => 'client', :collection => @clients
and I want to comment out 9 lines (or a paragraph?) between - unless
and =render :partial
with -#
in one column like that...
%table
-# - unless paginate(@clients).nil?
-# %tr
-# %th
-# =t('index.name')
-# %th
-# =t('index.address')
-# %th
-# =t('index.phone')
-# =render :partial => 'client', :collection => @clients
...and then be able to comment them in again. What command would that be?
Cheers, Alexei
You received this message from the "vim_use" 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
No comments:
Post a Comment