El lunes, 15 de julio de 2013 20:18:48 UTC+2, glts  escribió:
> On Monday, July 15, 2013 7:53:21 PM UTC+2, Javier Mediavilla Vegas wrote:
> > Is there any key stroke that puts the cursor in the column of the first 
> > letter of the above line?
> > Something like - or + but the cursor moves in the line it is.
> > I want this to write something aligned fast.
> > 
> > Example
> > <tab><tab><space><space>  something interesting
> > <keystroke to go below s> write something
> 
> You could use 'autoindent'.
> 
> Or a mapping that copies the exact indentation whitespace from the line
> above it (on one line):
> 
> inoremap <C-S> <Esc>:call 
> setline(".",substitute(getline(line(".")),'^\s*',matchstr(getline(line(".")-1),'^\s*'),''))<CR>I
> 
> Best,
> David

Thanks a lot, autoindent is what I was looking for.

Regards,
Javier

-- 
-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to