X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/81e54577d68c9bf2093c1e0766beba7a769e81e7..f22b24fddcfef913f1a186e686114ad0bf6d27cd:/vim/vimrc?ds=inline diff --git a/vim/vimrc b/vim/vimrc index 8b9b5c1..9d85de2 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -81,15 +81,17 @@ Plug 'morhetz/gruvbox' " {{{2 let g:gruvbox_contrast_dark = 'hard' let g:gruvbox_contrast_light = 'soft' -Plug 'arcticicestudio/nord-vim' " {{{2 -let g:nord_bold = 1 -let g:nord_italic = 1 -let g:nord_italic_comments = 1 -let g:nord_underline = 1 -let g:nord_uniform_status_lines = 0 -let g:nord_uniform_diff_background = 0 -let g:nord_cursor_line_number_background = 0 -let g:nord_bold_vertical_split_line = 0 +if !has('nvim') + Plug 'arcticicestudio/nord-vim' " {{{2 + let g:nord_bold = 1 + let g:nord_italic = 1 + let g:nord_italic_comments = 1 + let g:nord_underline = 1 + let g:nord_uniform_status_lines = 0 + let g:nord_uniform_diff_background = 0 + let g:nord_cursor_line_number_background = 0 + let g:nord_bold_vertical_split_line = 0 +endif "}}} @@ -130,21 +132,30 @@ Plug 'mtth/scratch.vim' " {{{2 let g:scratch_autohide = 0 "}}} -Plug 'vim-utils/vim-man' " {{{2 -let g:man_width = 80 +let g:man_hardwrap = 80 +if !has('nvim') + Plug 'vim-utils/vim-man' " {{{2 + let g:man_width = 80 "}}} +endif +Plug 'jenterkin/vim-autosource' " {{{2 + let g:autosource_hashdir = $XDG_CACHE_HOME . '/vim/vim-autosource' + let g:autosource_conf_names = ['.vimrc', '.vimrc.lua'] +"}}} call plug#end() filetype plugin indent on +syntax on " colorscheme {{{1 -syntax on set background=dark let &t_8f = "\[38;2;%lu;%lu;%lum" let &t_8b = "\[48;2;%lu;%lu;%lum" set termguicolors -colorscheme $THEME +if !has('nvim') + colorscheme $THEME +endif "TODO see how I can integrate this into a theme that customises upstream Nord hi debugPC term=reverse ctermbg=8 @@ -172,6 +183,7 @@ set lazyredraw " don't redraw while executing macros set list " show chars defined in 'listchars' set listchars=tab:❭\ " list of strings used for list mode set listchars+=extends:❯,precedes:❮ +set listchars+=nbsp:␣ " Only shown when not in insert mode set listchars+=trail:· augroup trailing @@ -212,7 +224,9 @@ set ttyfast " using the mouse {{{2 set mouse=rnv " list of flags for using the mouse -set ttymouse=xterm " type of mouse +if !has('nvim') + set ttymouse=xterm " type of mouse +endif " messages and info {{{2 set showcmd " Show (partial) command in status line.