Vim + iTerm2 color issues












2















I have trouble with the right Vim configuration. I'm using the latest version of Vim as well as the latest version of iTerm2.



I try to get the solarized colorscheme working, but without luck so far.



Here you can see an image with (top left, top right, bottom left, bottom right) iTerm2, Terminal.app, MacVim and my iTerm2 settings.



terminals + settings



I also imported the solarized color scheme in iTerm2.



Here the link to my .vimrc










share|improve this question

























  • JIC, are you sure, "solarized" is 256-color scheme?

    – Maximus
    Feb 1 '13 at 20:55











  • it's not necessarily just solarized which is not working. I get 3 different results for every scheme :(

    – Stefan Schmidt
    Feb 1 '13 at 21:23











  • I have this exact problem; font colors do change between colorschemes, but not the background…

    – cemerick
    Apr 3 '13 at 17:53
















2















I have trouble with the right Vim configuration. I'm using the latest version of Vim as well as the latest version of iTerm2.



I try to get the solarized colorscheme working, but without luck so far.



Here you can see an image with (top left, top right, bottom left, bottom right) iTerm2, Terminal.app, MacVim and my iTerm2 settings.



terminals + settings



I also imported the solarized color scheme in iTerm2.



Here the link to my .vimrc










share|improve this question

























  • JIC, are you sure, "solarized" is 256-color scheme?

    – Maximus
    Feb 1 '13 at 20:55











  • it's not necessarily just solarized which is not working. I get 3 different results for every scheme :(

    – Stefan Schmidt
    Feb 1 '13 at 21:23











  • I have this exact problem; font colors do change between colorschemes, but not the background…

    – cemerick
    Apr 3 '13 at 17:53














2












2








2


1






I have trouble with the right Vim configuration. I'm using the latest version of Vim as well as the latest version of iTerm2.



I try to get the solarized colorscheme working, but without luck so far.



Here you can see an image with (top left, top right, bottom left, bottom right) iTerm2, Terminal.app, MacVim and my iTerm2 settings.



terminals + settings



I also imported the solarized color scheme in iTerm2.



Here the link to my .vimrc










share|improve this question
















I have trouble with the right Vim configuration. I'm using the latest version of Vim as well as the latest version of iTerm2.



I try to get the solarized colorscheme working, but without luck so far.



Here you can see an image with (top left, top right, bottom left, bottom right) iTerm2, Terminal.app, MacVim and my iTerm2 settings.



terminals + settings



I also imported the solarized color scheme in iTerm2.



Here the link to my .vimrc







vim terminal shell macvim iterm






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 17 '17 at 18:32









Donald Duck

1,47061831




1,47061831










asked Feb 1 '13 at 18:39









Stefan SchmidtStefan Schmidt

11112




11112













  • JIC, are you sure, "solarized" is 256-color scheme?

    – Maximus
    Feb 1 '13 at 20:55











  • it's not necessarily just solarized which is not working. I get 3 different results for every scheme :(

    – Stefan Schmidt
    Feb 1 '13 at 21:23











  • I have this exact problem; font colors do change between colorschemes, but not the background…

    – cemerick
    Apr 3 '13 at 17:53



















  • JIC, are you sure, "solarized" is 256-color scheme?

    – Maximus
    Feb 1 '13 at 20:55











  • it's not necessarily just solarized which is not working. I get 3 different results for every scheme :(

    – Stefan Schmidt
    Feb 1 '13 at 21:23











  • I have this exact problem; font colors do change between colorschemes, but not the background…

    – cemerick
    Apr 3 '13 at 17:53

















JIC, are you sure, "solarized" is 256-color scheme?

– Maximus
Feb 1 '13 at 20:55





JIC, are you sure, "solarized" is 256-color scheme?

– Maximus
Feb 1 '13 at 20:55













it's not necessarily just solarized which is not working. I get 3 different results for every scheme :(

– Stefan Schmidt
Feb 1 '13 at 21:23





it's not necessarily just solarized which is not working. I get 3 different results for every scheme :(

– Stefan Schmidt
Feb 1 '13 at 21:23













I have this exact problem; font colors do change between colorschemes, but not the background…

– cemerick
Apr 3 '13 at 17:53





I have this exact problem; font colors do change between colorschemes, but not the background…

– cemerick
Apr 3 '13 at 17:53










3 Answers
3






active

oldest

votes


















0














You have set t_Co=256, try these lines in addition.



set term=xterm
set t_Co=256
let &t_AB="e[48;5;%dm"
let &t_AF="e[38;5;%dm"





share|improve this answer

































    0














    I added CSApprox, and everything just worked.






    share|improve this answer
























    • Some mode details? As it stands, the answer isn't exactly informative...

      – vonbrand
      Apr 3 '13 at 20:13











    • More details? I'm afraid I'm new to both vim and iterm, so I don't have much in the way of explanation. However, I do know that installing that plugin allowed me to set the color scheme to whatever I wanted and get the same results in iTerm as I do in MacVim.

      – cemerick
      Apr 4 '13 at 0:22



















    0














    What background colour of solarized you want to use? (light or dark)



    If you want dark background, put set bg=dark in your .vimrc



    If you want light background, put set bg=light in your .vimrc



    I saw that in comment of your .vimrc line #74






    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%2f545167%2fvim-iterm2-color-issues%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      You have set t_Co=256, try these lines in addition.



      set term=xterm
      set t_Co=256
      let &t_AB="e[48;5;%dm"
      let &t_AF="e[38;5;%dm"





      share|improve this answer






























        0














        You have set t_Co=256, try these lines in addition.



        set term=xterm
        set t_Co=256
        let &t_AB="e[48;5;%dm"
        let &t_AF="e[38;5;%dm"





        share|improve this answer




























          0












          0








          0







          You have set t_Co=256, try these lines in addition.



          set term=xterm
          set t_Co=256
          let &t_AB="e[48;5;%dm"
          let &t_AF="e[38;5;%dm"





          share|improve this answer















          You have set t_Co=256, try these lines in addition.



          set term=xterm
          set t_Co=256
          let &t_AB="e[48;5;%dm"
          let &t_AF="e[38;5;%dm"






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 1 '13 at 21:25

























          answered Feb 1 '13 at 20:54









          MaximusMaximus

          18.3k1474103




          18.3k1474103

























              0














              I added CSApprox, and everything just worked.






              share|improve this answer
























              • Some mode details? As it stands, the answer isn't exactly informative...

                – vonbrand
                Apr 3 '13 at 20:13











              • More details? I'm afraid I'm new to both vim and iterm, so I don't have much in the way of explanation. However, I do know that installing that plugin allowed me to set the color scheme to whatever I wanted and get the same results in iTerm as I do in MacVim.

                – cemerick
                Apr 4 '13 at 0:22
















              0














              I added CSApprox, and everything just worked.






              share|improve this answer
























              • Some mode details? As it stands, the answer isn't exactly informative...

                – vonbrand
                Apr 3 '13 at 20:13











              • More details? I'm afraid I'm new to both vim and iterm, so I don't have much in the way of explanation. However, I do know that installing that plugin allowed me to set the color scheme to whatever I wanted and get the same results in iTerm as I do in MacVim.

                – cemerick
                Apr 4 '13 at 0:22














              0












              0








              0







              I added CSApprox, and everything just worked.






              share|improve this answer













              I added CSApprox, and everything just worked.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Apr 3 '13 at 19:49









              cemerickcemerick

              1365




              1365













              • Some mode details? As it stands, the answer isn't exactly informative...

                – vonbrand
                Apr 3 '13 at 20:13











              • More details? I'm afraid I'm new to both vim and iterm, so I don't have much in the way of explanation. However, I do know that installing that plugin allowed me to set the color scheme to whatever I wanted and get the same results in iTerm as I do in MacVim.

                – cemerick
                Apr 4 '13 at 0:22



















              • Some mode details? As it stands, the answer isn't exactly informative...

                – vonbrand
                Apr 3 '13 at 20:13











              • More details? I'm afraid I'm new to both vim and iterm, so I don't have much in the way of explanation. However, I do know that installing that plugin allowed me to set the color scheme to whatever I wanted and get the same results in iTerm as I do in MacVim.

                – cemerick
                Apr 4 '13 at 0:22

















              Some mode details? As it stands, the answer isn't exactly informative...

              – vonbrand
              Apr 3 '13 at 20:13





              Some mode details? As it stands, the answer isn't exactly informative...

              – vonbrand
              Apr 3 '13 at 20:13













              More details? I'm afraid I'm new to both vim and iterm, so I don't have much in the way of explanation. However, I do know that installing that plugin allowed me to set the color scheme to whatever I wanted and get the same results in iTerm as I do in MacVim.

              – cemerick
              Apr 4 '13 at 0:22





              More details? I'm afraid I'm new to both vim and iterm, so I don't have much in the way of explanation. However, I do know that installing that plugin allowed me to set the color scheme to whatever I wanted and get the same results in iTerm as I do in MacVim.

              – cemerick
              Apr 4 '13 at 0:22











              0














              What background colour of solarized you want to use? (light or dark)



              If you want dark background, put set bg=dark in your .vimrc



              If you want light background, put set bg=light in your .vimrc



              I saw that in comment of your .vimrc line #74






              share|improve this answer




























                0














                What background colour of solarized you want to use? (light or dark)



                If you want dark background, put set bg=dark in your .vimrc



                If you want light background, put set bg=light in your .vimrc



                I saw that in comment of your .vimrc line #74






                share|improve this answer


























                  0












                  0








                  0







                  What background colour of solarized you want to use? (light or dark)



                  If you want dark background, put set bg=dark in your .vimrc



                  If you want light background, put set bg=light in your .vimrc



                  I saw that in comment of your .vimrc line #74






                  share|improve this answer













                  What background colour of solarized you want to use? (light or dark)



                  If you want dark background, put set bg=dark in your .vimrc



                  If you want light background, put set bg=light in your .vimrc



                  I saw that in comment of your .vimrc line #74







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Aug 18 '13 at 10:35









                  attomosattomos

                  1265




                  1265






























                      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%2f545167%2fvim-iterm2-color-issues%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

                      "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

                      Alcedinidae

                      Origin of the phrase “under your belt”?