I have this keybinding in .vimrc:map + :put=''<cr>map - ddI find it really useful for fast layout and source file cleaning with + and -.But using :put=<cr> adds a line after the current cursor line, whereas dd removes a line at the current cursor.I'd rather have my + keybinding insert a line rather than add it after. What command should I try ?
Adding a line in vim adds it at the line after the cursor, I would like to insert
vim
Edit: Reading it again I gather I misunderstood. But, what about:-putIt inserts line above current.Edit:As do: put!To insert at mark (m[a-z]) one can say 'aput=xx, 'bput=xx etc.