Vim color glitch using Xterm

Hello,
I recently started to use Xterm rather than urxvt, and there's a weird glitch when using vim. I have cursorline enabled, so the background of the cursor line is a different color from the regular background, and I used this config in urxvt and termite and it works properly. However, in Xterm, when I scroll down, the cursor line leaves a "trace" on the background where there is no text.
http://i.imgur.com/9CO522D.png
This is a screenshot of the issue I'm having, and I am using vim to edit my colorscheme file, urxvt is on the left and xterm is on the right. As I said, this colorscheme gave me no problems on urxvt and termite, but in case I'm missing something I thought I might as well show it.
Also, the comments in the colorscheme file shouldn't have a separate background either, and they don't in urxvt, and there shouldn't be yellow highlighting on '=dar' at the top of the colorscheme file. I don't understand why there can be so many differences from terminal to terminal.
Can anyone help me fix this?
Thanks,
wadawalnut
-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Does the problem occur with other vim colorschemes? Perhaps we can eliminate the colorscheme and any .vimrc configurations or plugins as the source of the problem.
You can create a very basic .vimrc file, perhaps naming it basic.vim
set nocompatible
filetype plugin on
set t_Co=256
syntax on
Start vim using basic.vim instead of your .vimrc:
$ vim -u basic.vim <file_to_edit>
Vim should open with the default colorscheme. Then add cursorline highlighting and see if the problem exists.
:se cul
If the graphical glitch is there, you've pretty much eliminated your .vimrc as the source of the problem. If the "tracing" problem isn't there, change to a colorscheme where you know it has previously occurred.
:colo <my_colorscheme>
Try editing different filetypes to make sure the problem isn't a filetype or syntax plugin.
Edit: Ctrl+l, (Control plus lowercase L) should refresh the screen in vim.
Last edited by thisoldman (2015-03-08 18:47:05)

Similar Messages

  • Vim colors in xterm

    I really like coding in vim, but with the current vim package in Arch Linux, the colors don't seem to work in all cases. In a standard xterm, the colors in the directory listings are working fine, but when I start vim, it only uses bold and underline and no color whatsoever.
    I tried some different terminals, and gnome-terminal has the same problem. But the colors were working fine in aterm and Eterm! Now I don't really like the last two because they are slower, uglier, have all kinds of features I don't use, and the text is flickering when I move the window.
    I used to use Slackware and vim colors were working fine in xterm there. Would anybody know what could be wrong with my setup?

    Heh, it's one of those things you pick up somewhere.  Seriously, I usually use either rxvt or atem.  Xterm doesn't do color, I don't know why or how I found out about it.  I probably went to deja (now google.groups, I think, I still type deja) and did a search or something.
    There are things you pick up somewhere--for example (I was complaining about this to a friend recently, when we were talking about poor documentation) most folks know that kill -1 or killall -SIGHUP restarts most processes (though not all). However, the Linux and FreeBSD man pages don't mention this, they simply say it terminates a process--OpenBSD, which often has better (imho) man pages do mention in passing that it will cause a process to reread its config file (in the example they mention, inetd).
    Your attitude is admirable.  It's probably in some document somewhere, you could try doing apropos colors--which, in FreeBSD (where I'm writing this) gives about 15 different possible man pages.

  • [SOLVED] vim can't use colorscheme from ~/.vim/colors

    Hello
    I wanted to use the Molokai Theme for vim. So I downloaded molokai.vim from http://www.vim.org/scripts/script.php?script_id=2340 Copied it to ~/.vim/colors folder. In vim I enter :colorscheme molokai.vim but it can't find it.
    Also install molokai-vim from AUR but still. E185: Cannot find color scheme 'molokai.vim'
    Any thoughts?
    Last edited by blackout23 (2013-04-01 08:15:38)

    I'm sure I tried it with and without extension and it didn't work.
    However after creating a .vimrc (didn't have one before) according to this:
    http://dthettich.tumblr.com/post/131989 … rc-molokai
    It worked.
    @WonderWoofy
    The AUR package installed it into that directory.
    Thanks to all!

  • [SOLVED] Vim color scheme

    Hello! This is my first post and I'm new with Archlinux, sorry if this trouble is very simple but I'm a newbie...
    The question... Vim color scheme only works fine when I use sudo or when I'm root...
    I've put the color scheme in /usr/share/vim/vim73/colors and in ~/.vim/colors, and I've configured /etc/vimrc and ~/.vimrc
    I don't know what's wrong...
    Correct color scheme (with sudo):
    Wrong color scheme (normal user):
    Thank you very much!!
    Last edited by Midnith (2012-03-27 11:58:48)

    Hi again!
    Kaustic wrote:
    There's your problem. xterm (as indicated by tput) only supports 8 colours.
    If you're using Konsole, check the configuration and change the session to xterm-256color. Alternatively can set the environment variable within your ~/.bashrc file like so: export TERM=xterm-256color
    It works! Thank you very much and sorry for the inconveniece
    Kaustic wrote:
    (PS: To list all the terminals you can use with 256 colours try the following command: (Iirc there was a cleaner way to do this, but alas)
    ls /usr/share/terminfo/*/* | grep 256
    The output:
    /usr/share/terminfo/E/Eterm-256color
    /usr/share/terminfo/d/darwin-256x96
    /usr/share/terminfo/d/darwin-256x96-m
    /usr/share/terminfo/g/gnome-256color
    /usr/share/terminfo/k/konsole-256color
    /usr/share/terminfo/m/mlterm-256color
    /usr/share/terminfo/m/mrxvt-256color
    /usr/share/terminfo/p/putty-256color
    /usr/share/terminfo/r/rxvt-256color
    /usr/share/terminfo/s/screen-256color
    /usr/share/terminfo/s/screen-256color-bce
    /usr/share/terminfo/s/screen-256color-bce-s
    /usr/share/terminfo/s/screen-256color-s
    /usr/share/terminfo/v/vte-256color
    /usr/share/terminfo/x/xnuppc+256x96
    /usr/share/terminfo/x/xnuppc-256x96
    /usr/share/terminfo/x/xnuppc-256x96-m
    /usr/share/terminfo/x/xterm+256color
    /usr/share/terminfo/x/xterm-256color
    How I put xterm-256color by default?

  • Changing Konsole font colors a la xterm

    Hello.  I'm not a big fan of the default font colors that Konsole uses for things such as directories, exexecutables, strings, vim syntax highlighting etc.  I was wondering how to go about getting the same font colors in konsole that I can for say aterm (by configuring the .Xdefaults file with the appropriate font colors...)  Any ideas would be much appreciated.  Thanks!!

    I resolved this issue.  In Konsole there is a schema type of 'Vim colors'  that will allow you to utilize the xterm color settings in the .Xdefaults file.

  • Terminal colors vs Vim colors [SOLVED]

    Hey guys!
    I've been using vim since the very first day I started learning programming, and am now using it on my brand new arch system. Everything works really well so far, but I'm having a bit of trouble customizing colors. I wouldn't normally make a big deal out of it, but since I'm going to spend an enormous amount of hours using it for school and personnal projects, I'd really like to get all my colors right. I'm using an urxvt terminal, under awesome wm.
    Here are my 16 terminal colors:
    http://tinypic.com/r/2yper6b/5
    Here is what my vim loks like:
    http://tinypic.com/r/s1547k/5
    As you can see, vim uses a crap-looking, brownish-red color for line numbers and html tags. This color is not in any of the 16 I specified in .Xresources. I don't know where it comes from, but I would like for vim to use only these 16 colors. Is that possible? I assume it is, because most of my vim colors are changed whenever I edit them in .Xresources.
    If not, I'd like to know how I can edit the colors vim uses myself. Thank you for reading!
    Last edited by PolyBender (2013-05-12 00:35:41)

    You select a colorscheme (:help colorscheme) in your vimrc.  The themes can use 256 colors, which I find nice once I customized the theme/scheme.  But if you want to limit it to 16, just `set t_Co=16` in your vimrc.

  • I just updated to new final cut pro x 10.1.1 and i am also on mavericks so but on my editing timeline i was trying to color grade using magic bullet looks but i am having problem with it. when it comes back to tcp x it's black.

    I just updated to the new final cut pro x 10.1.1 and i am also on mavericks so but on my editing timeline i was trying to color grade using magic bullet looks but i am having problem with it. When i send a sample to MBL and color grade it , it comes back to final cut pro x all black even after render. By the way on the MBL i am using the GPU rendering, I used before like 4months ago and it was fine. And i don't like to use the CPU because it very slow.

    What is the frame rate of the project? At what frame rate was the media recorded? What frame size?
    What are the audio settings?
    What are the specs of the machine, in particular how much RAM, how is the hard drive connected, etc.?
    If possible, post screenshots of the inspector for the project.
    It could be related to the audio frequency?

  • When I print a 4x6 color picture using an iMac with the latest operating system using a Canon MX892 printer, faint black lines appear every 3/16 of an inch. When I print the same picture using iPhoto there is no problem.

    When I print a 4x6 color picture using an iMac with the latest operating system using a Canon MX892 printer, faint black lines appear every 3/16 of an inch. When I print the same picture using iPhoto there is no problem. Any suggestions?

    What is the resolution of the picture that you are trying to print?
    Go to Image>resize>image size, read the resolution in px/in, then report back, please.
    Also, are you in a position to try printing with another printer in an attempt to narrow this down?

  • Converting CMYK color model vlaues (0-100) to liquid color volume using labview

    Hellow all,
    How I can convert CMYK color model vlaues (0-100) to liquid color volume using labview?
    best regards

    What does "liquid color volume" mean?
    You should continue in your original message thread and not create a new one.  CMYK colors mixing icon or vi

  • Show only colors already used in the document?

    Hi!
    Is it possiblé to see somewhere which colors I have previously used while working with a document? I think it would be nice to have the option for example for the swatches panel to only show user selected colors so that I can go back and forth in my 6-10 color palette really fast. It would be kind of a "color history". Is this possible to achieve somehow?

    Image --> Mode --> Indexed color, then use the options to save and edit palettes...
    Mylenium

  • Set Cell Color without using DefaultTableCellRenderer

    Hi,
    Is there any possible to set the JTable cell color without using DefaultTableCellRenderer ?. For ex, I have one JTable that having 9 rows and 9 columns. I have to set the cell color in 2nd row & 3rd column.
    Please anyone give me guidance to solve this.
    Thanks & Regards
    S Senthilkumar

    Fine.. Please try to understand my points.
    Because in my application I have JTable that having 10 columns and rows dynamically will come based on the value fetch from arraylist. If I use DefaultTableCellRenderer, for each record its calling CustomTableCellRenderer(). For example arraylist return 10 rows means its looping 100 times(10 rows * 10 columns).
    CustomTableCellRenderrer.java
    ArrayList dataLiveMarket = (ArrayList) new CheckUser().getLiveMarketDetails(unval);
    CustomTableModel modelLiveMarket = new CustomTableModel(dataLiveMarket);
    JTable tableOne = new JTable(modelLiveMarket);
    tableOne.setDefaultRenderer(Object.class, new CustomTableCellRenderer());
    CustomTableCellRenderrer.java
    package com.fxtrading.dao;
    import java.awt.Color;
    import java.awt.Component;
    import javax.swing.JTable;
    import javax.swing.SwingConstants;
    import javax.swing.table.DefaultTableCellRenderer;
    import javax.swing.table.TableModel;
    * @author user
    public class CustomTableCellRenderer extends DefaultTableCellRenderer {
        //private TableModel bidLastPrice;
        //int k;
        @Override
        public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected,
                boolean hasFocus,
                int row, int column) {
            Component component =
                    super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
            if (column == 0 || column == 1|| column == 2) {
                setHorizontalAlignment(SwingConstants.LEFT);
            } else if(column == 3 || column == 4 || column == 5 || column == 6 || column == 7 || column == 8){
                setHorizontalAlignment(SwingConstants.RIGHT);
            }else if(column == 9){
                setHorizontalAlignment(SwingConstants.CENTER);
            // Change cell Color - Started
            bidLastPrice = table.getModel();
            int bidLastRowCount =(int)table.getRowCount();
            for(k=0; k<bidLastRowCount; k++) {
                String bidPrice = (String)bidLastPrice.getValueAt(k,4);
                String lastPrice = (String)bidLastPrice.getValueAt(k,8);
                bidPrice = bidPrice.replace(",","").replace("$","");
                lastPrice = lastPrice.replace(",","").replace("$","");
                if(Double.parseDouble(bidPrice)<Double.parseDouble(lastPrice)){
                    if(row == k && column == 4){
                        component.setBackground(Color.RED);                   
                    }else{
                        component.setBackground(Color.WHITE);
                    System.out.println("Row Count -->"+k+" Less ----> Bid Price----> "+Double.parseDouble(bidPrice)+" : Last Price----> "+Double.parseDouble(lastPrice));
                }else{
                    if(row == k && column == 4){                  
                        component.setBackground(Color.GREEN);
                    }else{
                        component.setBackground(Color.WHITE);
                    System.out.println("Row Count -->"+k+" More ----> Bid Price----> "+Double.parseDouble(bidPrice)+" : Last Price----> "+Double.parseDouble(lastPrice));
            // Change cell Color - End
            return component;
    }Thanks & Regards,
    S Senthilkumar

  • Can I SAVE one color to use for the backgrounds of many separate paragraphs?

    I have changed the background color of paragraphs in different Chapters for the purpose of making the content within that paragraph stand out.
    It’s easy to pick a random color in the Inspector. Open the “Text” tab, click the “More” button, Background Fills, check “Paragraph” and select a color from the available methods.
    How can I SAVE one particular color to use for as many separate paragraph backgrounds that I want to make the same color?
    I’m using iBooks Author ver. 1.1
    As I work on the formatting, I’d like quick & easy access to those one or two special colors that I like.
    Using the color wheel I can make a rough guess for each different paragraph, but its not exact.
    None of the crayons or the colors in the Pallettes is the color I’m after.
    Slider are a pain to try to exactly set each time.
    Thanks for any help.

    DarrylBurke wrote:
    I don't know whether there's a better way (or whether this will work as expected), but I would try setting a boolean flag on keyPressed and reset the flag on keyReleased, for each key of interest. To compute the x / y movements, I would check the state of all flags.
    dbI was thinking about your answer a few nights ago. And I was like, wait... it works! I thought, at first (as I replied before) that it wouldn't work, but I refract what I said. Its actually a very simple solution. And I apologize for questioning your solution previously. Thanks so much!
    P.S. I tested it out. Works like a charm.
    -Create booleans to handle each key
    -Set to true on press
    -Set to false on release
    -Check and update in separate thread accordingly

  • After latest update (11.0.10.32), can't generate color PDFs using Word PDFMaker toolbar.  Solution?

    After applying the latest update to Adobe XI Pro, I can no longer generate color PDFs using the Adobe ribbon in Microsoft Word 2010 (Windows 7 operating system).  Other PDF generation methods (for example, Save As Adobe PDF) produce color PDFs just fine, but I need bookmarks as well as color.  Can anyone explain or offer a solution besides uninstalling the current Adobe XI Pro and re-installing the original version?
    Thanks in advance. 

    I’ve found the answer.
    I'm guessing that an Office 2010 update was the problem, or maybe a change in printer drivers?  In Word 2010, I went to Options, Advanced, expanded the Layouts options, and cleared the "Print colors as black on noncolor printers" option. Now I get color PDFs again.  By the way, this must be done for each .docx file. 
    Thanks so much for your patience and help to all who replied.

  • I can't find the color I used

    Some time ago I made website buttons.  I now need to change the text on top of one of the buttons, but I can't figure out the exact color I used.  The dropper does not pick the original shade.  It seems to be off.  The button was rasterized and saved as a JPEG.  The original PSD file is gone.  I hope I don't have to redo 11 buttons just because I can't find the original color.  Can anyone help?
    I attached a copy of the button.  It is the blue color on top and not the rollover color I need to find.

    The problem comes from the fact that the text is small and there's a lot of JPG artifacting. Even if you find the original color, it will still look off compared to the other buttons while in Photoshop because of the lack of JPG artifacting. You'll likely have to preview the colors using File->Save for Web & Devices set to JPG and a low quality setting.

  • Color problems using bilinear interpolation with AffineTransformOp

    I am trying to apply AffineTransformOp's to BufferedImage's and it seems if I use TYPE_BILINEAR interpolation, the colors of the resulting images are messed up.
    This example program loads each .jpg in the current directory, applies an identity transformation using each of two interpolation methods, and saves the results to (different) filenames. Give it a try with any color .jpg and you should see this problem.
    import java.awt.geom.AffineTransform;
    import java.awt.image.*;
    import java.io.*;
    import javax.imageio.*;
    public class InterpolateProblem {
         * Read in every .jpg in current directory, apply identity transform using two
         * different interpolation methods, save results.
         public static void main(String[] args) throws IOException {
              String[] files = new File(System.getProperty("user.dir")).list();
              String prefix = "CVT";
              for (int i = 0; i < files.length; i++) {
                   String name = files;
                   File src = new File(name);
                   if (!src.isFile() || !name.endsWith(".jpg") || name.startsWith(prefix))
                        continue;
                   // Read original .jpg
                   BufferedImage orig = ImageIO.read(src);
                   // Construct identity transformation
                   AffineTransform tx = new AffineTransform();
                   // Apply transformation using NEAREST_NEIGHBOR, write results to CVT1_xxx
                   File dest1 = new File(src.getParent(), prefix + "1_" + src.getName());
                   AffineTransformOp op1 = new AffineTransformOp(tx,
                             AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
                   ImageIO.write(op1.filter(orig, null), "jpeg", dest1);
                   // Apply transformation using BILINEAR, write results to CVT2_xxx
                   File dest2 = new File(src.getParent(), prefix + "2_" + src.getName());
                   AffineTransformOp op2 = new AffineTransformOp(tx,
                             AffineTransformOp.TYPE_BILINEAR);
                   ImageIO.write(op2.filter(orig, null), "jpeg", dest2);

    >Odd how it could look fine with windows and others but really off with LR.
    None of the others typically color manage, so they don't use the profile. Also, a large number of the icc profiles that are shipped with display drivers for windows ar corrupt out of the box (really strange but true) so you're usually better off just deleting them. That said, if you want good color you basically have to actually calibrate. Using sRGB is a very bad alternative. You need to calibrate using real calibration hardware for good color and use color managed apps wherever you can (Lightroom, Photoshop, Safari, Firefox with the secret setting enabled, but NOT internet explorer or windows picture viewer. They never show you the actual color.

Maybe you are looking for

  • Simple button not functioning?

    I've been staring at this code for an hour. Maybe I need a break? This is a very simple button that just won't accept my touch events. I have a movie clip. It's instance name is "boardA." The name of the symbol is "letterA" and it is linked to a clas

  • Error in Tranform Activity While Writing From File to DB Table

    Hi All, I m trying to read the contents of a csv file and writing it to the db table. When I am trying to map the file content to the db table using tranform activity, I am getting error as "failed to save XSL Map. Make sure XSL Map is valid". Any id

  • Remapping keyboard keys

    I have Macbook Pro with US keyboard layout, which is just fine, similar to almost any of the keyboards I have used over the years. Recently I bought a localized (Bulgaria) Apple keyboard, where the positions of "`~" and "§±" are swapped. That's a pai

  • How many alert profiles needed?

    I a user that uses two planning books, PB1 and PB2 with corresponding data views D1 and D2 respectively. I have alerts in both the books. Now how many overall profiles do I need and how many individual alert profiles do I need? I am thinking 1 over a

  • 98-361: June 2014 update.

    Hello, I am planning to appear for the MTA 98-361 exam. I have gone through the student guide & Microsoft Virtual Academy materials. However, I came across some blogs where people who have taken the exam posted that these materials are not enough. Al