Hi,

pwnb0t wrote:
> The problem with using these maps,
> 
> inoremap <CR> <CR><Space><BS>
> nnoremap o o<Space><BS>
> nnoremap O O<Space><BS>
> nnoremap S S<Space><BS>
> 
> is that using == on a line with only indentation (or gg=G for the
> whole document, etc...) will remove that indentation.

that's not a problem caused by these mappings. Indenting always removes
(and re-inserts) spaces at the beginning of a line as necessary. As
there is no text to indent spaces are removed.

> I'm surprised that there is not a simple option to make vim's
> indentation the same as what I would get using Eclipse (or other IDE /
> editor).

Why should Vim keep spaces in otherwise empty lines on indenting? Should
it also *add* spaces in such lines if the preceding is shifted to the
right?

Regards,
Jürgen

-- 
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to