1
vote
2answers
106 views

Vim indentation mapping: how to insert a line break that indents up the column I was at?

In Vim, I want to bind a key which will insert a newline and indent that newline up to the column where the cursor used to be. It's a little strange, so let me illustrate: Example: before and after, ...
1
vote
1answer
117 views

vim fortran indentexpr issue

Strange issue here with getting indentexpr=FortranGetFreeIndent() to be set correctly. The first time I open a file (free form, of course), say new.f90, :set gives :set --- Options --- autoindent ...
1
vote
1answer
489 views

nnoremap with vnoremap

with vim, I use object indent. and frequently I use this vii:!sort for sort a block with same indent. I try set this nnoremap nn <leader>ss vii:!sort<cr> but don't work, any ...