[solved] VIM and colorschemes

Hi Everybody
I try to setup up vim on my machine. Everything works fine but the colorscheme has wrong colors. (I am working with konsole)
in my .vimrc
set t_Co=256
syntax on
set background=light
colorscheme solarized
No matter what i try, konsole seems to override the colorscheme... I already tried to add TERM=xterm-256color ...
May someone point out the mistake I made?
Thank you!
Last edited by wucherpfennig (2014-08-25 20:38:43)

Thanks for your quick answer
somehow I missed that...
#~/.bashrc
TERM=konsole-256color
#~/.vimrc
let g:solarized_termcolors=256
syntax enable
set background=light
colorscheme solarized

Similar Messages

  • [solved] confusion about vim and its config files

    Hi, Im getting really confused with vim and its /etc/vimrc config, and the per user ~/.vimrc.
    On one of my PC's I have an untouched /etc/vimrc and a /home/jason/.vimrc which has:
    syntax on
    now, on that same PC, if I run
    vim .vimrc
    "syntax on" in green and yellow as expected, and if I run
    sudo vim .vimrc
    I also see
    "syntax on" in green and yellow, but surely this is opening it as root?
    *Edit
    Even though there is no .vimrc in /root, and the system-wide /etc/vimrc is untouched/blank
    On another PC I also have an untoched /etc/vimrc, and a /home/jason/.vimrc which has:
    syntax on
    Aswell, and:
    vim .vimrc
    has "syntax on" in green and yellow as expected, but this time:
    sudo vim .vimrc
    Has no colour?
    I cant explain this, any ideas?
    *Edit
    To clarify, both PC's have an untouched /etc/vimrc and there is no /root/.vimrc file on either PC
    Last edited by jrussell (2013-04-14 10:21:42)

    siriusb wrote:
    The configuration files in /etc are for system-wide settings. These are the default settings if not overridden by a user's own settings in their home directory.
    So running vim as your regular user will use the settings from your home directory.
    What does sudo? From man sudo
    sudo allows a permitted user to execute a command as the superuser or another user, as specified by the security policy.
    So if you didn't specify any setting in the home folder of the user you want to run vim as, and you don't have anything in /etc/vimrc, vim won't apply any custom settings.
    I understand all of that, but on both my PC's I have a clean/untouched config /etc/vimrc, and both /root/.vimrc files do not exist, so howcome on one PC I get colour with sudo vim...., and on the other I dont?

  • [solved] vim ftplugin vim-latexsuite doesn't load changes with chars

    Hello!
    I'd like to use some european characters and I found this thread.
    Unfortunately I still get "/mathbf{}" when I type the ã. (My problem is the ö but I think if I manage to have the ã it will work with ö...)
    The second problem is that I have to press escape twice to go to normal mode in a .tex file.
    (In the other files one press is enough.)
    All these troubles happen only on my x86_64 desktop.
    I have vim-latexsuit-svn 1106-1 on both laptop and desktop from the AUR.
    On my i686 laptop everything works fine with the 'default' .vimrc advised in the vim-latexsuite-manual.
    There is also a different mapleader for compiling by default. (Which is not as annoying as the ö problem.)
    I also get the ö-trouble when I log in from the laptop to my desktop.
    Why are there so much differences?
    I only remember having put some "set winaltkeys=no" in the wrong files on my laptop before I understood where is the right place.
    (Where everything works fine.)
    Here's my .vimrc
    1 set tabstop=2
    2 set number
    3
    4 syntax on
    5 filetype plugin on
    6 filetype indent on
    7 set grepprg=grep\ -nH\ $*
    8 let g:tex_flavor = "latex"
    9 set runtimepath=~/.vim,/usr/share/vim/vimfiles,/usr/share/vim/vim72,/usr/share/vim/vimfiles/after,~/.vim/after
    10 "To solve the propleme with vim-latexsuite has with ã and â
    11 imap <buffer> <silent> <M-C> <Plug>Tex_MathCal
    12 imap <buffer> <silent> <M-B> <Plug>Tex_MathBF
    13 imap <buffer> <leader>it <Plug>Tex_InsertItemOnThisLine
    14 imap <buffer> <silent> <M-A> <Plug>Tex_InsertItem
    15 "imap <buffer> <silent> <M-E> <Plug>Tex_InsertItem
    16 "imap <buffer> <silent> <M-e> <Plug>Tex_InsertItemOnThisLine
    17 imap <buffer> <silent> <Plug>Traditional <Plug>Traditional
    18 map <buffer> <silent> é é
    19 map <buffer> <silent> á á
    20 map <buffer> <silent> ã ã
    21 "imap ã <Plug>Tex_MathCal
    22 "imap é <Plug>Traditional
    ~/.vim/ftplugin/tex.vim
    1 set winaltkeys=no
    2
    3 let g:Tex_AdvancedMath = 0
    4 let g:Tex_SmartKeyQuote = 0
    5 let g:Tex_SmartKeyQuote = 0
    6
    7 imap <C-b> <Plug>Tex_MathBF
    8 imap <C-c> <Plug>Tex_MathCal
    9 imap <C-l> <Plug>Tex_LeftRight
    ~/.vim/after/ftplugin/tex.vim
    (The macros of call IMAP work well. When I type `ö I also get a \mathbf)
    1 call IMAP('`w', '\omega', 'tex')
    2 call IMAP('`j', '\cdot', 'tex')
    3 call IMAP('`A', '\forall', 'tex')
    4 call IMAP('`E', '\exists', 'tex')
    5 call IMAP('`ö', 'ö', 'tex')
    6
    7 let g:Tex_AdvancedMath = 0
    8 imap <C-b> <Plug>Tex_MathBF
    9 imap <C-c> <Plug>Tex_MathCal
    10 imap <C-l> <Plug>Tex_LeftRight
    runtimepath:
    runtimepath=~/.vim,/usr/share/vim/vimfiles,/usr/share/vim/vim72,/usr/share/vim/vimfiles/after,~/.vim/after
    Last edited by Maximalminimalist (2010-05-30 17:00:03)

    I just removed vim, vim-auctex (didn't remember there was this...) and vim-latexsuite and reinstalled vim and vim-latexsuite.
    I was obviously using a vim-auctex macro and I didn't know it... (This was a memorable lesson for removing packages you don't need. )
    I realized that the Esc-issue happens if a placeholder is still active. Is it possible to change this behaviour? (I won't really care about that. => [solved])
    Last edited by Maximalminimalist (2010-05-30 16:59:32)

  • [SOLVED] vim completion menu broken

    Since I upgraded to the latest vim (version 7.3.138, using the gvim package), the completion menu seems to be broken.
    Steps of replication:
    1. Stand in directory containing files test{1,5}
    2. Open vim
    3. :e t<tab>
    By now vim should show the completion menu saying that there are five files to choose from, but instead the cursor places itself in the file where I last left input, the command area is cleared and no completion is shown. If I enter anything, the cursor returns to the command line and the command line is redrawn with whatever I enter. If I press tab again, the cursor returns to the command area returns and redraws ":e test", nothing further happens.
    The error appears in both terminal vim and in gvim, and persists even if I reinstall using the regular vim package. I ruled out my configs breaking it by resetting them to a couple of months ago, but it didn't help.
    vim --version && pacman -Qi gvim:
    http://paste.pocoo.org/show/358834/
    Is anyone else getting this?
    EDIT && SOLVED:
    It was my configurations after all. "set wildmenu list:longest" made it break for some reason. Without it everything is peachy. \o/
    Last edited by Daethorian (2011-03-24 10:49:26)

    Since I upgraded to the latest vim (version 7.3.138, using the gvim package), the completion menu seems to be broken.
    Steps of replication:
    1. Stand in directory containing files test{1,5}
    2. Open vim
    3. :e t<tab>
    By now vim should show the completion menu saying that there are five files to choose from, but instead the cursor places itself in the file where I last left input, the command area is cleared and no completion is shown. If I enter anything, the cursor returns to the command line and the command line is redrawn with whatever I enter. If I press tab again, the cursor returns to the command area returns and redraws ":e test", nothing further happens.
    The error appears in both terminal vim and in gvim, and persists even if I reinstall using the regular vim package. I ruled out my configs breaking it by resetting them to a couple of months ago, but it didn't help.
    vim --version && pacman -Qi gvim:
    http://paste.pocoo.org/show/358834/
    Is anyone else getting this?
    EDIT && SOLVED:
    It was my configurations after all. "set wildmenu list:longest" made it break for some reason. Without it everything is peachy. \o/
    Last edited by Daethorian (2011-03-24 10:49:26)

  • [self-SOLVED]vim + lilypond syntax highlighting

    I'm trying to get vim to use syntax highlighting in lilypond files. Apparently lilypond comes with the necessary files, but I have not been able to make vim find them (?). I am not very experienced with vi(m), so there might be something wrong with my setup.
    I have, of course, both vim and lilypond installed. The files for lilypond syntax highlighting are in subdirectories of /usr/share/lilypond/2.12.3/vim/. Vim syntax highlighting works for other files, such as C++, HTML, etc., so no problem there. My ~/.vimrc file contains
    set runtimepath+=/usr/share/lilypond/2.12.3/vim/
    as per instruction given in http://lilypond.org/doc/v2.12/Documenta … m/Vim-mode (and the path is correctly modified). But when I open a lilypond file (with the correct .ly suffix) all I get is black and white. What's the problem?
    [EDIT: Oh heck, nevermind! Apparently I was getting too tired to read instructions properly. Was missing the ~/.vim/filetype.vim file described in the above link.]
    Last edited by lotuskip (2010-04-12 18:33:42)

    You're right about it being overridden.  This change should be able to be placed in ~/.vimrc though.
    Well  that was foolish - I should have read the comments right below in that file.  It says exactly how to set it in vimrc.  I've now added the following to my ~/.vimrc and this is completely solved without modifying the /usr/... file.
    let g:tex_flavor = "tex"
    Last edited by Trilby (2013-03-29 16:11:26)

  • [SOLVED] vim: newlines when pasting block selection

    Hi there!
    When pasting a block selection im Vim, the pasted lines are added to the existing lines. That definitely has it's uses, but usually I'd like to paste the lines onto blank lines. For this, I first have to generate a buch of empty lines, and only then can I paste the block. Is there a way to automatically generate new lines when pasting blocks?
    Here's a small example in Fortran. I'd like to get the list of REALs by block-selecting the variables and copying them between the REAL and the INTEGER block.
    REAL :: &
    real1 (2,2) , &
    real2 (5,2) , &
    real3 (1,2)
    INTEGER :: &
    int1 ,&
    int2
    If I just block-select it and paste it onto the line between the REAL and INTEGER blocks, I end up with this:
    REAL :: &
    real1 (2,2) , &
    real2 (5,2) , &
    real3 (1,2)
    real1
    real2INTEGER :: &
    real3 int1 ,&
    int2
    What I'd like to end up with, though, is this:
    REAL :: &
    real1 (2,2) , &
    real2 (5,2) , &
    real3 (1,2)
    real1
    real2
    real3
    INTEGER :: &
    int1 ,&
    int2
    Without manually inserting blank lines, that is!
    PS: I'm not really sure whether that's the correct subforum, but as the questions mostly addresses Programmers/Coders, I guess it should be fine here.
    Last edited by cryptkeeper (2013-11-07 08:16:32)

    karol wrote:http://vim.wikia.com/wiki/Unconditional … wise_paste
    '\cp' seems to do what you want.
    I haven't tried it yet, but it looks exactly what I need! What I do after pasting the selected block is often joining the lines to a single line with the variables delimited by commas or \\|| (for further use in vim regexes), and it looks like this plugin can do exactly this.
    Thanks! I'll mark it SOLVED then (and hope I'll get around to actually try it soon enough).
    Trilby wrote:Karol's answer seems like a more direct solution, but I'd personally go with a combination of simpler commands like "3yy3jPw Ctrl-v 3j$d"
    The problem with this is that you know the exact number of lines, i.e. 3 in this case, which is usually not the case in the code I work with as the variable lists are much longer.
    But what I've become accustomed to in the meantime is memorizing the number of lines that vim shows when I yank the block and inserting that number of new lines before pasting, e.g. for a 24 line block
    24o<ESC>j
    24k
    p
    I doubt that using 24o<ESC>j is the best way to insert the 24 blank lines, but it works well enough.

  • [Solved] Vim tabstop override not working through .vimrc

    I'm getting to know Vim and am trying to set my tabstop settings in ~/.vimrc. I've added the lines below:
    set autoindent " always set autoindenting on
    set tabstop=4
    set shiftwidth=4
    set noexpandtab
    set softtabstop=4
    Yet when i start Vim and type 'set tabstop' it still reports back 8, so the settings above apparently don't work. If i 'set tabstop=4' from within Vim it works fine, just only for the current session.
    Other settings in .vimrc are read okay, so i don't think the problem lies there.
    system vimrc file: "/etc/vimrc"
    user vimrc file: "$HOME/.vimrc"
    user exrc file: "$HOME/.exrc"
    fall-back for $VIM: "/usr/share/vim"
    Any ideas?
    Last edited by litemotiv (2009-05-20 14:28:36)

    karol wrote:Any chance it's a .virc / .vimrc / .gvimrc or /root/.virc etc. mismatch?
    ~/vi(m)rc doesn't work, but ~/.vi(m)rc does - mind the dot :-)
    No i don't think so:
    [ollie@arch ~]% ls .v*
    .viminfo .vimrc
    I also have some other settings in the file like 'set number' and a colorscheme, that do get loaded..

  • I want to install Photoshop but everytime I get an ERROR CODE: A12E1.How do I solve that and what is it?

    Hello,
    I want to install Photoshop but everytime I get an ERROR CODE: A12E1.How do I solve that and what is it?

    A12E1 error installing Creative Cloud products | CC
    Mylenium

  • [solved] [VIM] question to vim power users about mapping

    Hi,
    I have just starting using map leaders in vim and I'm love it.
    Here are my shortcuts but this method allow to open /etc/rc.conf only in readonly mode.
    So how can I open this file to edit like su (when I open vim without sudo)? I have configured sudo to works without password.
    " Fast editing
    map <leader>v :e! ~/.vimrc<cr>
    map <leader>b :e! ~/.bashrc<cr>
    map <leader>r :e! /etc/rc.conf<cr>
    Last edited by chmurli (2011-02-04 21:40:08)

    I use
    map ss :w !sudo tee % > /dev/null<CR>
    when I open a file that needs 'sudo' for editing.
    For some files I have aliases:
    [karol@black ~]$ type rc
    rc is aliased to `sudo vim /etc/rc.conf'
    Last edited by karol (2011-02-03 21:45:57)

  • [SOLVED] Vim search history inserts A

    Hello,
    I have the following problem with Vim:
    when I press the up arrow in search mode (/<Up>), Vim switches to the insert mode and enters the letter A in a new line above the cursor. When I press /<Down>, the same happens, only the letter is B.
    Surprisingly, arrows work just fine for browsing command history both in Vim and in Bash.
    All mappings for arrows in my .vimrc are commented out, I've deleted the appropriate files in ~/.vim/view and in ~/.vim-tmp where I store backups and such.
    I use Sakura but the same happens in urxvt and in gnome-terminal. In Vim, term is set to xterm.
    Can you help me please?
    Last edited by caminoix (2011-01-10 22:51:05)

    Wonderful, thank you!
    ":verbose cmap <Up>" returned "No mapping found" but disabling plugins was what I haven't thought about. It turns out it was the SearchComplete plugin.
    Thanks a lot!

  • After i download ios 5.1.1 i cant install it there is msg tell me an error occurred installing ios 5.1.1 what can i do to solve this and install the update ( i have ipad 2 ) ?????

    After i download ios 5.1.1 i cant install it there is msg tell me an error occurred installing ios 5.1.1 what can i do to solve this and install the update ( i have ipad 2 ) ?????

    No codes on the error just msg in the center of the ipad tell me that without any codes :@

  • Vim and dependencies

    I have attempted to install vim and all of it's associated dependencies from sunfreeware.com. I have been unable to get the packages to work and when launching VIM, I get the following:
    ld.so.1: vim: fatal: relocation error: file /usr/local/lib/libgtk-x11-2.0.so.0: symbol gdk_font_equal: referenced symbol not found
    Killed
    Has anyone been able to get VIM to work? I was wondering if I can find a patch or something which updates this missing symbol.
    Many Thanks....

    Make sure /usr/bin is in your "PATH" by doing 'echo $PATH'. But I guess it already is. Also make sure you have /usr/bin/vim.

  • My iMail keeps crashing -- how do I solve this and do I need to re-install

    my iMail keeps crashing -- how to solve this and do I need to re-install

    Is it iMail or Mail ?

  • Vim and ManageHooks

    Hi there, I need help moving things im editing with "Vim" to my "3:code" workspace
    this is the basic code in my ManageHooks segment in my xmonad.hs:
    myManageHook = composeAll . concat $
    [ [className =? c --> doFloat | c <- myFloats]
    , [className =? e --> doF (W.shift "3:code") | e <- code]
    where
    myFloats = ["Gimp"]
    code = ["Vim"]
    Funny thing is if i install Gvim and add it to my ManageHook, it will move all the things im editing with Gvim to my "3:code" workspace.
    But if i install vim, and open files with vim, it opens in the current workspace.
    Can someone help me with this? I have a feeling its just an easy fix, i've been looking around the xmonad thread but cant find anything close to it and when i used google, i've found ppl using query and fmap with "isPrefixOf", but my haskell programming skills isnt up there yet and looking at their code is very confusing.
    Thanks in advance
    Last edited by ryuuzaki (2010-05-20 19:38:15)

    I use:
    , [ fmap ( "JAVA:" `isInfixOf`) title --> doCenterFloat]
    to auto float any of my Java apps as I always include "JAVA:" in the window title.
    This should work:
    , [ fmap ( "VIM" `isInfixOf`) title --> doF (W.shift "3:code")]
    though you will probably be better off with `isSuffixOf` [1] as on my system the title looks like "<filename> (<dir>) - VIM" and matching "VIM" anywhere in the title will match all sorts of things eg a google search for VIM in your browser. Even better would be to match on "- VIM" or whatever it is on your system. As skottish mentioned, check with xprop.
    [1] http://www.haskell.org/ghc/docs/6.12.1/ … isPrefixOf

  • Vim and Eclim (Java): Run Java program in embedded terminal window

    Hello all,
    I'm trying to create a decent Vim setup for Java programming. I've installed Eclim, and it works alright. However, one annoyance I have is the way that Eclim runs Java programs. When run (via the :Java command in Vim), a Java program runs in a new shell instance pretty independent from Vim, and then when the program terminates (and Enter is pressed), the output is put into a new buffer at the bottom of the Vim window with the output.
    The problem with this is that I must press Enter to go back to Vim after the program terminates, and then the output buffer is automatically selected even though I most likely do not care to copy any of the output.
    So, this is what I would like to happen:
    - I run my Java program somehow (doesn't have to be with :Java)
    - A buffer containing the running program in a shell is put on the screen (if not already there)
    - The program terminates, and the focus did not change to the output buffer
    At the very least, I want the focus to not change to the output buffer after the program is done running.
    Any ways to at least somewhat accomplish what I'm trying to  get at?

    Trent wrote:
    Yeah? I had AP CS when they first introduced the GridWorld case study. I hope you get more out of the class than I did.
    I have never used Java except for that and my first CS class at university. I eventually realized that software (as a job) wasn't for me and took a route closer to EE. I still fight to avoid being called a programmer though
    I like the idea of programming for a job, not necessarily "software development", something computer science-y sound good to me.
    But anyway, to end on an on-topic note, I embedded gvim inside Eclipse as described here.

Maybe you are looking for

  • Display Large Float w/o Scientific Notation

    I have a series of dollar amounts (from an SQL cursor) that I am summing up using a java.lang.Float. The values total correctly, but when I display the value it is displayed using Scientific Notation (4.19150150185925 E12). I need to write my total v

  • Mbp retina display battery life issues

    When i bought my laptop, the battery life was around 7 hours. now its barely 3 or 4. I have tried to enter: cd ~/Library/Preferences/ rm com.apple.desktop.plist killall Dock this works sometimes, but other times it does not. Frankly, The issue of bat

  • Condition types in JDEPOT

    Hi Guys can you pls explain me what are all the common condition types exists in JDEPOT,if you can send some screen shots that will be a great help for me my mail id is [email protected] Maximum points will be rewarded. Thanks and Regards Ashwath Red

  • To check who change the trace level

    Hi All, Can anyone please help me how can i get that who change the trace level in system, in our client lot of people have Sm50, St01, St05,ST12 and other trace transactions, and it become difficult to track down who is changing the traces level peo

  • Invisible folder for library?

    I have my iphoto library on an external harddrive. However the other day I had unplugged the external drive and when I launched Iphoto, it loaded my entire library. I control-clicked on a photo and chose 'show file'. A finder window opened and it sho