From a9abcd521dd60913dbb4bc9ebe12a3890fde77d3 Mon Sep 17 00:00:00 2001 From: Chris Brodt Date: Sun, 25 Mar 2012 18:18:32 -0400 Subject: [PATCH] Create a default for to display in RiVimStatusLine This function is trying to get the value of in a variable to display to the user in the status line. Seems that unless set by user in vimrc, Vim doesn't register g:mapleader. Assume '\' as that is the default (on Linux and other *nix's; I can't speak for Mac) --- plugin/ri.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugin/ri.vim b/plugin/ri.vim index 1c87cd0..14ec2bd 100644 --- a/plugin/ri.vim +++ b/plugin/ri.vim @@ -24,7 +24,10 @@ function! s:runCommand(command) endfunction function! RIVimStatusLine() - let a = g:mapleader + let a = "\\" + if exists("g:mapleader") + let a = g:mapleader + endif return "%<%f\ | Press ".a."? for help "."%r%=%-14.(%l,%c%V%)\ %P" endfunction