From 464a2d32e0a68bb7b6b9bdf9403a218d62b16ac4 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 9 May 2013 16:05:54 -0400 Subject: [PATCH] turn on cursorline and cursorcolumn --- vimrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vimrc b/vimrc index 4a7cf40..40a8d55 100644 --- a/vimrc +++ b/vimrc @@ -108,6 +108,12 @@ if has("autocmd") autocmd FileType ruby setlocal sw=2 ts=2 sts=2 autocmd BufRead,BufNewFile *.di set filetype=d + if has("gui_running") + autocmd WinLeave * set nocursorline nocursorcolumn + autocmd WinEnter * set cursorline cursorcolumn + set cursorline cursorcolumn + end + " When editing a file, always jump to the last known cursor position. " Don't do it when the position is invalid or when inside an event handler " (happens when dropping a file on gvim).