From 71b7365fd2a4000a852a6d9a4f504c484f643715 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Fri, 27 Feb 2015 21:07:01 +0100 Subject: Marked Vim's `cursorline` as toggleable * compromise as there is no straight forward way to only highlight the current line number but not the whole line while maintaining line highlighting in e.g. _CtrlP_ --- vim/.vim/colors/akr.vim | 2 +- vim/.vimrc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/vim/.vim/colors/akr.vim b/vim/.vim/colors/akr.vim index c10903a..c5dd59f 100644 --- a/vim/.vim/colors/akr.vim +++ b/vim/.vim/colors/akr.vim @@ -8,7 +8,7 @@ hi NonText gui=NONE guifg=#161616 guibg=#161616 hi LineNr gui=NONE guifg=#605c5a guibg=NONE hi Cursor gui=reverse guifg=NONE guibg=NONE hi CursorColumn gui=NONE guifg=NONE guibg=#000000 -hi CursorLine gui=NONE guifg=NONE guibg=#161616 +hi CursorLine gui=NONE guifg=NONE guibg=#212121 hi CursorLineNr gui=NONE guifg=#aadb0f guibg=#212121 hi ColorColumn gui=NONE guifg=NONE guibg=#aadb0f hi SignColumn gui=NONE guifg=NONE guibg=#aadb0f diff --git a/vim/.vimrc b/vim/.vimrc index 5028670..52b22c1 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -5,8 +5,8 @@ filetype plugin indent on set encoding=utf-8 set showcmd set nocompatible +set nocursorline set number -set cursorline set lazyredraw set ttyfast set mouse=a @@ -75,3 +75,4 @@ let g:gitgutter_highlight_lines = 1 nnoremap :GundoToggle nnoremap :GitGutterToggle +nnoremap :set cursorline! -- cgit v1.2.3