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

python - Mongodb How to add addtional information when aggregating? -

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

ruby - Net::HTTP extremely slow responses for HTTPS requests -