quarta-feira, 12 de junho de 2019

Temas no vim / themes vim / schemecolor vim

Entre no diretório ~/.vim caso não tenha crie
$ mkdir ~/.vim

crie um arquivo vimrc
$ touch vimrc

adicione a seguinte linha no arquivo
colorscheme nomedotema
set number

OBS: baixe o tema que deseja no github extraia os arquivos no diretório ~/.vim
 
Sites para baixar temas prontos
 
https://vimawesome.com/
https://vimcolorschemes.com/
 
Sites para criar temas para o vim
 
https://terminal.sexy/
http://bytefluent.com/vivify/
https://vimcolors.org/
https://pintovim.dev/
https://mswift42.github.io/themecreator/
 

Linha em destaque no VIM


Adicione as linhas no arquivo /etv/vim/vimrc:

" Enable CursorLine
set cursorline

" Default Colors for CursorLine
highlight CursorLine ctermbg=Black ctermfg=None

" Change Color when entering Insert Mode
autocmd InsertEnter * highlight CursorLine ctermbg=Gray ctermfg=Black

" Revert Color to default when leaving Insert Mode
autocmd InsertLeave * highlight CursorLine ctermbg=Yellow ctermfg=None