I'm fairly new to Vim, but have now used it quite a bit for a month or two. I'm using a couple of different plugins, but are now stuck at a problem...
Whenever I'm coding in Python, I like to have :set autoindent on, so I don't have to make all the indentations, whenever I make a new line. BUT! ... If I, for example, write this code:
def foo(self):
pass
def __init__(self):
var = 42
And hit 'Enter' in Vim after '42', then my autoindent will automatically make two tab-indentations, which I have automatically converted to 6 spaces (I can't remember if it's the :set tabstop=3 or if it's the :set shiftwidth=3 that does it). But let's say, that I'm regretting that new line, and want to delete it. I'm used to other IDEs (like Eclipse or Dreamweaver, where I could just backspace once, which would delete the new line and take me to the end of the line above.
I know, that I could just press 'dd', and delete the line... But I'm in 'Insert-mode', when I do it. So in order to do that, I would have to exit Insert-mode, press 'dd', and then enter Insert-mode again, which in my opinion, is quite a hassle for such a simple operation.
Oh Holy Vim-masters in the sky! Hear my prayers and help me enhance my Vim-mechanics!