add foldcolumn mapping
This commit is contained in:
parent
d38d40a29c
commit
c51ec272b0
9
init.vim
9
init.vim
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue