In my vi editor, at last I'm getting this line
~
~ 1 sample.tf [tf,utf-8,unix] 0x0 10,1 All
sample.tf is my file name. Due to this I'm facing indentation issue. Whenever I'm pasting something in the file its look like this.
cluster_id = "xxxx-xxx"
engine = "redis"
node_type = "cache.t2.medium"
num_cache_nodes = 1
parameter_group_name = "default.redis5.0.cluster.on"
I think you have indent
mode or auto indent
or sth... .
To turn off autoindent when you paste code use paste mode
in INSERT MODE
:
:set paste
and for disable:
:set nopaste
or toggle
:
set pastetoggle
then paste it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.