aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-02-27 21:07:01 +0100
committerAdrian Kummerlaender2015-02-27 21:07:01 +0100
commit71b7365fd2a4000a852a6d9a4f504c484f643715 (patch)
tree19ba74fd398332529e01c710f5488ecfd2b60e0f
parentcd78c024694f3dd0e4fc5b66ae7e4478352bd84b (diff)
downloaddotfiles-71b7365fd2a4000a852a6d9a4f504c484f643715.tar
dotfiles-71b7365fd2a4000a852a6d9a4f504c484f643715.tar.gz
dotfiles-71b7365fd2a4000a852a6d9a4f504c484f643715.tar.bz2
dotfiles-71b7365fd2a4000a852a6d9a4f504c484f643715.tar.lz
dotfiles-71b7365fd2a4000a852a6d9a4f504c484f643715.tar.xz
dotfiles-71b7365fd2a4000a852a6d9a4f504c484f643715.tar.zst
dotfiles-71b7365fd2a4000a852a6d9a4f504c484f643715.zip
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_
-rw-r--r--vim/.vim/colors/akr.vim2
-rw-r--r--vim/.vimrc3
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 <F5> :GundoToggle<CR>
nnoremap <F6> :GitGutterToggle<CR>
+nnoremap <F7> :set cursorline!<CR>