commit 56bdf52cc109a5b044fd0a13f2d80f3eddf8424b parent de42a1b18d047c2b5a9ecf8628657c5246de9dee Author: Markus Hanetzok <markus@hanetzok.net> Date: Sun, 15 Dec 2024 12:35:50 +0100 update init.vim add shortcut to toggle ColorColumn on column 80 Diffstat:
M | .config/nvim/init.vim | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim @@ -35,6 +35,11 @@ set tw=79 set shiftwidth=2 colorscheme elflord +" ColorColumn +nnoremap <leader>z :execute "set colorcolumn=" . (&colorcolumn == "" ? "80" : "")<CR> +set colorcolumn=80 +highlight ColorColumn ctermbg=0 guibg=lightgrey + " Some basics: nnoremap c "_c filetype plugin on