From 051974b683211cd241aa593dc69343171dc17224 Mon Sep 17 00:00:00 2001 From: Magdalena Szweda Date: Sat, 3 Oct 2026 10:12:26 +0200 Subject: vim: remove vim --- vim/.vimrc | 187 ------------------------------------------------------------- 1 file changed, 187 deletions(-) delete mode 100644 vim/.vimrc (limited to 'vim/.vimrc') diff --git a/vim/.vimrc b/vim/.vimrc deleted file mode 100644 index 85e73df..0000000 --- a/vim/.vimrc +++ /dev/null @@ -1,187 +0,0 @@ -if empty(glob('~/.vim/autoload/plug.vim')) - silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs - \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim -endif -let g:polyglot_disabled = ['markdown'] -call plug#begin('~/.vim/plugged') -Plug 'itchyny/lightline.vim' -Plug 'rafi/awesome-vim-colorschemes' -Plug 'mattn/emmet-vim' -Plug 'liuchengxu/vim-which-key' -Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } -Plug 'junegunn/fzf.vim' -Plug 'kamil-stachowski/flatwhite-vim' -Plug 'ap/vim-buftabline' -Plug 'sheerun/vim-polyglot' -Plug 'preservim/vim-markdown' -Plug 'tpope/vim-commentary' -Plug 'yegappan/lsp' -Plug 'dense-analysis/ale' -Plug 'tpope/vim-surround' -Plug 'tpope/vim-repeat' -Plug 'andymass/vim-matchup' -Plug 'kalbasit/vim-colemak' -call plug#end() - -let mapleader = "\" -syntax on -filetype on -filetype indent on -filetype plugin on - -set updatetime=300 -set completeopt=menuone,popup,noinsert,noselect -set scrolloff=5 " same as helix's scrolloff -set clipboard=unnamedplus -set splitright -set splitbelow -set confirm -set title -set fileformat=unix -set encoding=UTF-8 -set number -set nowrap -set relativenumber -set expandtab -set tabstop=4 -set shiftwidth=4 -set smarttab -set smartindent -set noswapfile -set incsearch -set ignorecase -set smartcase -set autochdir -set hidden -set virtualedit=onemore -set timeoutlen=500 -set ttimeoutlen=1 -set termguicolors -set laststatus=2 -set noshowmode -set undofile -set undodir=~/.vim/undodir -set signcolumn=yes -set shortmess+=c -" etc -colorscheme carbonized-dark -augroup colors_whichkey - autocmd! -autocmd FileType which_key highlight WhichKey guifg=#88C0D0 gui=bold -autocmd FileType which_key highlight WhichKeySeperator guifg=#4C566A -autocmd FileType which_key highlight WhichKeyGroup guifg=#EBCB8B gui=bold -autocmd FileType which_key highlight WhichKeyDesc guifg=#ECEFF4 -augroup END - -nnoremap -nnoremap :WhichKey '' -inoremap l -inoremap pumvisible() ? "\" : "\" -function! Oxlint_fix(buffer) abort - return { - \ 'command': 'oxlint --fix --stdin --stdin-filename %s < %t' - \} -endfunction -execute ale#fix#registry#Add('oxlint', 'Oxlint_fix', ['javascript', 'typescript'], 'oxlint') -let g:ale_linters = { - \'vim': ['vint'], - \'css': ['stylelint'], - \'html': ['tidy', 'htmlhint'], - \'javascript': [], - \'typescript': [], - \'go': ['golangci-lint'], - \'markdown': [], - \} -let g:ale_fixers = { - \'html': ['tidy'], - \'javascript': ['oxlint'], - \'typescript': ['oxlint'], - \} -let g:ale_html_tidy_options = '-indent -asxhtml -q ' -let g:ale_sign_column_always = 1 -let g:lsp_settings_filetype_markdown = [] -let g:ale_lint_on_save = 1 -let g:ale_fix_on_save = 1 - -let g:buftabline_show = 2 -let g:buftabline_numbers = 1 - -let g:user_emmet_leader_key='' -let g:user_emmet_mode='n' -let g:user_emmet_install_global = 0 - -let g:surround_no_mappings = 1 - -let g:vim_markdown_folding_disabled = 0 -let g:vim_markdown_folding_style_pythonic = 1 -let g:vim_markdown_override_foldtext = 0 -let g:vim_markdown_conceal_code_blocks = 1 -let g:vim_markdown_fenced_languages = ['haskell'] -augroup md_fold -autocmd! -autocmd FileType markdown setlocal foldlevelstart=99 -autocmd FileType markdown setlocal conceallevel=2 concealcursor=nc -augroup END - -let g:which_key_map = {} -let g:which_key_map.f = ['Files', 'file buffer'] -let g:which_key_map.b = { - \ 'name' : '+buffer', - \ 'n' : ['bn', 'next buffer'], - \ 'p' : ['bp', 'previous buffer'], - \ 'b' : ['Buffers', 'fuzzy find buffers'], - \ } -nmap sa Ysurround -nmap saa Yssurround -nmap sc Csurround -nmap sd Dsurround -xmap s VSurround - -let g:which_key_map.s = { 'name' : '+surround' } -let g:which_key_map.s.a = 'add surround' -let g:which_key_map.s.aa = 'add surround (line)' -let g:which_key_map.s.c = 'change surround' -let g:which_key_map.s.d = 'delete surround' -call which_key#register('', 'g:which_key_map') - -augroup lsp - autocmd! -autocmd User LspSetup call LspOptionsSet(#{ - \ autoComplete: v:true, - \ autoHighlightDiags: v:true, - \ noNewlineCompletion: v:true, - \ showDiagInPopup: v:true, - \ formatFallback: v:false, - \ }) - -autocmd User LspSetup call LspAddServer([ - \ #{name: 'hs', filetype: ['haskell', 'lhaskell'], path: 'haskell-language-server-wrapper'}, - \ #{name: 'pylsp', filetype: 'python', path: 'pylsp'}, - \ #{name: 'clangd', filetype: ['c', 'cpp', 'objc', 'objcpp'], path: 'clangd', args: ['--background-index']}, - \ #{name: 'html', filetype: 'html', path: 'vscode-html-language-server', args: ['--stdio']}, - \ #{name: 'css', filetype: ['css', 'scss', 'less'], path: 'vscode-css-language-server', args: ['--stdio']}, - \ #{name: 'ts', filetype: ['typescript', 'javascript', 'javascriptreact', 'typescriptreact'], path: 'typescript-language-server', args: ['--stdio']}, - \ #{name: 'oxlint', filetype: ['typescript', 'javascript', 'javascriptreact', 'typescriptreact'], path: 'oxlint', args: ['--lsp']}, - \ #{name: 'vim', filetype: 'vim', path: 'vim-language-server', args: ['--stdio']}, - \ #{name: 'go', filetype: 'go', path: 'gopls', args: ['--stdio']}, - \ #{name: 'zk', filetype: 'markdown', path: 'zk', args: ['lsp']}, - \]) - - -autocmd User LspAttached call s:lsp_keymaps() -function! s:lsp_keymaps() abort - nmap gs :LspDocumentSymbol - nmap gr :LspShowReferences - nmap gi :LspGotoImpl - nmap gt :LspGotoTypeDef - nmap gm :LspGotoDefinition - nmap rn :LspRename - nmap [g :LspDiagPrev - nmap ]g :LspDiagNext - nmap K :LspHover - if index(['vim', 'html', 'css', 'markdown'], &filetype) == -1 - autocmd BufWritePre LspFormat - endif -endfunction -augroup END - -- cgit v1.2.3