Wednesday, October 30, 2013

Re: Smart horizontal cursor positioning (like in an addon for Sublime Text)?

On 2013-10-29 05:40, Jeraldine Walter wrote:
> I want to switch back to gVim after working with ST for a while.

Welcome back :-)

> There is an addon for ST, that provides a really slick way of
> placing the cursor on "the right" position when using cursor up /
> down after editing text on a line.
>
> This is the link that explains what it does (in a better way):
> http://www.sublimetext.com/forum/viewtopic.php?f=4&t=2529&start=0
>
> Does anyone know if something like this exists for (g)vim as well?

It sounds like you want to use control+G control+J in Insert mode:

:help i_CTRL-G_CTRL-J

which will move the cursor down one line but horizontally position you
based on your insertion-start point.

-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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: