]> git.rmz.io Git - dotfiles.git/blobdiff - vim/vimrc
vim: don't show trailing space in qf windows
[dotfiles.git] / vim / vimrc
index 468744b3ed11e805ac8690003f26611707490229..6b2c8abe0a4a9974943cab2f4443750b32965f62 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -112,6 +112,11 @@ Plug 'aklt/plantuml-syntax'
 
 Plug 'mtth/scratch.vim'  " {{{2
   let g:scratch_no_mappings = 1
+  let g:scratch_autohide = 0
+"}}}
+
+Plug 'vim-utils/vim-man'  " {{{2
+let g:man_width = 80
 "}}}
 
 call plug#end()
@@ -121,7 +126,12 @@ filetype plugin indent on
 " colorscheme {{{1
 syntax on
 set background=dark
+let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
+let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
+set termguicolors
 colorscheme $THEME
+"TODO see how I can integrate this into a theme that customises upstream Nord
+hi debugPC term=reverse ctermbg=8
 
 " options {{{1
 " moving around, searching and patterns {{{2
@@ -151,8 +161,9 @@ set listchars+=extends:❯,precedes:❮
 set listchars+=trail:·
 augroup trailing
     au!
-    au InsertEnter * :set listchars-=trail:·
-    au InsertLeave * :set listchars+=trail:·
+    au FileType qf setlocal listchars-=trail:·
+    au InsertEnter * set listchars-=trail:·
+    au InsertLeave * set listchars+=trail:·
 augroup END
 
 set scrolloff=5                 " number of screen lines to show around the cursor
@@ -431,7 +442,11 @@ noremap ' `
 nnoremap vv ^vg_
 
 " Unfuck my screen
-nnoremap U :syntax sync fromstart<cr>:AirlineRefresh<cr>:redraw!<cr>
+nnoremap U
+      \ :syntax sync fromstart<cr>
+      \ :AirlineRefresh<cr>
+      \ :call popup_clear(1)<cr>
+      \ :redraw!<cr>
 
 " Ranger
 " nnoremap <leader>r :silent !ranger %:h<cr>:redraw!<cr>