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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -