vimsyntax-highlightingcolor-schemevim-airlinepowerline

Can not get vim to work like i want


I have tried fixing vim to my likings but I alawys encountered a lot of problems due to my lack of knowldege.The most commons ones are:

  • Powerline font not rendering properly example here
  • Syntax Highlighting not giving the expected color
  • Background color not being rendered properly
    I am aiming for a result which would look pretty similiar to this when I currently have this.
    If the information given is not enough I will give you additional information in the comments. Any help would be greatly appreciated!


  • Solution

  • You seem to be asking 2 questions:

    Fancy font patching

    You will need to refer to your status line plugin for how it wants you to patch a font and setup your terminal. vim-powerline for example has instructions on how to do this.

    Syntax highlighting colors

    You need to make sure you have the following lines in your vimrc file:

    filetype plugin indent on
    syntax on
    

    This will turn on syntax highlighting and filetype specific plugins (aka ftplugins). As long as you have a color terminal and $TERM is set correctly then the colors should show.

    Make sure you also specify a colorscheme via :colorscheme in your vimrc file as well:

    colorscheme nord
    

    It should also be noted that nord colorscheme requires you to update your terminal's theme as well in order to work properly.