On 09/12/11 09:40, Ben Fritz wrote:
vi"
>i{
I think the most useful to me is the 'it' object (inner tag) and
'at' (a tag) while editing HTML.
I agree that my "most useful" changes depending on my filetype.
For HTML/XML editing, the it/at/i</a< are pretty indispensable,
while the i{/a{/i[/a[/i(/a( family are more useful when coding,
especially in C-like languages. I find myself using the i"/i'
object across the board though, and am regularly thankful to Taro
Muraoka for implementing them at my request. :)
Maybe if I suggest it here, somebody will code my other
text-object want too: an "inner-indent" for coding in Python.
Something that would find all the adjacent lines with the same
indent as the current line so I could have a block like this:
if test1:
some_code()
more_code()
the_cursor_on_this_line()
yet_more_code()
some_code_to_leave_alone()
and do something like
>ii
(ii="inner indent"?) to have it indent all 4 lines inside the
"if" block. Currently I have to move around to the beginning/end
of the indented block semi-manually.
-tim
--
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