Disable scrolling when launching an app (Vim) inside Windows console window












0















In Windows, when I'm using the command prompt and launch Vim, I have a habit of trying to scroll through files using the mouse-wheel (which of course works in gVim but not inside the terminal).



Is there a way to configure the Windows command prompt to automatically disable scrolling (with both the scrollbar and the mousewheel) whenever an application is launched that runs inside the console window itself?



Ideally, there should be a way to have Windows "intelligently" determine whether scrolling should be disabled (since some applications, such as ssh, benefit from having scrolling available). Failing that, since Vim is the only application I use that behaves poorly when I try to scroll within it, I'd like to be able to just specify that launching Vim should always disable scrolling.










share|improve this question


















  • 1





    set mouse=a ?? :help mouse in Vim

    – lornix
    Jun 27 '14 at 19:03











  • @lornix Nope, that's inside Vim and controls how Vim responds to scrolling.

    – Kyle Strand
    Jun 27 '14 at 19:35











  • Your question makes it difficult to determine whether you're looking to disable vim scrolling, or disable the terminal window scrolling. Not that 'cmd.exe' is much of a terminal to begin with. Have you looked at the cmd.exe command line options? cmd /? ?

    – lornix
    Jun 27 '14 at 19:38











  • I said "configure the Windows command prompt to automatically disable scrolling," and that's what I meant. And yes, I realize cmd.exe is a lousy terminal (to be charitable), but it turns out it actually does support precisely the feature I wanted; see my answer below.

    – Kyle Strand
    Jun 27 '14 at 19:39
















0















In Windows, when I'm using the command prompt and launch Vim, I have a habit of trying to scroll through files using the mouse-wheel (which of course works in gVim but not inside the terminal).



Is there a way to configure the Windows command prompt to automatically disable scrolling (with both the scrollbar and the mousewheel) whenever an application is launched that runs inside the console window itself?



Ideally, there should be a way to have Windows "intelligently" determine whether scrolling should be disabled (since some applications, such as ssh, benefit from having scrolling available). Failing that, since Vim is the only application I use that behaves poorly when I try to scroll within it, I'd like to be able to just specify that launching Vim should always disable scrolling.










share|improve this question


















  • 1





    set mouse=a ?? :help mouse in Vim

    – lornix
    Jun 27 '14 at 19:03











  • @lornix Nope, that's inside Vim and controls how Vim responds to scrolling.

    – Kyle Strand
    Jun 27 '14 at 19:35











  • Your question makes it difficult to determine whether you're looking to disable vim scrolling, or disable the terminal window scrolling. Not that 'cmd.exe' is much of a terminal to begin with. Have you looked at the cmd.exe command line options? cmd /? ?

    – lornix
    Jun 27 '14 at 19:38











  • I said "configure the Windows command prompt to automatically disable scrolling," and that's what I meant. And yes, I realize cmd.exe is a lousy terminal (to be charitable), but it turns out it actually does support precisely the feature I wanted; see my answer below.

    – Kyle Strand
    Jun 27 '14 at 19:39














0












0








0








In Windows, when I'm using the command prompt and launch Vim, I have a habit of trying to scroll through files using the mouse-wheel (which of course works in gVim but not inside the terminal).



Is there a way to configure the Windows command prompt to automatically disable scrolling (with both the scrollbar and the mousewheel) whenever an application is launched that runs inside the console window itself?



Ideally, there should be a way to have Windows "intelligently" determine whether scrolling should be disabled (since some applications, such as ssh, benefit from having scrolling available). Failing that, since Vim is the only application I use that behaves poorly when I try to scroll within it, I'd like to be able to just specify that launching Vim should always disable scrolling.










share|improve this question














In Windows, when I'm using the command prompt and launch Vim, I have a habit of trying to scroll through files using the mouse-wheel (which of course works in gVim but not inside the terminal).



Is there a way to configure the Windows command prompt to automatically disable scrolling (with both the scrollbar and the mousewheel) whenever an application is launched that runs inside the console window itself?



Ideally, there should be a way to have Windows "intelligently" determine whether scrolling should be disabled (since some applications, such as ssh, benefit from having scrolling available). Failing that, since Vim is the only application I use that behaves poorly when I try to scroll within it, I'd like to be able to just specify that launching Vim should always disable scrolling.







windows vim cmd.exe






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jun 27 '14 at 17:39









Kyle StrandKyle Strand

616731




616731








  • 1





    set mouse=a ?? :help mouse in Vim

    – lornix
    Jun 27 '14 at 19:03











  • @lornix Nope, that's inside Vim and controls how Vim responds to scrolling.

    – Kyle Strand
    Jun 27 '14 at 19:35











  • Your question makes it difficult to determine whether you're looking to disable vim scrolling, or disable the terminal window scrolling. Not that 'cmd.exe' is much of a terminal to begin with. Have you looked at the cmd.exe command line options? cmd /? ?

    – lornix
    Jun 27 '14 at 19:38











  • I said "configure the Windows command prompt to automatically disable scrolling," and that's what I meant. And yes, I realize cmd.exe is a lousy terminal (to be charitable), but it turns out it actually does support precisely the feature I wanted; see my answer below.

    – Kyle Strand
    Jun 27 '14 at 19:39














  • 1





    set mouse=a ?? :help mouse in Vim

    – lornix
    Jun 27 '14 at 19:03











  • @lornix Nope, that's inside Vim and controls how Vim responds to scrolling.

    – Kyle Strand
    Jun 27 '14 at 19:35











  • Your question makes it difficult to determine whether you're looking to disable vim scrolling, or disable the terminal window scrolling. Not that 'cmd.exe' is much of a terminal to begin with. Have you looked at the cmd.exe command line options? cmd /? ?

    – lornix
    Jun 27 '14 at 19:38











  • I said "configure the Windows command prompt to automatically disable scrolling," and that's what I meant. And yes, I realize cmd.exe is a lousy terminal (to be charitable), but it turns out it actually does support precisely the feature I wanted; see my answer below.

    – Kyle Strand
    Jun 27 '14 at 19:39








1




1





set mouse=a ?? :help mouse in Vim

– lornix
Jun 27 '14 at 19:03





set mouse=a ?? :help mouse in Vim

– lornix
Jun 27 '14 at 19:03













@lornix Nope, that's inside Vim and controls how Vim responds to scrolling.

– Kyle Strand
Jun 27 '14 at 19:35





@lornix Nope, that's inside Vim and controls how Vim responds to scrolling.

– Kyle Strand
Jun 27 '14 at 19:35













Your question makes it difficult to determine whether you're looking to disable vim scrolling, or disable the terminal window scrolling. Not that 'cmd.exe' is much of a terminal to begin with. Have you looked at the cmd.exe command line options? cmd /? ?

– lornix
Jun 27 '14 at 19:38





Your question makes it difficult to determine whether you're looking to disable vim scrolling, or disable the terminal window scrolling. Not that 'cmd.exe' is much of a terminal to begin with. Have you looked at the cmd.exe command line options? cmd /? ?

– lornix
Jun 27 '14 at 19:38













I said "configure the Windows command prompt to automatically disable scrolling," and that's what I meant. And yes, I realize cmd.exe is a lousy terminal (to be charitable), but it turns out it actually does support precisely the feature I wanted; see my answer below.

– Kyle Strand
Jun 27 '14 at 19:39





I said "configure the Windows command prompt to automatically disable scrolling," and that's what I meant. And yes, I realize cmd.exe is a lousy terminal (to be charitable), but it turns out it actually does support precisely the feature I wanted; see my answer below.

– Kyle Strand
Jun 27 '14 at 19:39










1 Answer
1






active

oldest

votes


















2














Apparently cmd.exe does intelligently disable scrolling by default, actually; my problem was that I was inside an ssh session, so Windows didn't actually know I was running vim. (I doubt there's a way to make the scrollbar disappear when you launch vim inside an ssh session inside cmd.exe.)






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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%2fsuperuser.com%2fquestions%2f774231%2fdisable-scrolling-when-launching-an-app-vim-inside-windows-console-window%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









    2














    Apparently cmd.exe does intelligently disable scrolling by default, actually; my problem was that I was inside an ssh session, so Windows didn't actually know I was running vim. (I doubt there's a way to make the scrollbar disappear when you launch vim inside an ssh session inside cmd.exe.)






    share|improve this answer




























      2














      Apparently cmd.exe does intelligently disable scrolling by default, actually; my problem was that I was inside an ssh session, so Windows didn't actually know I was running vim. (I doubt there's a way to make the scrollbar disappear when you launch vim inside an ssh session inside cmd.exe.)






      share|improve this answer


























        2












        2








        2







        Apparently cmd.exe does intelligently disable scrolling by default, actually; my problem was that I was inside an ssh session, so Windows didn't actually know I was running vim. (I doubt there's a way to make the scrollbar disappear when you launch vim inside an ssh session inside cmd.exe.)






        share|improve this answer













        Apparently cmd.exe does intelligently disable scrolling by default, actually; my problem was that I was inside an ssh session, so Windows didn't actually know I was running vim. (I doubt there's a way to make the scrollbar disappear when you launch vim inside an ssh session inside cmd.exe.)







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jun 27 '14 at 19:37









        Kyle StrandKyle Strand

        616731




        616731






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • 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%2fsuperuser.com%2fquestions%2f774231%2fdisable-scrolling-when-launching-an-app-vim-inside-windows-console-window%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

            How to make a Squid Proxy server?

            Is this a new Fibonacci Identity?

            19世紀