>want to write script >open vim >always prompts me to donate for ugandian kids >idontcare,jpg >:set smartindent >vim indents by a tab size instead of four spaces >annoyed but continue anyway >save file as myscript.java >go to directory where file was saved >no file to be found >additionally vim has not deleted the autistic files it creates for muh speed >use notepad >everything works fine
emacs has a far more intelligent indenting system than vim. when you hit tab, it figures out how much a particular line should be indented and moves it to the right indentation, whether that be forwards or backwards.
however you'll have to explicitly tell emacs how you want things formatted, otherwise it will use its default assumptions which are often pretty weird (especially for c and java)