4 changed files with 237 additions and 4 deletions
-
10Makefile
-
7lsp.vimrc
-
11minimal.vimrc
-
213noplug.vimrc
@ -0,0 +1,10 @@ |
|||||
|
ubuntu: |
||||
|
docker run -it --rm -v $(CURDIR):/root/sc ubuntu /bin/bash |
||||
|
|
||||
|
fedora: |
||||
|
docker run -it --rm -v $(CURDIR):/root/sc fedora /bin/bash |
||||
|
|
||||
|
alpine: |
||||
|
docker run -it --rm -v $(CURDIR):/root/sc alpine /bin/ash |
||||
|
|
||||
|
.PHONY: ubuntu fedora |
@ -0,0 +1,213 @@ |
|||||
|
filetype plugin indent on |
||||
|
filetype on |
||||
|
hi clear |
||||
|
|
||||
|
if exists('syntax on') |
||||
|
syntax reset |
||||
|
endif |
||||
|
|
||||
|
let g:mapleader=" " |
||||
|
" options |
||||
|
set nu |
||||
|
set rnu |
||||
|
|
||||
|
set mouse+=a |
||||
|
set linebreak |
||||
|
set shiftwidth=2 |
||||
|
set tabstop=2 |
||||
|
set softtabstop=2 |
||||
|
set expandtab |
||||
|
set smarttab |
||||
|
set shiftround |
||||
|
set autoindent |
||||
|
set textwidth=80 |
||||
|
set colorcolumn=80 |
||||
|
set nowrap |
||||
|
|
||||
|
set undodir=~/.vim/undofiles |
||||
|
set undofile nohlsearch incsearch |
||||
|
set scrolloff=7 |
||||
|
set wildmode=longest,list,full |
||||
|
set wildmenu |
||||
|
|
||||
|
|
||||
|
autocmd FileType tex,text set nosmarttab autoindent |
||||
|
autocmd Filetype python set textwidth=0 formatprg=autopep8 shiftwidth=4 tabstop=4 softtabstop=4 |
||||
|
autocmd FileType c,cpp,slang set nosmarttab autoindent |
||||
|
autocmd Filetype markdown set nosmarttab shiftwidth=4 tabstop=4 softtabstop=4 autoindent |
||||
|
|
||||
|
autocmd BufReadPost * |
||||
|
\ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit' |
||||
|
\ | exe "normal! g`\"" |
||||
|
\ | endif |
||||
|
|
||||
|
" Remaps |
||||
|
nnoremap <C-h> <C-w>h |
||||
|
nnoremap <C-j> <C-w>j |
||||
|
nnoremap <C-k> <C-w>k |
||||
|
nnoremap <C-l> <C-w>l |
||||
|
|
||||
|
nnoremap <C-h> <C-w>h |
||||
|
nnoremap <C-j> <C-w>j |
||||
|
nnoremap <C-k> <C-w>k |
||||
|
nnoremap <C-l> <C-w>l |
||||
|
|
||||
|
inoremap <A-a> ā |
||||
|
inoremap <A-e> ē |
||||
|
inoremap <A-i> ī |
||||
|
inoremap <A-o> ō |
||||
|
inoremap <A-u> ū |
||||
|
|
||||
|
nnoremap <F12> :w<BAR>:!texbld run compile<CR> |
||||
|
nnoremap <F5> :w<BAR>:!./test.sh<CR> |
||||
|
|
||||
|
vnoremap J :m '>+1<CR>gv=gv |
||||
|
vnoremap K :m '<-2<CR>gv=gv |
||||
|
|
||||
|
nnoremap J mzJ`z |
||||
|
nnoremap <C-d> <C-d>zz |
||||
|
nnoremap <C-u> <C-u>zz |
||||
|
nnoremap n nzzzv |
||||
|
nnoremap N Nzzzv |
||||
|
|
||||
|
xnoremap <leader>p _dP |
||||
|
vnoremap <leader>y +y |
||||
|
nnoremap <leader>y +y |
||||
|
nnoremap <leader>Y +Y |
||||
|
nnoremap <leader>x :!chmod +x %:p<CR> |
||||
|
nnoremap <leader>X :!chmod -x %<CR> |
||||
|
nnoremap <leader>e :! %:p<CR> |
||||
|
|
||||
|
nnoremap <C-n> :Lexplore<CR> |
||||
|
nnoremap <leader>pv :Explore<CR> |
||||
|
|
||||
|
set termguicolors |
||||
|
|
||||
|
|
||||
|
"===================COLORSCHEME====================================== |
||||
|
|
||||
|
set background=dark |
||||
|
|
||||
|
let g:colors_name='catppuccin_macchiato' |
||||
|
set t_Co=256 |
||||
|
|
||||
|
" rosewater = "#F4DBD6" |
||||
|
" flamingo = "#F0C6C6" |
||||
|
" pink = "#F5BDE6" |
||||
|
" mauve = "#C6A0F6" |
||||
|
" red = "#ED8796" |
||||
|
" maroon = "#EE99A0" |
||||
|
" peach = "#F5A97F" |
||||
|
" yellow = "#EED49F" |
||||
|
" green = "#A6DA95" |
||||
|
" teal = "#8BD5CA" |
||||
|
" sky = "#91D7E3" |
||||
|
" sapphire = "#7DC4E4" |
||||
|
" blue = "#8AADF4" |
||||
|
" lavender = "#B7BDF8" |
||||
|
|
||||
|
" text = "#CAD3F5" |
||||
|
" subtext1 = "#B8C0E0" |
||||
|
" subtext0 = "#A5ADCB" |
||||
|
" overlay2 = "#939AB7" |
||||
|
" overlay1 = "#8087A2" |
||||
|
" overlay0 = "#6E738D" |
||||
|
" surface2 = "#5B6078" |
||||
|
" surface1 = "#494D64" |
||||
|
" surface0 = "#363A4F" |
||||
|
|
||||
|
" base = "#24273A" |
||||
|
" mantle = "#1E2030" |
||||
|
" crust = "#181926" |
||||
|
|
||||
|
hi Normal guisp=NONE guifg=#CAD3F5 guibg=#24273A ctermfg=254 ctermbg=235 gui=NONE cterm=NONE |
||||
|
hi Visual guisp=NONE guifg=NONE guibg=#494D64 ctermfg=NONE ctermbg=240 gui=bold cterm=bold |
||||
|
|
||||
|
hi Conceal guisp=NONE guifg=#8087A2 guibg=NONE ctermfg=246 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi ColorColumn guisp=NONE guifg=NONE guibg=#363A4F ctermfg=NONE ctermbg=236 gui=NONE cterm=NONE |
||||
|
hi Cursor guisp=NONE guifg=#24273A guibg=#CAD3F5 ctermfg=235 ctermbg=254 gui=NONE cterm=NONE |
||||
|
hi lCursor guisp=NONE guifg=#24273A guibg=#CAD3F5 ctermfg=235 ctermbg=254 gui=NONE cterm=NONE |
||||
|
hi CursorIM guisp=NONE guifg=#24273A guibg=#CAD3F5 ctermfg=235 ctermbg=254 gui=NONE cterm=NONE |
||||
|
hi CursorColumn guisp=NONE guifg=NONE guibg=#1E2030 ctermfg=NONE ctermbg=234 gui=NONE cterm=NONE |
||||
|
hi CursorLine guisp=NONE guifg=NONE guibg=#363A4F ctermfg=NONE ctermbg=236 gui=NONE cterm=NONE |
||||
|
hi Directory guisp=NONE guifg=#8AADF4 guibg=NONE ctermfg=117 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi DiffAdd guisp=NONE guifg=#24273A guibg=#A6DA95 ctermfg=151 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi DiffChange guisp=NONE guifg=#24273A guibg=#EED49F ctermfg=223 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi DiffDelete guisp=NONE guifg=#24273A guibg=#ED8796 ctermfg=211 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi DiffText guisp=NONE guifg=#24273A guibg=#8AADF4 ctermfg=117 ctermbg=235 gui=NONE cterm=NONE |
||||
|
hi EndOfBuffer guisp=NONE guifg=NONE guibg=NONE ctermfg=NONE ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi ErrorMsg guisp=NONE guifg=#ED8796 guibg=NONE ctermfg=211 ctermbg=NONE gui=bold,italic cterm=bold,italic |
||||
|
hi VertSplit guisp=NONE guifg=#181926 guibg=NONE ctermfg=234 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi Folded guisp=NONE guifg=#8AADF4 guibg=#494D64 ctermfg=117 ctermbg=240 gui=NONE cterm=NONE |
||||
|
hi FoldColumn guisp=NONE guifg=#6E738D guibg=#24273A ctermfg=243 ctermbg=235 gui=NONE cterm=NONE |
||||
|
hi SignColumn guisp=NONE guifg=#494D64 guibg=#24273A ctermfg=240 ctermbg=235 gui=NONE cterm=NONE |
||||
|
hi IncSearch guisp=NONE guifg=#494D64 guibg=#F5BDE6 ctermfg=240 ctermbg=218 gui=NONE cterm=NONE |
||||
|
hi CursorLineNR guisp=NONE guifg=#B7BDF8 guibg=NONE ctermfg=NONE ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi LineNr guisp=NONE guifg=#494D64 guibg=NONE ctermfg=240 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi MatchParen guisp=NONE guifg=#F5A97F guibg=NONE ctermfg=216 ctermbg=NONE gui=bold cterm=bold |
||||
|
hi ModeMsg guisp=NONE guifg=#CAD3F5 guibg=NONE ctermfg=254 ctermbg=NONE gui=bold cterm=bold |
||||
|
hi MoreMsg guisp=NONE guifg=#8AADF4 guibg=NONE ctermfg=117 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi NonText guisp=NONE guifg=#6E738D guibg=NONE ctermfg=243 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi Pmenu guisp=NONE guifg=#939AB7 guibg=#363A4F ctermfg=251 ctermbg=236 gui=NONE cterm=NONE |
||||
|
hi PmenuSel guisp=NONE guifg=#CAD3F5 guibg=#494D64 ctermfg=254 ctermbg=240 gui=bold cterm=bold |
||||
|
hi PmenuSbar guisp=NONE guifg=NONE guibg=#494D64 ctermfg=NONE ctermbg=240 gui=NONE cterm=NONE |
||||
|
hi PmenuThumb guisp=NONE guifg=NONE guibg=#6E738D ctermfg=NONE ctermbg=243 gui=NONE cterm=NONE |
||||
|
hi Question guisp=NONE guifg=#8AADF4 guibg=NONE ctermfg=117 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi QuickFixLine guisp=NONE guifg=NONE guibg=#494D64 ctermfg=NONE ctermbg=240 gui=bold cterm=bold |
||||
|
hi Search guisp=NONE guifg=#F5BDE6 guibg=#494D64 ctermfg=218 ctermbg=240 gui=bold cterm=bold |
||||
|
hi SpecialKey guisp=NONE guifg=#A5ADCB guibg=NONE ctermfg=254 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi SpellBad guisp=#ED8796 guifg=NONE guibg=NONE ctermfg=211 ctermbg=NONE gui=underline cterm=underline |
||||
|
hi SpellCap guisp=#EED49F guifg=NONE guibg=NONE ctermfg=223 ctermbg=NONE gui=underline cterm=underline |
||||
|
hi SpellLocal guisp=#8AADF4 guifg=NONE guibg=NONE ctermfg=117 ctermbg=NONE gui=underline cterm=underline |
||||
|
hi SpellRare guisp=#A6DA95 guifg=NONE guibg=NONE ctermfg=151 ctermbg=NONE gui=underline cterm=underline |
||||
|
hi StatusLine guisp=NONE guifg=#CAD3F5 guibg=#1E2030 ctermfg=254 ctermbg=234 gui=NONE cterm=NONE |
||||
|
hi StatusLineNC guisp=NONE guifg=#494D64 guibg=#1E2030 ctermfg=240 ctermbg=234 gui=NONE cterm=NONE |
||||
|
hi TabLine guisp=NONE guifg=#494D64 guibg=#1E2030 ctermfg=240 ctermbg=234 gui=NONE cterm=NONE |
||||
|
hi TabLineFill guisp=NONE guifg=NONE guibg=#1E2030 ctermfg=NONE ctermbg=234 gui=NONE cterm=NONE |
||||
|
hi TabLineSel guisp=NONE guifg=#A6DA95 guibg=#494D64 ctermfg=151 ctermbg=240 gui=NONE cterm=NONE |
||||
|
hi Title guisp=NONE guifg=#8AADF4 guibg=NONE ctermfg=117 ctermbg=NONE gui=bold cterm=bold |
||||
|
hi VisualNOS guisp=NONE guifg=NONE guibg=#494D64 ctermfg=NONE ctermbg=240 gui=bold cterm=bold |
||||
|
hi WarningMsg guisp=NONE guifg=#EED49F guibg=NONE ctermfg=223 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi WildMenu guisp=NONE guifg=NONE guibg=#6E738D ctermfg=NONE ctermbg=243 gui=NONE cterm=NONE |
||||
|
hi Comment guisp=NONE guifg=#5B6078 guibg=NONE ctermfg=243 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi Constant guisp=NONE guifg=#F5A97F guibg=NONE ctermfg=216 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi Identifier guisp=NONE guifg=#F0C6C6 guibg=NONE ctermfg=224 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi Statement guisp=NONE guifg=#C6A0F6 guibg=NONE ctermfg=183 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi PreProc guisp=NONE guifg=#F5BDE6 guibg=NONE ctermfg=218 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi Type guisp=NONE guifg=#8AADF4 guibg=NONE ctermfg=117 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi Special guisp=NONE guifg=#F5BDE6 guibg=NONE ctermfg=218 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi Underlined guisp=NONE guifg=#CAD3F5 guibg=#24273A ctermfg=254 ctermbg=235 gui=underline cterm=underline |
||||
|
hi Error guisp=NONE guifg=#ED8796 guibg=NONE ctermfg=211 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi Todo guisp=NONE guifg=#24273A guibg=#EED49F ctermfg=235 ctermbg=223 gui=bold cterm=bold |
||||
|
|
||||
|
hi String guisp=NONE guifg=#A6DA95 guibg=NONE ctermfg=151 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi Character guisp=NONE guifg=#8BD5CA guibg=NONE ctermfg=152 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi Number guisp=NONE guifg=#F5A97F guibg=NONE ctermfg=216 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi Boolean guisp=NONE guifg=#F5A97F guibg=NONE ctermfg=216 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi Float guisp=NONE guifg=#F5A97F guibg=NONE ctermfg=216 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi Function guisp=NONE guifg=#8AADF4 guibg=NONE ctermfg=117 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi Conditional guisp=NONE guifg=#ED8796 guibg=NONE ctermfg=211 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi Repeat guisp=NONE guifg=#ED8796 guibg=NONE ctermfg=211 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi Label guisp=NONE guifg=#F5A97F guibg=NONE ctermfg=216 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi Operator guisp=NONE guifg=#91D7E3 guibg=NONE ctermfg=117 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi Keyword guisp=NONE guifg=#F5BDE6 guibg=NONE ctermfg=218 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi Include guisp=NONE guifg=#F5BDE6 guibg=NONE ctermfg=218 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi StorageClass guisp=NONE guifg=#EED49F guibg=NONE ctermfg=223 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi Structure guisp=NONE guifg=#EED49F guibg=NONE ctermfg=223 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi Typedef guisp=NONE guifg=#EED49F guibg=NONE ctermfg=223 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi debugPC guisp=NONE guifg=NONE guibg=#181926 ctermfg=223 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
hi debugBreakpoint guisp=NONE guifg=#6E738D guibg=#24273A ctermfg=223 ctermbg=NONE gui=NONE cterm=NONE |
||||
|
|
||||
|
hi link Define PreProc |
||||
|
hi link Macro PreProc |
||||
|
hi link PreCondit PreProc |
||||
|
hi link SpecialChar Special |
||||
|
hi link Tag Special |
||||
|
hi link Delimiter Special |
||||
|
hi link SpecialComment Special |
||||
|
hi link Debug Special |
||||
|
hi link Exception Error |
||||
|
hi link StatusLineTerm StatusLine |
||||
|
hi link StatusLineTermNC StatusLineNC |
||||
|
hi link Terminal Normal |
||||
|
hi link Ignore Comment |
Write
Preview
Loading…
Cancel
Save
Reference in new issue