From 07797b39851da045aa1bfd0289de0858a1377c48 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sun, 18 Dec 2022 20:29:55 +0100 Subject: Switched to nvim and neovide --- plugin/ale.vim | 8 -- plugin/cscope.vim | 57 ------------ plugin/fix-pumvisible-no-newline.vim | 1 - plugin/jedi.vim | 15 --- plugin/karlmarks.vim | 7 -- plugin/max-change-icon.vim | 11 --- plugin/max-fix-colorschemes.vim | 31 +++---- plugin/max-function-menu.vim | 173 ----------------------------------- plugin/nerdtree.vim | 25 ----- plugin/printing-hardcopy.vim | 10 -- plugin/signify.vim | 35 ------- plugin/snippets.vim | 3 - plugin/statusline.vim | 153 ------------------------------- plugin/tagbar.vim | 10 -- plugin/terminal.vim | 19 ---- plugin/youcompleteme.vim | 10 +- 16 files changed, 17 insertions(+), 551 deletions(-) delete mode 100644 plugin/ale.vim delete mode 100644 plugin/cscope.vim delete mode 100644 plugin/fix-pumvisible-no-newline.vim delete mode 100644 plugin/jedi.vim delete mode 100644 plugin/karlmarks.vim delete mode 100644 plugin/max-change-icon.vim delete mode 100644 plugin/max-function-menu.vim delete mode 100644 plugin/nerdtree.vim delete mode 100644 plugin/printing-hardcopy.vim delete mode 100644 plugin/signify.vim delete mode 100644 plugin/snippets.vim delete mode 100644 plugin/statusline.vim delete mode 100644 plugin/tagbar.vim delete mode 100644 plugin/terminal.vim (limited to 'plugin') diff --git a/plugin/ale.vim b/plugin/ale.vim deleted file mode 100644 index 4efc137..0000000 --- a/plugin/ale.vim +++ /dev/null @@ -1,8 +0,0 @@ -let g:ale_pattern_options = {'\.py$': {'ale_enabled': 1}} -let g:ale_linters = {'python': ['pycodestyle'] } -let g:ale_fixers = - \ { - \ 'python': ['black', 'isort', 'remove_trailing_lines', 'trim_whitespace'], - \ 'bash': ['remove_trailing_lines', 'trim_whitespace'] - \ } - diff --git a/plugin/cscope.vim b/plugin/cscope.vim deleted file mode 100644 index b9ca444..0000000 --- a/plugin/cscope.vim +++ /dev/null @@ -1,57 +0,0 @@ -"======================================================================================================================= -" CSCOPE: http://vim.wikia.com/wiki/Cscope -"======================================================================================================================= - -augroup MAX_CSCOPE - if has('cscope') " compiled with cscope support? - set cscopetag " CTRL-] uses cscope first, then ctags - set cscopeverbose - - if has('quickfix') - set cscopequickfix=s+,c+,d+,i+,t+,e+ - endif - - if has('menu') - 1001menu &Cscope.find.c\ symbol - \s - \ :cscope find s <:cR> - 1001menu &Cscope.find.definition - \g - \ :cscope find g <:cR> - 1001menu &Cscope.find.functions\ called\ by\ this - \d - \ :cscope find d <:cR> - 1001menu &Cscope.find.functions\ calling\ this - \c - \ :cscope find c <:cR> - 1001menu &Cscope.find.text\ string - \t - \ :cscope find t <:cR> - 1001menu &Cscope.find.egrep\ pattern - \e - \ :cscope find e <:cR> - 1001menu &Cscope.find.this\ file - \f - \ :cscope find f <:cR> - 1001menu &Cscope.find.files\ including\ this\ file - \i - \ :cscope find i <:cR> - 1001menu &Cscope.find.places\ where\ this\ symbol\ is\ assigned\ a\ value - \a - \ :cscope find a <:cR> - 1001menu &Cscope.-Sep1- - \ : - 1001menu &Cscope.create\ and\ add\ database - \ :cscope kill -1:execute '!find -type f -regex ".*\.\(c\\|h\\|cpp\\|cxx\\|hh\\|hpp\\|hxx\)$" cscope -i- -b -q -v':cscope add . - 1001menu &Cscope.-Sep2- - \ : - 1001menu &Cscope.add\ \. - \ :cscope add . - 1001menu &Cscope.show - \ :cscope show - 1001menu &Cscope.reset - \ :cscope reset - endif - endif -augroup END " MAX_CSCOPE - diff --git a/plugin/fix-pumvisible-no-newline.vim b/plugin/fix-pumvisible-no-newline.vim deleted file mode 100644 index ad27182..0000000 --- a/plugin/fix-pumvisible-no-newline.vim +++ /dev/null @@ -1 +0,0 @@ -imap pumvisible() ? "\" : "\" diff --git a/plugin/jedi.vim b/plugin/jedi.vim deleted file mode 100644 index dca8838..0000000 --- a/plugin/jedi.vim +++ /dev/null @@ -1,15 +0,0 @@ -" JEDI: ============================================================================================================== -augroup JEDI - if has("python") || has('python3') - let g:jedi#completions_enabled = 0 " we do not need completions, because we have YouCompleteMe - let g:jedi#show_call_signatures = 1 " which sadly does not support signatures like jedi - let g:jedi#show_call_signatures_delay = 0 - let g:jedi#auto_vim_configure = 0 - let g:pymode_rope = 0 " https://github.com/davidhalter/jedi-vim/issues/163 - " autocmd FileType python jedi.preload_module('os', 'sys', 'math') - " let g:pymode_options_max_line_length = 120 - " let g:syntastic_python_flake8_args='--ignore=F821,E302,E501,E241,E301' - - packadd jedi-vim - endif " has("python") -augroup END diff --git a/plugin/karlmarks.vim b/plugin/karlmarks.vim deleted file mode 100644 index 9e22144..0000000 --- a/plugin/karlmarks.vim +++ /dev/null @@ -1,7 +0,0 @@ -let g:karlmarks = '"' " position in buffer when left -let g:karlmarks .= '{}' " start/end paragraph -let g:karlmarks .= '()' " start/end sentence -let g:karlmarks .= '[]' " start/end sentence -let g:karlmarks .= '.' " last change -let g:karlmarks .= "^" " insert mode stopped -let g:karlmarks .= "'`" diff --git a/plugin/max-change-icon.vim b/plugin/max-change-icon.vim deleted file mode 100644 index f544a5e..0000000 --- a/plugin/max-change-icon.vim +++ /dev/null @@ -1,11 +0,0 @@ - - - -augroup ChangeIcon - "if filereadable("/usr/bin/xseticon") - "if filereadable("~/.vim/nvim.png") - " autocmd VimEnter * silent :execute "!xseticon -id $WINDOWID ~/.vim/nvim.png" - " autocmd VimLeave * silent :execute "!xseticon -id $WINDOWID /usr/share/icons/gnome/32x32/apps/xfce-terminal.png" - "endif - "endif -augroup END diff --git a/plugin/max-fix-colorschemes.vim b/plugin/max-fix-colorschemes.vim index edbb0ee..0a5e401 100644 --- a/plugin/max-fix-colorschemes.vim +++ b/plugin/max-fix-colorschemes.vim @@ -23,6 +23,7 @@ function! ExtendColorTheme() highlight! link PmenuSbar Pmenu highlight! link VertSplit LineNr highlight! link SignColumn LineNr + highlight! link ALEErrorSign LineNr highlight! link FoldColumn VertSplit " highlight! link Folded LineNr highlight! link EndOfBuffer NonText @@ -39,23 +40,17 @@ else set termguicolors endif -if filereadable(expand('~/.vimrc_background')) && filereadable(expand('~/.local/share/base16/base16-shell/colortest')) - let g:base16_shell_path = '~/.local/share/base16/base16-shell/scripts' - let base16colorspace = 256 - source ~/.vimrc_background -else - let g:PaperColor_Theme_Options = { - \ 'theme': { - \ 'default.dark': { - \ 'transparent_background': 1 - \ }, - \ 'default.light': { - \ 'transparent_background': 1 - \ } - \ } - \ } - colorscheme PaperColor - set background=dark -endif + +let g:PaperColor_Theme_Options = { + \ 'theme': { + \ 'default.dark': { + \ 'transparent_background': 1 + \ }, + \ 'default.light': { + \ 'transparent_background': 1 + \ } + \ } + \ } +colorscheme PaperColor diff --git a/plugin/max-function-menu.vim b/plugin/max-function-menu.vim deleted file mode 100644 index b981997..0000000 --- a/plugin/max-function-menu.vim +++ /dev/null @@ -1,173 +0,0 @@ -augroup MAX_FUNCTION_MENU - if has('menu') - source $VIMRUNTIME/menu.vim - set wildmenu - set cpo-=< - set wcm= - - 01menu &Functions.toggle\ file\ browser - \ - \ - 01menu &Functions.-Sep0- : - - 01menu &Functions.help - \ - \ - 01menu &Functions.bp:\ previous\ buffer - \ - \ - 01menu &Functions.bn:\ next\ buffer - \ - \ - 01menu &Functions.^wc\:\ close\ window - \ - \ - 01menu &Functions.-Sep1- : - - 01menu &Functions.make - \ - \ - 01menu &Functions.clear\ matches,\ update\ viewport - \ - \ - 01menu &Functions.copen\:\ show\ quickfix\ list - \ - \ - 01menu &Functions.lopen\:\ show\ location\ list - \ - \ - 01menu &Functions.-Sep2- : - - 01menu &Functions.toggle\ tagbar - \ - \ - - if has("gui_running") == 0 - " in the gui F10 already triggers the menu, not in a terminal vim, so upgrade that... - map :emenu - endif - 01menu &Functions.activate\ menu\ (:emenu) - \ - \ - - 01menu &Functions.undef11 - \ - \ - 01menu &Functions.undef12 - \ - \ - 01menu &Functions.-Sep2- : - - - 09menu &Directory.print\ current\ directory - \:pwd - \ :pwd - - 09menu &Directory.-Sep- : - - 09menu &Directory.Change\ to\ GIT\ root - \:Gcd - \ :Gcd:pwd - - 09menu &Directory.Change\ to\ current\ buffers\ directory\ (global) - \:cd\ %:p:h - \ :cd %:h:pwd - - 09menu &Directory.Change\ to\ current\ buffers\ directory\ (local\ window):lcd\ %:p:h - \ :lcd %:p:h:pwd - - menu &Git.&Display\ uncommited\ files\ in\ location\ list - \ :call setloclist(0, map(systemlist("git diff --name-only --pretty=''"), {_, p->{'filename': fnamemodify(p, ':.')}})):lopen - menu &Git.&Display\ recently\ changed\ files\ in\ quickfix\ list - \ :call setqflist([], 'r', {'title': 'Recently changed in GIT', 'items':map(systemlist("git show --name-only --pretty=''"), {_, p->{'filename': fnamemodify(p, ':.')}}) }):copen - menu &Git.&Display\ last\ changes - \ :let g:signify_vcs_cmds={'git': 'git diff --no-color --no-ext-diff -U0 HEAD^ -- %f', 'svn': '', 'cvs': ''}:SignifyRefresh - menu &Git.&Display\ unmerged\ files\ in\ location\ list - \ :call setloclist(0, map(systemlist("git diff --name-only --diff-filter=U \| uniq"), {_, p->{'filename': fnamemodify(p, ':.')}})):lopen - menu &Git.&Display\ significance\ of\ changes - \ :!git diff --stat HEAD~1..HEAD - menu &Git.&Display\ Changed\ files\ compared\ to\ master - \ :!git diff --name-status ..master - - menu &Match.Clear\ All\ Matches - \ - \ :call clearmatches() - - menu &Match.-Sep- : - - menu &Match.&dispensable\ white\ spaces - \ :call matchadd("Convention", '\s\+$', 0) - - menu &Match.&long\ lines\ (exeeding\ textwidth) - \ :call matchadd("Convention", '\%>'.&textwidth.'v.', 0) - - menu &Match.Highlight\ current\ file\ name - \ :call matchadd("Search", escape(expand('%:t'), '.')) - - " :execute ':match SpellBad /'.escape(expand('%:t'), '.').'/' - - menu &Window.-Sep- : - - - menu &Window.Scratch - \ :Scratch - - - menu &Find.file\ under\ the\ cursor - \gf - \ gf - - menu &Find.Open\ search\ results\ in\ location\ list - \:gf - \ :execute ':vimgrep /'.escape(getreg('/'), '.').'/g %' - \ :copen - - menu &Changes.list - \:changes - \ :changes - menu &Changes.-Sep- : - menu &Changes.previous - \g; - \ g; - menu &Changes.next - \g, - \ g, - menu &List.location.signs\ to\ list - \CMD - \ :execute ":call setloclist(0, map(get(getbufinfo('%')[0], 'signs'), {_, p->extend(p, {'bufnr':buffer_number('.'), 'text':get(p, 'name')})}))" - menu &List.location.list\ to\ signs - \CMD - \ :call execute(extend(['sign define LocationListEntry text=L', 'sign unplace *'], map(getloclist('%'), {key, val->'sign place '.(key+100).' name=LocationListEntry line='.val['lnum'].' buffer='.buffer_number('%')}))) - menu &Jump.list - \:jumps - \ :jumps - menu &Jump.-Sep1- : - menu &Jump.previous\ position - \CTRL-O - \ - menu &Jump.next\ position - \CTRL-I - \ - menu &Jump.-Sep2- : - menu &Jump.clear\ list - \:clearjumps - \ :clearjumps - - 1000menu &Tag.list - \:tags - \ :tags - 1000menu &Tag.selection\ list - \:ts - \ :ts - - 1000menu &Tag.-Sep1- : - - 1000menu &Tag.stack.jump\ older - \ - \ :po - 1000menu &Tag.stack.jump\ - \:ta - \ :ta - endif -augroup END " MAX_FUNCTION_MENU - diff --git a/plugin/nerdtree.vim b/plugin/nerdtree.vim deleted file mode 100644 index b9665fb..0000000 --- a/plugin/nerdtree.vim +++ /dev/null @@ -1,25 +0,0 @@ -augroup NERDTREE - " NERDTree: replaces NetRW, as long as it has so many bugs - let NERDTreeIgnore = ['\.aux$', '\.o$'] - let NERDTreeCascadeSingleChildDir = 0 | " I don't get how one can use to create files in that included directory - let NERDTreeChDirMode = 0 - let NERDTreeHiddenFirst = 1 - let NERDTreeMinimalUI = 1 - let NERDTreeShowBookmarks = 1 | " show bookmarks by default (when opening for the first time) - let NERDTreeWinSize = 40 - let NERDTreeQuitOnOpen = 1 - - " depending on if NERDTree has the focus: - nnoremap - \ - \ bufwinnr("%")==g:NERDTree.GetWinNum() ? ':NERDTreeClose' : ':NERDTreeFind' - nnoremap - \ - \ bufwinnr("%")==g:NERDTree.GetWinNum() ? '' : ':N' - - nnoremap - \ - \ bufwinnr("%")==g:NERDTree.GetWinNum() ? '' : ':n' - - packadd nerdtree -augroup END diff --git a/plugin/printing-hardcopy.vim b/plugin/printing-hardcopy.vim deleted file mode 100644 index ad51b02..0000000 --- a/plugin/printing-hardcopy.vim +++ /dev/null @@ -1,10 +0,0 @@ -let default_expr=&printexpr - -" if filereadable("/usr/bin/a2ps") -" let &printexpr = "system('a2ps -1gEmail --borders=no --strip=3')" -" endif -" -set printoptions=portrait:y,number:n,syntax:n,left:25mm,right:20mm,top:27mm,bottom:25mm - -let &printfont = "monospace 11" -let &printexpr = "system('lpr -p' . (&printdevice == '' ? '' : ' -P' . &printdevice) . ' ' . v:fname_in) . delete(v:fname_in) + v:shell_error" diff --git a/plugin/signify.vim b/plugin/signify.vim deleted file mode 100644 index 9edc3c5..0000000 --- a/plugin/signify.vim +++ /dev/null @@ -1,35 +0,0 @@ -augroup SIGNIFY - " displays file changes in sign column - - let @l = ":let g:signify_vcs_cmds={'git': 'git diff --no-color --no-ext-diff -U0 HEAD^ -- %f'}|:SignifyRefresh" - - " use signify only with git (improves speed when loading buffers, see :h signify) - let g:signify_vcs_list = [ 'git' ] - - let g:signify_cursorhold_insert = 0 - let g:signify_cursorhold_normal = 0 - let g:signify_update_on_bufenter = 0 - let g:signify_update_on_focusgained = 0 - let g:signify_sign_show_count = 0 - - if has("multi_byte") && (&enc == 'utf-8' || &enc == 'utf-16' || &enc == 'ucs-4') - let g:signify_sign_add = '⊕.' - let g:signify_sign_delete = '⊖.' - let g:signify_sign_delete_first_line = '⊖.' - let g:signify_sign_change = '⊗.' - let g:signify_sign_changedelete = '⊗.' - endif - - function! SignifyColorScheme() - highlight! SignifySignAdd ctermbg=NONE - highlight! link SignifySignAdd SignColumn - highlight! link SignifySignChange SignColumn - highlight! link SignifySignDelete SignColumn - highlight! link SignifySignChangeDelete SignColumn - highlight! link SignifySignDeleteFirstLine SignColumn - endfunction - - " packadd vim-signify - - autocmd VimEnter,ColorScheme * call SignifyColorScheme() -augroup END diff --git a/plugin/snippets.vim b/plugin/snippets.vim deleted file mode 100644 index fe5d29d..0000000 --- a/plugin/snippets.vim +++ /dev/null @@ -1,3 +0,0 @@ -" vv if we ever want snippets, that seems to be the best choice right now -" packadd neosnippet-snippets -" packadd neosnippet diff --git a/plugin/statusline.vim b/plugin/statusline.vim deleted file mode 100644 index 561a47e..0000000 --- a/plugin/statusline.vim +++ /dev/null @@ -1,153 +0,0 @@ -scriptencoding utf-8 - -augroup MAX_FANCYLINE - set noshowmode | " mode would otherwise be shown twice- in lightline and below. We want to deactivate one. - set laststatus=2 | " required by AirLine and Lightline, without status line does not appear until a window split - - let g:status_sym_start = '' - let g:status_sym_end = '' - let g:status_sym_sep_start = '│' - let g:status_sym_sep_end = '│' - let g:symbol_branch = '' - let g:symbol_screen_edge = '░' - - if &term ==? 'linux' - let g:group_active = 'StatusLineTerm' - let g:group_inactive = 'StatusLineTermNC' - let g:group_tabline = 'TabLine' - else - let g:group_active = 'StatusLine' - let g:group_inactive = 'StatusLineNC' - let g:group_tabline = 'TabLine' - endif - - " this function reverts foreground color and background color of a given - " highlight group and returns the name of a newly created _invert group - function! CreateInvertGroup(highlight_group) - if(synIDattr(synIDtrans(hlID(a:highlight_group)), 'reverse', 'gui')==1) - let w:color=synIDattr(hlID(a:highlight_group), 'fg#') - else - let w:color=synIDattr(hlID(a:highlight_group), 'bg#') - endif - - let l:retval=a:highlight_group.'_invert' - if(exists('w:color') && w:color ==# '') - let w:color = 'NONE' - endif - silent! exec 'highlight '.l:retval.' guifg='.w:color.' ctermfg='.w:color - return l:retval - endfunction - - function! UpdateStatus(highlight_group) - let l:invert_group = CreateInvertGroup(a:highlight_group) - let l:mode = get({ - \ 'n' : 'normal', - \ 'i' : 'insert', - \ 'R' : 'replace', - \ 'v' : 'visual', - \ 'V' : 'visual line', - \ "\" : 'visual block', - \ 'c' : 'command', - \ 's' : 'select', - \ 'S' : 'select line', - \ "\" : 'select block', - \ 't' : 'terminal' - \ }, mode(), mode()) - return '' - \ .'%#StatusLineHighlight#' - \ .'%#'.a:highlight_group.'#' - \ .g:symbol_screen_edge - \ .'%{&buftype != "" ? " ".&buftype : ""}' - \ .' '.l:mode.g:status_sym_sep_start - \ .'%{argc() > 1 ? " ".(argidx() + 1).":".argc()." ".g:status_sym_sep_start : ""}' - \ .'%{haslocaldir() ? fnamemodify(getcwd(), ":.:~")." " :""}' - \ .'%{&readonly ? " 🔒" : ""}' - \ .'%{&modified ? " 💾 " : ""}' - \ .'%{" [".winbufnr(0)."] "}' - \ .'%{bufname("%") == "" ? "" : fnamemodify(expand("%"), ":~:.")}' - \ .'%{&titlestring ? has("nvim") ? b:term_title:expand(&titlestring) : "" }' - \ .'%{exists("w:quickfix_title") ? w:quickfix_title : ""}' - \ .' ' - \ .'%#'.l:invert_group.'#' - \ .g:status_sym_end - \ .'%<' - \ .'' - \ .'%=' - \ .'' - \ .'%#'.l:invert_group.'#' - \ .g:status_sym_start - \ .'%#'.a:highlight_group.'#'.' ' - \ .'%{&buftype == "" ? "" : &buftype." ".g:status_sym_sep_end." "}' - \ .'%{&filetype == "" ? "" :&filetype." ".g:status_sym_sep_end." "}' - \ .'%{&spell ? &spelllang." ".g:status_sym_sep_end : ""}' - \ .'%{&fileencoding =~ "^$\\|^utf\-8$" ? "" : &fileencoding." ".g:status_sym_sep_end." "}' - \ .'%{&fileformat =~ "^$\\|^unix$" ? "" : &fileformat." ".g:status_sym_sep_end}' - \ .' ' - \ .'%cx%-l: ' - \ .g:status_sym_sep_end - \ .' ' - \ .'%p%% ' - \ .g:symbol_screen_edge - endfunction - - function! UpdateTabline(highlight_group) - let l:invert_group = CreateInvertGroup(a:highlight_group) - let l:git_branch = FugitiveHead() - return '' - \ .'%#'.a:highlight_group.'#' - \ .g:symbol_screen_edge - \ .' ' - \ .'%#'.a:highlight_group.'#' - \ .'%-2( %)' - \ .'%{fnamemodify(getcwd(-1), ":~")}' - \ .' ' - \ .'%{FugitiveHead() == "" ? "" : g:status_sym_sep_start." ".g:symbol_branch." ".FugitiveHead()}' - \ .' ' - \ .'%#'.l:invert_group.'#' - \ .g:status_sym_end - \ .'%<' - \ .'%=' - \ .'%#'.l:invert_group.'#' - \ .g:status_sym_start - \ .'%(%#'.a:highlight_group.'#%)' - \ .' ' - \ .'%-2(%)' - \ .'%(%#'.a:highlight_group.'#%)' - \ .'%(%{v:servername} %{v:this_session}%)' - \ .g:status_sym_sep_end.' ' - \ .'%-3(%)' - \ .'%#'.a:highlight_group.'#' - \ .'%{tabpagenr()}/%{tabpagenr()}' - \ .' ' - \ .g:symbol_screen_edge - \ .'%##' - endfunction - - - if $USER ==? 'root' - let highlight_group_root = "ErrorMsg" - let invert_group = CreateInvertGroup(highlight_group_root) - let g:group_tabline = highlight_group_root - endif - - function! ApplyColorScheme() - " set termguicolors | " When on, uses highlight-guifg and highlight-guibg attributes in the terminal (=24bit color) incompatible with nvim - " set t_ut= - " set up statusline, global and current window individually - set statusline=%!UpdateStatus(g:group_inactive) - setlocal statusline=%!UpdateStatus(g:group_active) - " set up the tabline (match colors) - set tabline=%!UpdateTabline(g:group_tabline) - - " otherwise 'bold' can mess up icon sizes and I do not know why - highlight! StatusLine cterm=reverse - " exec 'highlight! User3 guifg=#D2A032 guibg='.l:fgcolor - endfunction - call ApplyColorScheme() - - " apply colors from the loaded colorscheme... - " when changing the colorscheme also apply new colors to the statusbar... - autocmd ColorScheme * call ApplyColorScheme() - autocmd WinEnter * setlocal statusline=%!UpdateStatus(g:group_active) - autocmd WinLeave * setlocal statusline< -augroup END " MAX_FANCYLINE diff --git a/plugin/tagbar.vim b/plugin/tagbar.vim deleted file mode 100644 index 2758f20..0000000 --- a/plugin/tagbar.vim +++ /dev/null @@ -1,10 +0,0 @@ -augroup TAGBAR - let g:tagbar_autoclose = 0 - let g:tagbar_autofocus = 1 - let g:tagbar_autoshowtag = 0 - let g:tagbar_compact = 1 - let g:tagbar_indent = 0 - let g:tagbar_foldlevel = 99 - - packadd tagbar -augroup END diff --git a/plugin/terminal.vim b/plugin/terminal.vim deleted file mode 100644 index c8f02fd..0000000 --- a/plugin/terminal.vim +++ /dev/null @@ -1,19 +0,0 @@ -augroup TERMINAL - " Vim 8 has a terminal command... - if has('terminal') - " use default ESC key to leave insert mode in the internal terminal emulator - tnoremap N - " make terminal windows hidden by default (copied from :help terminal) - autocmd BufWinEnter * if &buftype == 'terminal' | setlocal bufhidden=hide | endif - endif - - " NEOVIM_incompatible: - if has('nvim') " Neovim? - autocmd TermOpen term://* set nobuflisted - " use default ESC key to leave insert mode in the internal terminal emulator - tnoremap - - menu &UI.&Open\ in\ Serversession - \ :execute ':!nvr --servername /tmp/nvimsocket --remote % +'.line('.'):stopinsert:set readonly - endif -augroup END diff --git a/plugin/youcompleteme.vim b/plugin/youcompleteme.vim index d2283fd..9e17ad5 100644 --- a/plugin/youcompleteme.vim +++ b/plugin/youcompleteme.vim @@ -11,12 +11,10 @@ augroup YOUCOMPLETEME let g:ycm_key_list_previous_completion = ['Up'] let g:ycm_key_list_select_completion = ['Down'] - let g:ycm_semantic_triggers = - \ { - \ 'c': [ 're!\w{2}' ] - \ } " per language configurations - - + "" let g:ycm_semantic_triggers = + "" \ { + "" \ 'c': [ 're!\w{2}' ] + "" \ } " per language configurations " packadd YouCompleteMe augroup END -- cgit v1.2.3