From 0af44b69640600b48699425ab622e6473ba11fc7 Mon Sep 17 00:00:00 2001 From: ObeseTermite Date: Wed, 11 Jun 2025 18:43:44 -0700 Subject: [PATCH] Changed to unokai color scheme --- vimrc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 52990af..5b35971 100644 --- a/vimrc +++ b/vimrc @@ -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' edit! +" Custom keybinds FOR ME nnoremap mm make nnoremap md :Termdebug +nnoremap / :let @/ = "" +" 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 \ coc#pum#visible() ? coc#pum#next(1) : \ CheckBackspace() ? "\" : @@ -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