aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-04 20:20:41 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-04 20:20:41 +1200
commitc4501004740d1a95fd7bf61aa4f19ff19a10eaec (patch)
tree24c7841f7bf1634548de9d5cec47b6441d10ce4f /vim/vimrc
parentCorrect comments on Vim maps to show mappings (diff)
downloaddotfiles-c4501004740d1a95fd7bf61aa4f19ff19a10eaec.tar.gz
dotfiles-c4501004740d1a95fd7bf61aa4f19ff19a10eaec.zip
Add cursorline_current.vim plugin
Also turn on 'cursorline' option in .vimrc, and update sahara.vim colorscheme, which has a nice subdued 'cursorline'.
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 84195339..6b181fa7 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -61,6 +61,11 @@ set comments=
" Give me a prompt instead of just rejecting risky :write, :saveas
set confirm
+" Only turn on 'cursorline' if my colorscheme loaded
+if exists('g:colors_name') && g:colors_name ==# 'sahara'
+ set cursorline
+endif
+
" Try to keep swapfiles in one system-appropriate dir
set directory^=~/.vim/cache/swap//,~/vimfiles/cache/swap//