From 0b5c97176762de5f1c37eb84cb81fde1e6c8c7ef Mon Sep 17 00:00:00 2001 From: saibotk Date: Wed, 23 Feb 2022 00:20:43 +0100 Subject: [PATCH] vim: remove configs --- install.conf.yaml | 4 - vim/.gitignore | 2 - vim/vim/ftplugin/markdown.vim | 8 - vim/vim/ftplugin/python.vim | 7 - vim/vim/snipps/blade.snippets | 21 --- vim/vim/snipps/css.snippets | 5 - vim/vim/snipps/html.snippets | 30 ---- vim/vim/snipps/liquid.snippets | 1 - vim/vim/snipps/markdown.snippets | 8 - vim/vim/snipps/markwdown.snippets | 4 - vim/vim/snipps/php.snippets | 13 -- vim/vim/snipps/plaintex.snippets | 1 - vim/vim/snipps/tex.snippets | 133 -------------- vim/vim/snipps/vim.snippets | 5 - vim/vim/snipps/vue.snippets | 2 - vim/vimrc | 281 ------------------------------ 16 files changed, 525 deletions(-) delete mode 100644 vim/.gitignore delete mode 100644 vim/vim/ftplugin/markdown.vim delete mode 100644 vim/vim/ftplugin/python.vim delete mode 100644 vim/vim/snipps/blade.snippets delete mode 100644 vim/vim/snipps/css.snippets delete mode 100644 vim/vim/snipps/html.snippets delete mode 100644 vim/vim/snipps/liquid.snippets delete mode 100644 vim/vim/snipps/markdown.snippets delete mode 100644 vim/vim/snipps/markwdown.snippets delete mode 100644 vim/vim/snipps/php.snippets delete mode 100644 vim/vim/snipps/plaintex.snippets delete mode 100644 vim/vim/snipps/tex.snippets delete mode 100644 vim/vim/snipps/vim.snippets delete mode 100644 vim/vim/snipps/vue.snippets delete mode 100644 vim/vimrc diff --git a/install.conf.yaml b/install.conf.yaml index 1f6ae6c..5ae96cb 100644 --- a/install.conf.yaml +++ b/install.conf.yaml @@ -9,10 +9,6 @@ - link: ~/.tmux.conf: path: shell/tmux.conf - ~/.vimrc: - path: vim/vimrc - ~/.vim: - path: vim/vim ~/.config/nvim: path: nvim ~/.config/kitty: diff --git a/vim/.gitignore b/vim/.gitignore deleted file mode 100644 index 347b774..0000000 --- a/vim/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -vim/bundle/* -vim/autoload diff --git a/vim/vim/ftplugin/markdown.vim b/vim/vim/ftplugin/markdown.vim deleted file mode 100644 index b5ebb0c..0000000 --- a/vim/vim/ftplugin/markdown.vim +++ /dev/null @@ -1,8 +0,0 @@ -setlocal autoindent -setlocal colorcolumn=0 -setlocal linebreak -setlocal number -setlocal shiftwidth=4 -setlocal tabstop=4 -setlocal wrap -setlocal nospell diff --git a/vim/vim/ftplugin/python.vim b/vim/vim/ftplugin/python.vim deleted file mode 100644 index 431871b..0000000 --- a/vim/vim/ftplugin/python.vim +++ /dev/null @@ -1,7 +0,0 @@ -set tabstop=4 -set softtabstop=4 -set shiftwidth=4 -set textwidth=79 -set expandtab -set autoindent -set fileformat=unix diff --git a/vim/vim/snipps/blade.snippets b/vim/vim/snipps/blade.snippets deleted file mode 100644 index cc81bb8..0000000 --- a/vim/vim/snipps/blade.snippets +++ /dev/null @@ -1,21 +0,0 @@ -extends php, html -snippet var "Display Variable" -{{ $1 }} $0 -endsnippet - -snippet each "For Each Loop" -@foreach ($1 as $2) - $0 -@endforeach -endsnippet - -snippet sec "Section" -@section('$1') -$0 -@endsection -endsnippet - -snippet ext "extends statement" -@extends('$1') -$0 -endsnippet diff --git a/vim/vim/snipps/css.snippets b/vim/vim/snipps/css.snippets deleted file mode 100644 index 1b490ac..0000000 --- a/vim/vim/snipps/css.snippets +++ /dev/null @@ -1,5 +0,0 @@ -snippet id "rule for id" -#$1 { - $0 -} -endsnippet diff --git a/vim/vim/snipps/html.snippets b/vim/vim/snipps/html.snippets deleted file mode 100644 index 5106cf4..0000000 --- a/vim/vim/snipps/html.snippets +++ /dev/null @@ -1,30 +0,0 @@ -extends css -snippet div "Div container" -
- $0 -
-endsnippet - -snippet tag "generic Element" -<${1:tag}${2: class="$3"}> - $0 - -endsnippet - -snippet tags "generic Element self closing" -<${1:tag}${2: class="$3"} />$0 -endsnippet - -snippet tagi "generic inline Element" -<${1:tag}${2: class="$3"}>$4$0 -endsnippet - -snippet com "Comment" -$0 -endsnippet - -snippet lin "link element" - - $0 - -endsnippet diff --git a/vim/vim/snipps/liquid.snippets b/vim/vim/snipps/liquid.snippets deleted file mode 100644 index c94e534..0000000 --- a/vim/vim/snipps/liquid.snippets +++ /dev/null @@ -1 +0,0 @@ -extends markdown diff --git a/vim/vim/snipps/markdown.snippets b/vim/vim/snipps/markdown.snippets deleted file mode 100644 index f227a02..0000000 --- a/vim/vim/snipps/markdown.snippets +++ /dev/null @@ -1,8 +0,0 @@ -extends html -snippet ref "Markdown Link" -[$1]({${2:https://$3}${4: "$5"})$0 -endsnippet - -snippet cod "Code Block" -\`$1\`$0 -endsnippet diff --git a/vim/vim/snipps/markwdown.snippets b/vim/vim/snipps/markwdown.snippets deleted file mode 100644 index b0f51db..0000000 --- a/vim/vim/snipps/markwdown.snippets +++ /dev/null @@ -1,4 +0,0 @@ -extends html -snippet ref "Markdown Link" -[$1]({${2:https://$3}${4: "$5"})$0 -endsnippet diff --git a/vim/vim/snipps/php.snippets b/vim/vim/snipps/php.snippets deleted file mode 100644 index 45a4f0e..0000000 --- a/vim/vim/snipps/php.snippets +++ /dev/null @@ -1,13 +0,0 @@ -extends html -snippet pubf "Public Function" -public function $1($2) { - $0 -} -endsnippet - -snippet prif "Private Function" -private function $1($2) { - $0 -} -endsnippet - diff --git a/vim/vim/snipps/plaintex.snippets b/vim/vim/snipps/plaintex.snippets deleted file mode 100644 index 19dd524..0000000 --- a/vim/vim/snipps/plaintex.snippets +++ /dev/null @@ -1 +0,0 @@ -extends tex diff --git a/vim/vim/snipps/tex.snippets b/vim/vim/snipps/tex.snippets deleted file mode 100644 index 21f5884..0000000 --- a/vim/vim/snipps/tex.snippets +++ /dev/null @@ -1,133 +0,0 @@ -snippet mal "Math inline" -$ $1 $$0 -endsnippet - -snippet mab "Mathbb character" -\mathbb{$1}$0 -endsnippet - -snippet inf "Infity symbol" i -\infty -endsnippet - -snippet sqrt "Square Root" i -\\sqrt\{$1\}$0 -endsnippet - -snippet lim "Limit sign" i -\\lim_\{${1:n} \to ${2:\\infty}\} $0 -endsnippet - -snippet abs "Absolute" i -\\lvert $1 \\rvert$0 -endsnippet - -snippet mb "Math Braces" -\\{ $1 \\}$0 -endsnippet - -snippet fra "Fraction" i -\frac\{${1:numerator}\}\{${2:demoninator}\}$0 -endsnippet - -snippet sum "Sum character" -\sum_\{${1:lower}\}^\{${2:upper}\} $0 -endsnippet - -snippet int "integral character" -\int_\{${1:lower}\}^\{${2:upper}\} $0 -endsnippet - -snippet dx "dx sign" i -\mathrm{d}x$0 -endsnippet - -snippet ^ "Superscript" i -^{$1}$0 -endsnippet - -snippet _ "Superlowscript" i -_{$1}$0 -endsnippet - -snippet ove "Overline" -\overline{$1}$0 -endsnippet - -snippet ma "Math in own line" -\[ $1 \]$0 -endsnippet - -snippet beg "Begin" -\begin{$1} - $0 -\end{$1} -endsnippet - -snippet ali "align" -\begin{align*} - $0 -\end{align*} -endsnippet - -snippet sec "Section" -\section{$1} -$0 -endsnippet - -snippet secs "Subsection" -\subsection{$1} -$0 -endsnippet - -snippet emp "Emphasize Text" -\emph{$1}$0 -endsnippet - -snippet fat "Fat Print Text" -\textbf{$1}$0 -endsnippet - -snippet secss "Subsubsection" -\subsubsection{$1} -$0 -endsnippet - -snippet doc "Basic Document" -\documentclass[11pt,a4paper]{article} -\usepackage[utf8]{inputenc} -\usepackage[german]{babel} -\usepackage[T1]{fontenc} -\usepackage{amsmath} -\usepackage{amsfonts} -\usepackage{amssymb} -\usepackage{enumitem} -\usepackage[left=3cm,right=3cm,top=2cm,bottom=2cm]{geometry} -\author{${1:author}} -\title{${2:title}} -\begin{document} - -\maketitle - -$0 - -\end{document} -endsnippet - -# Sqeuenzkalküle - -snippet axi "Axiome" -\AxiomC{\$ $1 \$}$0 -endsnippet - -snippet rla "Right Label" -\RightLabel{\$ $1 \$}$0 -endsnippet - -snippet uin "Unary Inf" -\UnaryInfC{\$ $1 \$}$0 -endsnippet - -snippet bin "Binary Inf" -\BinaryInfC{\$ $1 \$}$0 -endsnippet diff --git a/vim/vim/snipps/vim.snippets b/vim/vim/snipps/vim.snippets deleted file mode 100644 index 82dfd1e..0000000 --- a/vim/vim/snipps/vim.snippets +++ /dev/null @@ -1,5 +0,0 @@ -snippet plug "Plugin Snippet" -" $2 -Plug '$1' -$0 -endsnippet diff --git a/vim/vim/snipps/vue.snippets b/vim/vim/snipps/vue.snippets deleted file mode 100644 index 7447bf0..0000000 --- a/vim/vim/snipps/vue.snippets +++ /dev/null @@ -1,2 +0,0 @@ -extends html - diff --git a/vim/vimrc b/vim/vimrc deleted file mode 100644 index 8d1e4d8..0000000 --- a/vim/vimrc +++ /dev/null @@ -1,281 +0,0 @@ -set nocompatible " required - -" set the runtime path to include Vundle and initialize -call plug#begin('~/.vim/bundle') - -" USEFUL -" comment plugin -Plug 'tpope/vim-commentary' - -" brackets management -Plug 'tpope/vim-surround' - -" snippets -Plug 'SirVer/ultisnips' - -" WINDOW MANAGEMENT -" tmux navigator -Plug 'christoomey/vim-tmux-navigator' - -" winresizer -Plug 'simeji/winresizer' - -" FILE MANAGEMENT -" nert-tree -Plug 'scrooloose/nerdtree' - -" fzf plugin -Plug 'junegunn/fzf.vim' - -" GIT STUFF -" git -Plug 'tpope/vim-fugitive' - -" vim gitgutter -Plug 'airblade/vim-gitgutter' - -" COLORS -" Plastic colorscheme -Plug 'jidbo/kuroi.vim' - -" powerline -Plug 'vim-airline/vim-airline' -Plug 'vim-airline/vim-airline-themes' - -" LANGUAGE SUPPORT -" vim ale for interaction with language servers -Plug 'w0rp/ale' - -" editorconfig plugin -Plug 'editorconfig/editorconfig-vim' - -" language packs -Plug 'sheerun/vim-polyglot' - -call plug#end() " required -filetype plugin indent on " required - -" syntax -syntax on -colorscheme kuroi -set t_Co=256 -set background=dark -let mapleader=" " -hi MatchParen cterm=bold ctermbg=NONE ctermfg=red - -" random settings -set number -set clipboard=unnamed -set mouse=nvi -set smarttab -set visualbell -set virtualedit=block -set scrolloff=1 -set wildmenu -set term=screen-256color -set autoread -set lazyredraw -set history=250 - -" tabs and line wrap -set tabstop=4 -set wrapmargin=8 -set softtabstop=0 noexpandtab -set shiftwidth=4 -set backspace=2 -set backspace=indent,eol,start -set encoding=utf-8 -set autoindent - -" search -set incsearch -set hlsearch -set smartcase - -" Disable Backup and Swap files -set noswapfile -set nobackup -set nowritebackup - -" setup split -set splitbelow -set splitright - -" tabs -nnoremap t :tabnew -nnoremap gT -nnoremap gt - -" search for visual selection -vnoremap // y/" - -" Enable folding -set foldmethod=indent -set foldlevel=99 - -" remap code folding -nnoremap g za - -" auto reload .vimrc on write -autocmd BufWritePost .vimrc source % - -" ex command -cnoremap -cnoremap - -" toggle hybrid number mode -nnoremap h :set rnu! -:augroup numbertoggle -: autocmd! -: autocmd BufEnter,FocusGained,InsertLeave * set relativenumber -: autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber -:augroup END - -" disable arrow keys -noremap -noremap -noremap -noremap - -" auto expand brackets -inoremap (; ()O -inoremap (, (),O -inoremap {; {}O -inoremap {, {},O -inoremap [; []O -inoremap [, [],O - -" Delete buffer while keeping window layout (don't close buffer's windows). -" Version 2008-11-18 from http://vim.wikia.com/wiki/VimTip165 -if v:version < 700 || exists('loaded_bclose') || &cp - finish -endif -let loaded_bclose = 1 -if !exists('bclose_multiple') - let bclose_multiple = 1 -endif - -" Display an error message. -function! s:Warn(msg) - echohl ErrorMsg - echomsg a:msg - echohl NONE -endfunction - -" Command ':Bclose' executes ':bd' to delete buffer in current window. -" The window will show the alternate buffer (Ctrl-^) if it exists, -" or the previous buffer (:bp), or a blank buffer if no previous. -" Command ':Bclose!' is the same, but executes ':bd!' (discard changes). -" An optional argument can specify which buffer to close (name or number). -function! s:Bclose(bang, buffer) - if empty(a:buffer) - let btarget = bufnr('%') - elseif a:buffer =~ '^\d\+$' - let btarget = bufnr(str2nr(a:buffer)) - else - let btarget = bufnr(a:buffer) - endif - if btarget < 0 - call s:Warn('No matching buffer for '.a:buffer) - return - endif - if empty(a:bang) && getbufvar(btarget, '&modified') - call s:Warn('No write since last change for buffer '.btarget.' (use :Bclose!)') - return - endif - " Numbers of windows that view target buffer which we will delete. - let wnums = filter(range(1, winnr('$')), 'winbufnr(v:val) == btarget') - if !g:bclose_multiple && len(wnums) > 1 - call s:Warn('Buffer is in multiple windows (use ":let bclose_multiple=1")') - return - endif - let wcurrent = winnr() - for w in wnums - execute w.'wincmd w' - let prevbuf = bufnr('#') - if prevbuf > 0 && buflisted(prevbuf) && prevbuf != btarget - buffer # - else - bprevious - endif - if btarget == bufnr('%') - " Numbers of listed buffers which are not the target to be deleted. - let blisted = filter(range(1, bufnr('$')), 'buflisted(v:val) && v:val != btarget') - " Listed, not target, and not displayed. - let bhidden = filter(copy(blisted), 'bufwinnr(v:val) < 0') - " Take the first buffer, if any (could be more intelligent). - let bjump = (bhidden + blisted + [-1])[0] - if bjump > 0 - execute 'buffer '.bjump - else - execute 'enew'.a:bang - endif - endif - endfor - execute 'bdelete'.a:bang.' '.btarget - execute wcurrent.'wincmd w' -endfunction -command! -bang -complete=buffer -nargs=? Bclose call Bclose(, ) -nnoremap bd :Bclose - -" PLUGIN SETTINGS -" polyglot setup -let g:polyglot_disabled = ["latex"] -" nerd tree setup -let NERDTreeIgnore=['\.pyc$', '\~$'] "ignore files in NERDTree -map e :NERDTreeToggle - -" AIRLINE SETUP -" sections -let g:airline_section_y = "" -let g:airline_section_z = "%l/%L:%c" -let g:airline_section_b = "%{airline#util#wrap(airline#extensions#branch#get_head(),0)}" -" other stuff -let g:airline_theme='luna' -let g:airline_solarized_bg='dark' -let g:airline_powerline_fonts = 1 -let g:airline_inactive_collapse=1 -let g:airline_skip_empty_sections = 1 -let g:airline#extensions#whitespace#enabled = 0 -let g:airline#extensions#wordcount#enabled = 0 -let g:airline#extensions#keymap#enabled = 0 -set ttimeoutlen=50 - -" gitgutter setup -let g:gitgutter_sign_added = '∙' -let g:gitgutter_sign_modified = '∙' -let g:gitgutter_sign_removed = '∙' -let g:gitgutter_sign_modified_removed = '∙' -augroup VimDiff - autocmd! - autocmd VimEnter,FilterWritePre * if &diff | GitGutterDisable | endif -augroup END - -" fzf setup -nmap :Buffers -nmap f :GFiles -let g:fzf_buffers_jump = 1 - -" vim-ale setup -let g:ale_completion_enabled = 1 -let g:ale_lint_on_text_changed = 'never' -let g:ale_fixers = { -\ '*': ['trim_whitespace'], -\ 'python': ['autopep8'] -\ } -nmap d :ALEGoToDefinition -nmap r :ALEFindReferences -nmap b :ALEFix -nnoremap l :lnext -nnoremap p :lprevious - -" UltiSnip setup - -" Trigger configuration -let g:UltiSnipsExpandTrigger="" -let g:UltiSnipsJumpForwardTrigger="" -let g:UltiSnipsJumpBackwardTrigger="" - -" If you want :UltiSnipsEdit to split your window. -let g:UltiSnipsEditSplit="vertical" -let g:UltiSnipsSnippetDirectories=[$HOME."/.vim/snipps"]