diff options
author | Juan J. Martinez <jjm@usebox.net> | 2024-10-30 08:47:47 +0000 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2024-10-30 08:51:28 +0000 |
commit | 56d61a587606bd76eff7a947bac27808b0262c27 (patch) | |
tree | de01dd92556287f8b38544bd33f9b426817b3899 | |
parent | cc05d094940d0ed47317cf6c396ae48f63598913 (diff) | |
download | dotnvim-56d61a587606bd76eff7a947bac27808b0262c27.tar.gz dotnvim-56d61a587606bd76eff7a947bac27808b0262c27.zip |
toggle quickfix window
-rw-r--r-- | init.vim | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -57,6 +57,17 @@ colorscheme gruvbox-material " toggle spell check map <leader>s :set spell! spelllang=en_gb<CR> +" open/close quickfix +function ToggleQuickfix() + if empty(filter(getwininfo(), 'v:val.quickfix')) + copen + else + cclose + endif +endfunction + +map <leader>q :call ToggleQuickfix()<cr> + " show tabs and EOL whitespace :set list listchars=tab:»·,trail:· |