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