Macvim lags while Vim on terminal is buttery smooth












4














I am running OS X Lion 10.7.3 and Macvim runs significantly slower than vim on the terminal for me. All movement commands in Macvim are much slower. Moving up and down in visual mode is equally as laggy. I see none of this lag when using vim from the terminal.
Does anyone know what the reasons may be?
I am running NERDtree on every open tab, and I know this contributes some memory overhead and potentially some slow down; but even when I don't run NERDtree Macvim runs much slower than vim from the terminal.
Any help in solving this would be greatly appreciated.










share|improve this question
























  • Please add a list of the plugins in your ~/.vim/ folder.
    – romainl
    May 30 '12 at 5:56
















4














I am running OS X Lion 10.7.3 and Macvim runs significantly slower than vim on the terminal for me. All movement commands in Macvim are much slower. Moving up and down in visual mode is equally as laggy. I see none of this lag when using vim from the terminal.
Does anyone know what the reasons may be?
I am running NERDtree on every open tab, and I know this contributes some memory overhead and potentially some slow down; but even when I don't run NERDtree Macvim runs much slower than vim from the terminal.
Any help in solving this would be greatly appreciated.










share|improve this question
























  • Please add a list of the plugins in your ~/.vim/ folder.
    – romainl
    May 30 '12 at 5:56














4












4








4


1





I am running OS X Lion 10.7.3 and Macvim runs significantly slower than vim on the terminal for me. All movement commands in Macvim are much slower. Moving up and down in visual mode is equally as laggy. I see none of this lag when using vim from the terminal.
Does anyone know what the reasons may be?
I am running NERDtree on every open tab, and I know this contributes some memory overhead and potentially some slow down; but even when I don't run NERDtree Macvim runs much slower than vim from the terminal.
Any help in solving this would be greatly appreciated.










share|improve this question















I am running OS X Lion 10.7.3 and Macvim runs significantly slower than vim on the terminal for me. All movement commands in Macvim are much slower. Moving up and down in visual mode is equally as laggy. I see none of this lag when using vim from the terminal.
Does anyone know what the reasons may be?
I am running NERDtree on every open tab, and I know this contributes some memory overhead and potentially some slow down; but even when I don't run NERDtree Macvim runs much slower than vim from the terminal.
Any help in solving this would be greatly appreciated.







macos vim terminal osx-lion macvim






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 30 '12 at 5:52









romainl

17.7k23245




17.7k23245










asked May 30 '12 at 2:31









SaamJB

3115




3115












  • Please add a list of the plugins in your ~/.vim/ folder.
    – romainl
    May 30 '12 at 5:56


















  • Please add a list of the plugins in your ~/.vim/ folder.
    – romainl
    May 30 '12 at 5:56
















Please add a list of the plugins in your ~/.vim/ folder.
– romainl
May 30 '12 at 5:56




Please add a list of the plugins in your ~/.vim/ folder.
– romainl
May 30 '12 at 5:56










4 Answers
4






active

oldest

votes


















4














The first thing to do is to start MacVim with mvim -u NONE -U NONE --noplugin, which will prevent any startup files from running. If it is no longer slow to respond, you have a configuration problem somewhere.






share|improve this answer























  • How do I launch macvim this way?
    – SaamJB
    May 30 '12 at 5:00






  • 1




    @SaamJB, MacVim is distributed with a CLI script called mvim. In the terminal, type /path/to/where/you/have/put/mvim -u NONE -U NONE --noplugin.
    – romainl
    May 30 '12 at 6:10










  • I am experiencing the same issues myself and launching without plugins causes a huge speedup. Are there any good ways to narrow done which plugin is causing this bar placing them back in one by one?
    – Patrick O'Doherty
    Jun 20 '12 at 21:06



















3














The Vim you are running in Terminal.app is probably the default Vim provided by Apple. It is built with much less features than MacVim so it's starting and working much faster.



Is MacVim slow in every occasion? When editing any filetype? Only for some filetypes?



Vim is notoriously prone to slowdown when syntax-highlighting very long lines, would that be the case here? Is vim still slow after :syntax off?



Some other things known for slowing down Vim are :set cursorline and :set cursorcolumn.






share|improve this answer





















  • I tried this before reinstalling and it didn't solve the issue. Thanks for the help though.
    – SaamJB
    May 30 '12 at 22:17










  • Doing syntax off definitely, makes MacVim file navigation faster.
    – r3bo0t
    Oct 23 '17 at 6:24



















1














I have no diagnosis for the problem, but reinstalling (potentially updating to a newer version, I don't remember which version I was previously running) MacVim solved almost all of the lag. It isn't quite as fast as Vim on the terminal, but this is to be expected.
It is no longer unbearably slow.






share|improve this answer





























    1














    My problem was mainly that MacVim opened, read, and wrote especially slowly (sometimes upward of 15 seconds). mvim --startuptime revealed that sourcing files from .vimrc and the runtime/ directory was taking most of the time, and the problem was solved by adding the line:



    set rtp+=/usr/local/Cellar/macvim/7.4-73/MacVim.app/Contents/Resources/vim


    As you can see, I am using a Homebrew install of MacVim, and accordingly you should make sure you enter the correct path and version number.






    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%2f430344%2fmacvim-lags-while-vim-on-terminal-is-buttery-smooth%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      4














      The first thing to do is to start MacVim with mvim -u NONE -U NONE --noplugin, which will prevent any startup files from running. If it is no longer slow to respond, you have a configuration problem somewhere.






      share|improve this answer























      • How do I launch macvim this way?
        – SaamJB
        May 30 '12 at 5:00






      • 1




        @SaamJB, MacVim is distributed with a CLI script called mvim. In the terminal, type /path/to/where/you/have/put/mvim -u NONE -U NONE --noplugin.
        – romainl
        May 30 '12 at 6:10










      • I am experiencing the same issues myself and launching without plugins causes a huge speedup. Are there any good ways to narrow done which plugin is causing this bar placing them back in one by one?
        – Patrick O'Doherty
        Jun 20 '12 at 21:06
















      4














      The first thing to do is to start MacVim with mvim -u NONE -U NONE --noplugin, which will prevent any startup files from running. If it is no longer slow to respond, you have a configuration problem somewhere.






      share|improve this answer























      • How do I launch macvim this way?
        – SaamJB
        May 30 '12 at 5:00






      • 1




        @SaamJB, MacVim is distributed with a CLI script called mvim. In the terminal, type /path/to/where/you/have/put/mvim -u NONE -U NONE --noplugin.
        – romainl
        May 30 '12 at 6:10










      • I am experiencing the same issues myself and launching without plugins causes a huge speedup. Are there any good ways to narrow done which plugin is causing this bar placing them back in one by one?
        – Patrick O'Doherty
        Jun 20 '12 at 21:06














      4












      4








      4






      The first thing to do is to start MacVim with mvim -u NONE -U NONE --noplugin, which will prevent any startup files from running. If it is no longer slow to respond, you have a configuration problem somewhere.






      share|improve this answer














      The first thing to do is to start MacVim with mvim -u NONE -U NONE --noplugin, which will prevent any startup files from running. If it is no longer slow to respond, you have a configuration problem somewhere.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Dec 15 at 21:47









      Stephen Kiningham

      1034




      1034










      answered May 30 '12 at 3:22









      Heptite

      14.8k54157




      14.8k54157












      • How do I launch macvim this way?
        – SaamJB
        May 30 '12 at 5:00






      • 1




        @SaamJB, MacVim is distributed with a CLI script called mvim. In the terminal, type /path/to/where/you/have/put/mvim -u NONE -U NONE --noplugin.
        – romainl
        May 30 '12 at 6:10










      • I am experiencing the same issues myself and launching without plugins causes a huge speedup. Are there any good ways to narrow done which plugin is causing this bar placing them back in one by one?
        – Patrick O'Doherty
        Jun 20 '12 at 21:06


















      • How do I launch macvim this way?
        – SaamJB
        May 30 '12 at 5:00






      • 1




        @SaamJB, MacVim is distributed with a CLI script called mvim. In the terminal, type /path/to/where/you/have/put/mvim -u NONE -U NONE --noplugin.
        – romainl
        May 30 '12 at 6:10










      • I am experiencing the same issues myself and launching without plugins causes a huge speedup. Are there any good ways to narrow done which plugin is causing this bar placing them back in one by one?
        – Patrick O'Doherty
        Jun 20 '12 at 21:06
















      How do I launch macvim this way?
      – SaamJB
      May 30 '12 at 5:00




      How do I launch macvim this way?
      – SaamJB
      May 30 '12 at 5:00




      1




      1




      @SaamJB, MacVim is distributed with a CLI script called mvim. In the terminal, type /path/to/where/you/have/put/mvim -u NONE -U NONE --noplugin.
      – romainl
      May 30 '12 at 6:10




      @SaamJB, MacVim is distributed with a CLI script called mvim. In the terminal, type /path/to/where/you/have/put/mvim -u NONE -U NONE --noplugin.
      – romainl
      May 30 '12 at 6:10












      I am experiencing the same issues myself and launching without plugins causes a huge speedup. Are there any good ways to narrow done which plugin is causing this bar placing them back in one by one?
      – Patrick O'Doherty
      Jun 20 '12 at 21:06




      I am experiencing the same issues myself and launching without plugins causes a huge speedup. Are there any good ways to narrow done which plugin is causing this bar placing them back in one by one?
      – Patrick O'Doherty
      Jun 20 '12 at 21:06













      3














      The Vim you are running in Terminal.app is probably the default Vim provided by Apple. It is built with much less features than MacVim so it's starting and working much faster.



      Is MacVim slow in every occasion? When editing any filetype? Only for some filetypes?



      Vim is notoriously prone to slowdown when syntax-highlighting very long lines, would that be the case here? Is vim still slow after :syntax off?



      Some other things known for slowing down Vim are :set cursorline and :set cursorcolumn.






      share|improve this answer





















      • I tried this before reinstalling and it didn't solve the issue. Thanks for the help though.
        – SaamJB
        May 30 '12 at 22:17










      • Doing syntax off definitely, makes MacVim file navigation faster.
        – r3bo0t
        Oct 23 '17 at 6:24
















      3














      The Vim you are running in Terminal.app is probably the default Vim provided by Apple. It is built with much less features than MacVim so it's starting and working much faster.



      Is MacVim slow in every occasion? When editing any filetype? Only for some filetypes?



      Vim is notoriously prone to slowdown when syntax-highlighting very long lines, would that be the case here? Is vim still slow after :syntax off?



      Some other things known for slowing down Vim are :set cursorline and :set cursorcolumn.






      share|improve this answer





















      • I tried this before reinstalling and it didn't solve the issue. Thanks for the help though.
        – SaamJB
        May 30 '12 at 22:17










      • Doing syntax off definitely, makes MacVim file navigation faster.
        – r3bo0t
        Oct 23 '17 at 6:24














      3












      3








      3






      The Vim you are running in Terminal.app is probably the default Vim provided by Apple. It is built with much less features than MacVim so it's starting and working much faster.



      Is MacVim slow in every occasion? When editing any filetype? Only for some filetypes?



      Vim is notoriously prone to slowdown when syntax-highlighting very long lines, would that be the case here? Is vim still slow after :syntax off?



      Some other things known for slowing down Vim are :set cursorline and :set cursorcolumn.






      share|improve this answer












      The Vim you are running in Terminal.app is probably the default Vim provided by Apple. It is built with much less features than MacVim so it's starting and working much faster.



      Is MacVim slow in every occasion? When editing any filetype? Only for some filetypes?



      Vim is notoriously prone to slowdown when syntax-highlighting very long lines, would that be the case here? Is vim still slow after :syntax off?



      Some other things known for slowing down Vim are :set cursorline and :set cursorcolumn.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered May 30 '12 at 6:06









      romainl

      17.7k23245




      17.7k23245












      • I tried this before reinstalling and it didn't solve the issue. Thanks for the help though.
        – SaamJB
        May 30 '12 at 22:17










      • Doing syntax off definitely, makes MacVim file navigation faster.
        – r3bo0t
        Oct 23 '17 at 6:24


















      • I tried this before reinstalling and it didn't solve the issue. Thanks for the help though.
        – SaamJB
        May 30 '12 at 22:17










      • Doing syntax off definitely, makes MacVim file navigation faster.
        – r3bo0t
        Oct 23 '17 at 6:24
















      I tried this before reinstalling and it didn't solve the issue. Thanks for the help though.
      – SaamJB
      May 30 '12 at 22:17




      I tried this before reinstalling and it didn't solve the issue. Thanks for the help though.
      – SaamJB
      May 30 '12 at 22:17












      Doing syntax off definitely, makes MacVim file navigation faster.
      – r3bo0t
      Oct 23 '17 at 6:24




      Doing syntax off definitely, makes MacVim file navigation faster.
      – r3bo0t
      Oct 23 '17 at 6:24











      1














      I have no diagnosis for the problem, but reinstalling (potentially updating to a newer version, I don't remember which version I was previously running) MacVim solved almost all of the lag. It isn't quite as fast as Vim on the terminal, but this is to be expected.
      It is no longer unbearably slow.






      share|improve this answer


























        1














        I have no diagnosis for the problem, but reinstalling (potentially updating to a newer version, I don't remember which version I was previously running) MacVim solved almost all of the lag. It isn't quite as fast as Vim on the terminal, but this is to be expected.
        It is no longer unbearably slow.






        share|improve this answer
























          1












          1








          1






          I have no diagnosis for the problem, but reinstalling (potentially updating to a newer version, I don't remember which version I was previously running) MacVim solved almost all of the lag. It isn't quite as fast as Vim on the terminal, but this is to be expected.
          It is no longer unbearably slow.






          share|improve this answer












          I have no diagnosis for the problem, but reinstalling (potentially updating to a newer version, I don't remember which version I was previously running) MacVim solved almost all of the lag. It isn't quite as fast as Vim on the terminal, but this is to be expected.
          It is no longer unbearably slow.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 30 '12 at 22:16









          SaamJB

          3115




          3115























              1














              My problem was mainly that MacVim opened, read, and wrote especially slowly (sometimes upward of 15 seconds). mvim --startuptime revealed that sourcing files from .vimrc and the runtime/ directory was taking most of the time, and the problem was solved by adding the line:



              set rtp+=/usr/local/Cellar/macvim/7.4-73/MacVim.app/Contents/Resources/vim


              As you can see, I am using a Homebrew install of MacVim, and accordingly you should make sure you enter the correct path and version number.






              share|improve this answer




























                1














                My problem was mainly that MacVim opened, read, and wrote especially slowly (sometimes upward of 15 seconds). mvim --startuptime revealed that sourcing files from .vimrc and the runtime/ directory was taking most of the time, and the problem was solved by adding the line:



                set rtp+=/usr/local/Cellar/macvim/7.4-73/MacVim.app/Contents/Resources/vim


                As you can see, I am using a Homebrew install of MacVim, and accordingly you should make sure you enter the correct path and version number.






                share|improve this answer


























                  1












                  1








                  1






                  My problem was mainly that MacVim opened, read, and wrote especially slowly (sometimes upward of 15 seconds). mvim --startuptime revealed that sourcing files from .vimrc and the runtime/ directory was taking most of the time, and the problem was solved by adding the line:



                  set rtp+=/usr/local/Cellar/macvim/7.4-73/MacVim.app/Contents/Resources/vim


                  As you can see, I am using a Homebrew install of MacVim, and accordingly you should make sure you enter the correct path and version number.






                  share|improve this answer














                  My problem was mainly that MacVim opened, read, and wrote especially slowly (sometimes upward of 15 seconds). mvim --startuptime revealed that sourcing files from .vimrc and the runtime/ directory was taking most of the time, and the problem was solved by adding the line:



                  set rtp+=/usr/local/Cellar/macvim/7.4-73/MacVim.app/Contents/Resources/vim


                  As you can see, I am using a Homebrew install of MacVim, and accordingly you should make sure you enter the correct path and version number.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jun 26 '14 at 4:29

























                  answered Jun 25 '14 at 16:06









                  katriel

                  1306




                  1306






























                      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.





                      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%2fsuperuser.com%2fquestions%2f430344%2fmacvim-lags-while-vim-on-terminal-is-buttery-smooth%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

                      flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                      Mangá

                       ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕