Welcome to the Linux Foundation Forum!

Unable to paste text in vim on real exam environment

Hi!

I had some problems on exam when I tried to paste text in vim from clipboard. Generally, I used to press mouse right button (in vim insert mode) and either desired text is inserted or context menu appears where I can select menu item "Paste". However, on real exam environment text was not inserted, instead vim entered some weird mode, so I had to reopen the file and write down the text manually character by character. I believe, this is not supposed to be because it's slow and error prone. I haven't have such problems on killer.sh and killercoda.com test environment.

I suspect, there was some special vim settings, because (as I remember) I was able to paste text in terminal command line and (as I remember) vim tried to be smart in yaml indenting and this was disservice: this was not I expected and sometimes I had to fix its indentation.

Also, I don't remember similar problems when I passed CKA and CKAD exams earlier. So, perhaps something was changed during the last half year.

Unfortunately, under time pressure I didn't try to investigate what's going wrong. And probably I would waste my time if I did - this doesn't seem good idea to reconfigure vim (or anything else) every time I enter new host to complete the task.

So, my question is:
How exactly vim (and, maybe, some other software) is configured on real exam environment so I can configure them on my local env the same way and train myself to deal with it?

Thanks,
Dmytro

Best Answer

  • fcioanca
    fcioanca Posts: 2,250
    Answer ✓

    Hi @dmsheiko

    Please direct all exam-related questions and feedback to the Customer Support team at trainingsupport.linuxfoundation.org. Forums are used for course content related questions only, and are not monitored by Certification or Support teams.

    Regards,
    Flavia
    Linux Foundation Education

Answers

  • dmsheiko
    dmsheiko Posts: 28

    The cause of the issue was actually in vim option mouse=a. To fix this, you can either (1) execute command

    :set mouse=
    

    or (2) press RightClick with Shift pressed.
    The drawback of the approach (1) is the fact that each task is to be solved on different hosts and therefore you can't just set this option once.
    The drawback of the approach (2) is the fact that you have to be very accurate and place mouse pointer right to the place where you want to paste the desired text. In rush you can easily paste the text to the wrong place.
    Hope, this information can help someone else because I haven't received the meaningful answer from Help Desk yet.

Categories

Upcoming Training