add foldcolumn mapping

This commit is contained in:
Ray Elliott 2020-07-31 16:03:54 +01:00
parent d38d40a29c
commit c51ec272b0
1 changed files with 5 additions and 4 deletions

View File

@ -181,11 +181,11 @@ function! ToggleHighlights() abort "{{{
let b:toggle_highlights_state = ! b:toggle_highlights_state
endif
" TODO account for dark/light colour schemes
echom 'state: ' . b:toggle_highlights_state
if b:toggle_highlights_state == 1
hi Comment guifg=#9d9d9d
hi! link Comment None
else
hi Comment guifg=#d6d6d6
hi! link Comment CommentDim
endif
endfunction
"}}}
@ -286,7 +286,7 @@ set wrapmargin=0
setlocal cursorline
set foldcolumn=2
set foldcolumn=0
set signcolumn=yes
set colorcolumn=80,120
@ -348,6 +348,7 @@ nnoremap <space>rr :%s/\<<Ckr>=expand('<cword>')<CR>\>//g<left><left>
nnoremap <silent> <cr>s :syntax on<cr>
nnoremap <silent> <cr>S :syntax off<cr>
" miscallaneous {{{
nnoremap <cr>fc :set foldcolumn=
nnoremap <cr>l :colorscheme paper-custom<cr>
nnoremap <silent> <cr>c :call ToggleHighlights()<cr>
nnoremap <cr>d :colorscheme monotonous-dark<cr>