My .vimrc file disabled the copy/paste action using mouse right click!

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












Am using an open source .vimrc file from GitHub, but it is screwing up my default mouse right click, copy-paste actions. Whenever I do a right click, it enters into the visual mode and I am having a hard time, doing a copy-paste when I'm inter-working with my Windows machine.



Let me know what .vimrc config lines to delete.



Am running a Red Hat Enterprise Linux Server release 5.4 (Tikanga)










share|improve this question















migrated from programmers.stackexchange.com Apr 24 '15 at 10:54


This question came from our site for professionals, academics, and students working within the systems development life cycle.














  • In the file you propose, lines 105 -- 108 mention the mouse. Have you tried removing these ?
    – Vincent Nivoliers
    Apr 24 '15 at 10:58














up vote
2
down vote

favorite












Am using an open source .vimrc file from GitHub, but it is screwing up my default mouse right click, copy-paste actions. Whenever I do a right click, it enters into the visual mode and I am having a hard time, doing a copy-paste when I'm inter-working with my Windows machine.



Let me know what .vimrc config lines to delete.



Am running a Red Hat Enterprise Linux Server release 5.4 (Tikanga)










share|improve this question















migrated from programmers.stackexchange.com Apr 24 '15 at 10:54


This question came from our site for professionals, academics, and students working within the systems development life cycle.














  • In the file you propose, lines 105 -- 108 mention the mouse. Have you tried removing these ?
    – Vincent Nivoliers
    Apr 24 '15 at 10:58












up vote
2
down vote

favorite









up vote
2
down vote

favorite











Am using an open source .vimrc file from GitHub, but it is screwing up my default mouse right click, copy-paste actions. Whenever I do a right click, it enters into the visual mode and I am having a hard time, doing a copy-paste when I'm inter-working with my Windows machine.



Let me know what .vimrc config lines to delete.



Am running a Red Hat Enterprise Linux Server release 5.4 (Tikanga)










share|improve this question















Am using an open source .vimrc file from GitHub, but it is screwing up my default mouse right click, copy-paste actions. Whenever I do a right click, it enters into the visual mode and I am having a hard time, doing a copy-paste when I'm inter-working with my Windows machine.



Let me know what .vimrc config lines to delete.



Am running a Red Hat Enterprise Linux Server release 5.4 (Tikanga)







linux vim rc






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 30 at 20:21









Michael Prokopec

78716




78716










asked Apr 24 '15 at 10:11









Inian

3,815824




3,815824




migrated from programmers.stackexchange.com Apr 24 '15 at 10:54


This question came from our site for professionals, academics, and students working within the systems development life cycle.






migrated from programmers.stackexchange.com Apr 24 '15 at 10:54


This question came from our site for professionals, academics, and students working within the systems development life cycle.













  • In the file you propose, lines 105 -- 108 mention the mouse. Have you tried removing these ?
    – Vincent Nivoliers
    Apr 24 '15 at 10:58
















  • In the file you propose, lines 105 -- 108 mention the mouse. Have you tried removing these ?
    – Vincent Nivoliers
    Apr 24 '15 at 10:58















In the file you propose, lines 105 -- 108 mention the mouse. Have you tried removing these ?
– Vincent Nivoliers
Apr 24 '15 at 10:58




In the file you propose, lines 105 -- 108 mention the mouse. Have you tried removing these ?
– Vincent Nivoliers
Apr 24 '15 at 10:58










1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted










As @VincentNivoliers said in his comment, your issue comes from the line mouse=a.
It enables the mouse in all modes of vim, ie letting you put the cursor where you click.



a means this is active in all modes. If you don't want vim to care about your mouse, just set mouse= (no value). Then, you could use your mouse to copy'n'paste from your clipboard as in a terminal.



From vim documentation:




The mouse can be enabled for different modes:



 n Normal mode
v Visual mode
i Insert mode
c Command-line mode
h all previous modes when editing a help file
a all previous modes
r for |hit-enter| and |more-prompt| prompt






share|improve this answer




















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f198353%2fmy-vimrc-file-disabled-the-copy-paste-action-using-mouse-right-click%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote



    accepted










    As @VincentNivoliers said in his comment, your issue comes from the line mouse=a.
    It enables the mouse in all modes of vim, ie letting you put the cursor where you click.



    a means this is active in all modes. If you don't want vim to care about your mouse, just set mouse= (no value). Then, you could use your mouse to copy'n'paste from your clipboard as in a terminal.



    From vim documentation:




    The mouse can be enabled for different modes:



     n Normal mode
    v Visual mode
    i Insert mode
    c Command-line mode
    h all previous modes when editing a help file
    a all previous modes
    r for |hit-enter| and |more-prompt| prompt






    share|improve this answer
























      up vote
      3
      down vote



      accepted










      As @VincentNivoliers said in his comment, your issue comes from the line mouse=a.
      It enables the mouse in all modes of vim, ie letting you put the cursor where you click.



      a means this is active in all modes. If you don't want vim to care about your mouse, just set mouse= (no value). Then, you could use your mouse to copy'n'paste from your clipboard as in a terminal.



      From vim documentation:




      The mouse can be enabled for different modes:



       n Normal mode
      v Visual mode
      i Insert mode
      c Command-line mode
      h all previous modes when editing a help file
      a all previous modes
      r for |hit-enter| and |more-prompt| prompt






      share|improve this answer






















        up vote
        3
        down vote



        accepted







        up vote
        3
        down vote



        accepted






        As @VincentNivoliers said in his comment, your issue comes from the line mouse=a.
        It enables the mouse in all modes of vim, ie letting you put the cursor where you click.



        a means this is active in all modes. If you don't want vim to care about your mouse, just set mouse= (no value). Then, you could use your mouse to copy'n'paste from your clipboard as in a terminal.



        From vim documentation:




        The mouse can be enabled for different modes:



         n Normal mode
        v Visual mode
        i Insert mode
        c Command-line mode
        h all previous modes when editing a help file
        a all previous modes
        r for |hit-enter| and |more-prompt| prompt






        share|improve this answer












        As @VincentNivoliers said in his comment, your issue comes from the line mouse=a.
        It enables the mouse in all modes of vim, ie letting you put the cursor where you click.



        a means this is active in all modes. If you don't want vim to care about your mouse, just set mouse= (no value). Then, you could use your mouse to copy'n'paste from your clipboard as in a terminal.



        From vim documentation:




        The mouse can be enabled for different modes:



         n Normal mode
        v Visual mode
        i Insert mode
        c Command-line mode
        h all previous modes when editing a help file
        a all previous modes
        r for |hit-enter| and |more-prompt| prompt







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 24 '15 at 11:50









        apaul

        2,4101712




        2,4101712



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f198353%2fmy-vimrc-file-disabled-the-copy-paste-action-using-mouse-right-click%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown






            Popular posts from this blog

            Peggy Mitchell

            The Forum (Inglewood, California)

            Palaiologos