shapeoflambda / dark-purple.vim

Port of the dark purple intellij theme
MIT License
17 stars 7 forks source link

The colors don't look good. #5

Open sorinfratila opened 2 years ago

sorinfratila commented 2 years ago

Hi,

I am not sure what am I doing wrong ,but the colors looks totally different than your screenshot of the theme's usage. Could you clarify if I am doing something wrong ?

image image

syntax on                           " required for syntax highlighting
  2 set backspace=indent,eol,start
  3 set encoding=utf-8                  " set character encoding inside
  4 set nocompatible                    " be iMproved, required
  5 set ruler
  6 set wrap
  7 filetype plugin indent on           " required
  8 runtime macros/matchit.vim          " activate matchit
  9 " let &packpath = &runtimepath
 10 
 11 packloadall
 12 
 13 set rtp+=~/.vim/pack/plugins/start/lightline.vim
 14 
 15 let g:coc_global_extensions = [
 16   \ 'coc-snippets',
 17   \ 'coc-pairs',
 18   \ 'coc-tsserver',
 19   \ 'coc-eslint',
 20   \ 'coc-json',
 21   \ ]
 22 
 23 " colorscheme
 24 """" enable the theme
 25 syntax enable
 26 set termguicolors
 27 
 28 " Always show lightline - this is the bottom status bar
 29 set laststatus=2
 30 let g:lightline = {
 31       \ 'colorscheme': 'dark_purple',
 32       \ 'active': {
 33       \   'left': [ [ 'mode', 'paste' ],
 34       \             ['readonly', 'filename', 'modified' ] ],
 35       \   'right': [ [ 'lineinfo' ],
 36       \              [ 'filetype' ],
 37       \              [ 'gitbranch'] ]
 38       \ },
 39       \ 'component_function': {
 40       \   'gitbranch': 'fugitive#head'
 41       \ },
 42       \ }
 43 
 44 colorscheme dark_purple
 45 
 46 set re=0
 47 
 48 set grepprg=rg\ --vimgrep
 49 set rtp+=/usr/local/opt/fzf
 50 " command that is excluding anything that is in .gitignore. - :GFiles. for
 51 " normal search, use :Files
 52 nnoremap <C-p> :GFiles<cr>
 53 nnoremap <C-f> :Rg<cr>
 54 "this is a comment 
 55 let mapleader = "\<Space>"
 56 nnoremap <C-h> <C-w>h
 57 nnoremap <C-j> <C-w>j
 58 nnoremap <C-k> <C-w>k
 59 nnoremap <C-l> <C-w>l
 60 
 61 nmap <leader>vr :tabedit $MYVIMRC<cr>
 62 nmap <leader>so :source $MYVIMRC<cr>
set number
 65 " toggle between relative numbers and normal
 66 function! ToggleNumber()
 67   if(!&relativenumber && !&number)
 68     set number
 69   elseif(!&relativenumber)
 70     set relativenumber
 71   else
 72     set norelativenumber
 73   endif
 74 endfunction
 75 nnoremap <C-n> :call ToggleNumber()<cr>
 76 
 77 " Use a line cursor within insert mode and a block cursor everywhere else.
 78 "
 79 " Reference chart of values:
 80 "   Ps = 0  -> blinking block.
 81 "   Ps = 1  -> blinking block (default).
 82 "   Ps = 2  -> steady block.
 83 "   Ps = 3  -> blinking underline.
 84 "   Ps = 4  -> steady underline.
 85 "   Ps = 5  -> blinking bar (xterm).
 86 "   Ps = 6  -> steady bar (xterm).
 87 let &t_SI = "\e[6 q"
 88 let &t_EI = "\e[2 q"
 89 
 90 " get rid of swap files, backupfiles
 91 set backupdir=~/.vim/backup//
 92 set directory=~/.vim/swap//
 93 set undodir=~/.vim/undo//
 94 
 95 set tabstop=4
 96 set shiftwidth=4
 97 set softtabstop=4
 98 set expandtab

Sorry for the line numbers, for some reason yank does not copy to clipboard

ahmad-hossain commented 1 year ago

@sorinfratila I had the same problem on my Mac. Turns out the default Vim on Mac is the problem. It doesn't support termguicolors. You need to install a new version of vim.

I believe I used brew to install my new version brew install vim. You can do the same if you're on Mac.