
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 6,958 Views
Hi Team,
When you copy a YAML file from the Openshift documentation to the Linux `vim ` file, the indentation of the file changes, and lot of time is spent to indent the YAML file .
Any suggestions to resolve the issue. Thanks!
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 6,921 Views
Hello @sakshi-80 !
Thanks for reaching out !
You might want to refer this thread : https://learn.redhat.com/t5/Containers-DevOps-OpenShift/Copy-tex-into-yaml/m-p/37084/emcs_t/S2h8ZW1h...
To turn off autoindent when you paste code in vim mode :
press esc then :set paste
then press i ( to insert mode ) - Notice the “- - INSERT (paste) - -” at the bottom of the Vim window.
then paste the yaml code. See if this helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 6,904 Views
Thanks for the prompt reply. `:set paste` in the `vim` is working

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 6,942 Views
Hi,
Do you browse docs and copy YAML from your host machine or workstation machine directly from lab environment? I personally copy YAML from docs in workstation machine, paste and modify it in gedit editor and jus then paste it to vim. By doing it this way there is no indentation issues at all.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 6,922 Views
Hello @sakshi-80 !
Thanks for reaching out !
You might want to refer this thread : https://learn.redhat.com/t5/Containers-DevOps-OpenShift/Copy-tex-into-yaml/m-p/37084/emcs_t/S2h8ZW1h...
To turn off autoindent when you paste code in vim mode :
press esc then :set paste
then press i ( to insert mode ) - Notice the “- - INSERT (paste) - -” at the bottom of the Vim window.
then paste the yaml code. See if this helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 5,652 Views
Thanks! this is helpful for me too.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 5,590 Views
glad it helped @IvanLabrovic !

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 6,905 Views
Thanks for the prompt reply. `:set paste` in the `vim` is working

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 2,449 Views
I can't paste yaml file on Yaml console it is straing i am trying aroud 30m

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 2,429 Views
@Artemis-NASA have you tried the solution that I provided in the above thread ?