504def1b4005

Fix pulse line.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Mon, 19 Nov 2012 12:53:05 -0500
parents fe6c2182539e
children 86976421465f
branches/tags (none)
files vim/vimrc

Changes

--- a/vim/vimrc	Mon Nov 19 12:40:06 2012 -0500
+++ b/vim/vimrc	Mon Nov 19 12:53:05 2012 -0500
@@ -1772,6 +1772,11 @@
 " Pulse Line {{{
 
 function! s:Pulse() " {{{
+    let current_window = winnr()
+    windo set nocursorline
+    execute current_window . 'wincmd w'
+    setlocal cursorline
+
     redir => old_hi
         silent execute 'hi CursorLine'
     redir END