From 15938e62d06a66fc39825db12061f69910d41f75 Mon Sep 17 00:00:00 2001 From: Rykka Date: Mon, 5 Nov 2012 00:30:47 +0800 Subject: [PATCH] add g:galaxy_term_cursor_hl --- autoload/galaxy.vim | 5 +++-- doc/galaxy.txt | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/autoload/galaxy.vim b/autoload/galaxy.vim index a2ca9db..80a99fd 100644 --- a/autoload/galaxy.vim +++ b/autoload/galaxy.vim @@ -6,7 +6,7 @@ " License: The MIT Licence " http://www.opensource.org/licenses/mit-license.php " Copyright (c) 2011-2012 Rykka G.Forest -" Last Update: 2012-07-03 +" Last Update: 2012-11-05 "============================================================= let s:save_cpo = &cpo set cpo&vim @@ -24,6 +24,7 @@ function! s:default(option, value) "{{{ return 1 endfunction "}}} call s:default("g:galaxy_debug", 0) +call s:default("g:galaxy_term_cursor_hl", 0) call s:default("g:galaxy_visual_hl_fg", 1) call s:default("g:galaxy_tcursor_color", "DarkGray") @@ -3156,7 +3157,7 @@ function! s:load(...) "{{{ endif " restore cursor in term - if s:mode=="cterm" + if s:mode=="cterm" && g:galaxy_term_cursor_hl call s:term_cursor() endif diff --git a/doc/galaxy.txt b/doc/galaxy.txt index 9971d2a..6ff7d6e 100644 --- a/doc/galaxy.txt +++ b/doc/galaxy.txt @@ -375,6 +375,10 @@ By default is 0 , to make the |Visual| section transparent. Terminal~ + *g:galaxy_term_cursor_hl* + 'g:galaxy_term_cursor_hl' (default: 0) + Set to 1 to enable term cursor highlighting + *g:galaxy_tcursor_color* 'g:galaxy_tcursor_color' (default:"DarkGray") Set terminal cursor color to it after exit vim.