aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorMax Christian Pohle2024-05-12 21:01:00 +0200
committerMax Christian Pohle2024-05-12 21:01:00 +0200
commiteec48ff71881d8757b79dcd95aac9dac4d71bf72 (patch)
tree8e21c80a8fecbcf7a6b36c3db1d2aa061bda1959 /plugin
parentf3eb203b4ad79090e36982e7b417c0cf0de52646 (diff)
downloadvim-eec48ff71881d8757b79dcd95aac9dac4d71bf72.tar.bz2
vim-eec48ff71881d8757b79dcd95aac9dac4d71bf72.zip
tidied this repo up and uploaded my new nvim from scratch config
Diffstat (limited to 'plugin')
-rw-r--r--plugin/lsp.nvim1
-rw-r--r--plugin/max-find-shell.vim11
-rw-r--r--plugin/max-fix-colorschemes.vim62
-rw-r--r--plugin/max-set-window-title.vim22
-rw-r--r--plugin/netrw.vim16
-rw-r--r--plugin/vimdiff.vim4
-rw-r--r--plugin/youcompleteme.vim21
7 files changed, 0 insertions, 137 deletions
diff --git a/plugin/lsp.nvim b/plugin/lsp.nvim
deleted file mode 100644
index 979b35f..0000000
--- a/plugin/lsp.nvim
+++ /dev/null
@@ -1 +0,0 @@
1command! LspFix lua vim.lsp.buf.code_action()
diff --git a/plugin/max-find-shell.vim b/plugin/max-find-shell.vim
deleted file mode 100644
index 778f0fb..0000000
--- a/plugin/max-find-shell.vim
+++ /dev/null
@@ -1,11 +0,0 @@
1"=======================================================================================================================
2" SHELL:
3" Many scripts rely on bash. We help to find the bash binary
4"=======================================================================================================================
5if filereadable("/bin/bash")
6 set shell=/bin/bash
7elseif filereadable("/usr/local/bin/bash")
8 set shell=/usr/local/bin/bash
9elseif has("win32")
10 set shell="cmd.exe"
11endif
diff --git a/plugin/max-fix-colorschemes.vim b/plugin/max-fix-colorschemes.vim
deleted file mode 100644
index 9d0c034..0000000
--- a/plugin/max-fix-colorschemes.vim
+++ /dev/null
@@ -1,62 +0,0 @@
1"=======================================================================================================================
2" COLOR SCHEME:
3"=======================================================================================================================
4function! ExtendColorTheme()
5 highlight! Bold cterm=bold gui=bold
6 highlight! Italic cterm=italic gui=italic
7 highlight! Underline cterm=underline gui=underline
8 highlight! BoldUnderline cterm=bold,underline gui=bold,underline
9 highlight! BoldItalic cterm=bold,Italic gui=bold,italic
10 highlight! Todo cterm=bold gui=bold guibg=#ffffaa guifg=#000000
11 highlight! Error cterm=NONE ctermbg=NONE gui=NONE guibg=NONE
12 highlight! SpellBad cterm=NONE gui=undercurl guibg=NONE guifg=red
13 highlight! Ignore cterm=NONE ctermbg=NONE ctermfg=NONE gui=NONE guibg=NONE guifg=NONE
14 highlight! LineNr cterm=italic gui=italic
15 highlight! PmenuThumb cterm=inverse
16 highlight! MoreMsg cterm=inverse
17
18 highlight! link qfSeparator Normal | " reserve one space
19 highlight! link qfLineNr Normal | " informational line numbers should look different
20 highlight! link SpecialKey NonText | " makes tab stop (see listchars) less disturbing
21 highlight! link WildMenu Search
22 highlight! link Convention Error
23 highlight! link PmenuSbar Pmenu
24 highlight! link VertSplit LineNr
25 highlight! link SignColumn LineNr
26 highlight! link ALEErrorSign LineNr
27 highlight! link FoldColumn VertSplit
28 highlight! link Folded LineNr
29 highlight! link EndOfBuffer NonText
30 highlight! link DiagnosticHint Debug
31 highlight! link DiagnosticInfo Debug
32 highlight! link DiagnosticError Error
33 highlight! link DiagnosticWarn Debug
34
35
36 hi Comment gui=italic
37 hi Keyword gui=bold
38
39 autocmd BufReadPost * syntax match Convention /\s*$/
40endfunction
41autocmd ColorScheme * call ExtendColorTheme()
42
43if &term == "linux"
44 set notermguicolors
45else
46 set termguicolors
47endif
48
49
50let g:PaperColor_Theme_Options = {
51 \ 'theme': {
52 \ 'default.dark': {
53 \ 'transparent_background': 1
54 \ },
55 \ 'default.light': {
56 \ 'transparent_background': 1
57 \ }
58 \ }
59 \ }
60
61set background=dark
62colorscheme PaperColor
diff --git a/plugin/max-set-window-title.vim b/plugin/max-set-window-title.vim
deleted file mode 100644
index 1838f03..0000000
--- a/plugin/max-set-window-title.vim
+++ /dev/null
@@ -1,22 +0,0 @@
1
2
3augroup SET_WINDOW_TITLE
4 set title
5 set titlelen=40
6
7 " set window title for screen(3)
8 " if &term == "screen" || &term == "xterm"
9 if &term == "screen"
10 set t_ts=k
11 set t_fs=\
12 endif
13
14 " autocmd BufEnter * let &titlestring = hostname() . "[vim(" . expand("%:t") . ")]"
15 " autocmd CursorHold * let &titlestring = "%t %y ".$USER."@".hostname().":%{expand("%:~:.:h")}"
16 set titlestring=\ %F
17 " Fix terminal title =================================================================================================
18 " autocmd VimEnter * let &t_EI .= "\<Esc>[0 q"
19 " autocmd VimEnter * let &t_SI = "\<Esc>]12;green\x7"
20 autocmd VimLeave * silent !echo -ne "\033]112\007"
21augroup END
22
diff --git a/plugin/netrw.vim b/plugin/netrw.vim
deleted file mode 100644
index 57d6d50..0000000
--- a/plugin/netrw.vim
+++ /dev/null
@@ -1,16 +0,0 @@
1augroup NETRW
2 " Deprecated with this configuration, but still useful when deactivating some Plugins
3 " NETRW: obsolete with NERDTree
4 let g:netrw_alto = 0 | " open files on the right
5 let g:netrw_altv = 1 | " open files on the right
6 let g:netrw_banner = 0 | " display help messages?
7 let g:netrw_browse_split = 4 | " 4=open in previous window
8 let g:netrw_fastbrowse = 2 | " manually refresh direcory list (avoids display errors)
9 let g:netrw_hide = 1 | " show not-hidden files only
10 let g:netrw_keepdir = 1 | " because that works better, when gf finds a path name
11 let g:netrw_list_hide = '^\..*' | " Explore mode: hide files starting with dot
12 let g:netrw_liststyle = 3 | " 3=tree
13 let g:netrw_preview = 0 | "
14 let g:netrw_winsize = 20 | " window size in percent
15 " let s:treedepthstring = "│ " | " this is not going to work, but left here for documentation
16augroup END
diff --git a/plugin/vimdiff.vim b/plugin/vimdiff.vim
deleted file mode 100644
index ffd9f46..0000000
--- a/plugin/vimdiff.vim
+++ /dev/null
@@ -1,4 +0,0 @@
1if &diff " only for diff mode/vimdiff
2 set diffopt=filler,context:1000000 " filler is default and inserts empty lines for sync
3 set foldmethod=syntax
4endif
diff --git a/plugin/youcompleteme.vim b/plugin/youcompleteme.vim
deleted file mode 100644
index a241dae..0000000
--- a/plugin/youcompleteme.vim
+++ /dev/null
@@ -1,21 +0,0 @@
1augroup YOUCOMPLETEME
2 let g:ycm_error_symbol = '✖' " insert this as an error symbol in the gutter bar/sign column
3 let g:ycm_warning_symbol = '➔' " insert this as a warning symbol in the gutter bar/sign coloumn
4
5 let g:ycm_autoclose_preview_window_after_insertion = 0
6 let g:ycm_auto_trigger = 1
7 let g:ycm_collect_identifiers_from_tags_files = 0 " Let YCM read tags from Ctags file
8 let g:ycm_confirm_extra_conf = 0 " security is overrated ;)
9 let g:ycm_always_populate_location_list = 0 " we can manually run :YcmDiags to do that
10
11 let g:ycm_key_list_previous_completion = ['Up']
12 let g:ycm_key_list_select_completion = ['Down']
13
14 "" let g:ycm_semantic_triggers =
15 "" \ {
16 "" \ 'c': [ 're!\w{2}' ]
17 "" \ } " per language configurations
18 " packadd YouCompleteMe
19augroup END
20
21
..