Set colorcolumn at current cursor column

1 Point

Mark Mark

11 months ago

<leader>ch will set the colorcolumn to be at the current column of the cursor.

nnoremap <silent><leader>ch :execute 'set colorcolumn=' . col('.')<CR>