Changed to unokai color scheme

This commit is contained in:
ObeseTermite 2025-06-11 18:43:44 -07:00
parent e72ae54666
commit 0af44b6964

17
vimrc
View file

@ -3,36 +3,47 @@ filetype indent on
set encoding=utf-8
" Save file as sudo even if not initially opened as sudo
command! W execute 'w !sudo tee % > /dev/null' <bar> edit!
" Custom keybinds FOR ME
nnoremap <buffer> <Leader>mm <cmd>make<CR>
nnoremap <buffer> <Leader>md :Termdebug<CR>
nnoremap <buffer> <Leader>/ :let @/ = ""<CR>
" folds
set foldmethod=syntax
set foldlevelstart=0
" make autocomplete a little more bash like
set wildmode=longest,list
set showcmd
color torte
color unokai
" searching shit
set ignorecase
set smartcase
set hlsearch
set incsearch
set relativenumber
" line number
set number
" syntax highlighting
syntax enable
" set tab width
set tabstop=4
set shiftwidth=4
set autoindent
set smartindent
set tags=./tags,tags;$HOME
" make gutentags automatically make a tags file if directory
" has a makefile
let g:gutentags_project_root = ['Makefile']
function! CheckBackspace() abort
@ -40,6 +51,7 @@ function! CheckBackspace() abort
return !col || getline('.')[col - 1] =~# '\s'
endfunction
" coc black magic
inoremap <silent><expr> <TAB>
\ coc#pum#visible() ? coc#pum#next(1) :
\ CheckBackspace() ? "\<Tab>" :
@ -57,6 +69,7 @@ packadd! termdebug
highlight ColorColumn ctermbg=magenta
call matchadd('ColorColumn', '\%81v', 100)
" auto install vimplug if it is not installed
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
@ -71,3 +84,5 @@ Plug 'ludovicchabant/vim-gutentags'
call plug#end()
" color again? but if i put it next to colorscheme it no work
highlight Normal ctermbg=16