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.

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).

I'm working around the gg=G problem by using a macro: nk/^
$<CR>o<esc>kdd  (where <CR> and <esc> are really ^M and ^[ ), but this
isn't perfect because it will keep repeating on lines with no
indentation
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to