June 2010
1 post
make vim stupider
I get frustrated when vim is too smart, especially when it reindents things without me asking. This is a minimal, dumb indent system that I might be happy with. We’ll see. function! SimpleIndent() return indent(prevnonblank(v:lnum-1)) endfunction function! MyO() let line = line(".") let i = indent(nextnonblank(line)) call append(line-1, repeat(" ", i)) call cursor(line,...
Jun 29th