indentation - Is there a way to tell Vim not to remove indent that was automatically added when I moving the cursor? -
for example: write line , press enter. if auto indent turn on cursor moves next line same indent current line. if move cursor sonewhere else , return place there no indent. want save indent added automatically.
if insert text on line, if delete it, vim keep indent. type xbackspace on new line keep indent after leaving it. or automatically mapping:
inoremap <enter> <enter>x<bs>
Comments
Post a Comment