Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

As I discussed in my issue in the old repo... #4

Merged
merged 1 commit into from

2 participants

@uberbrodt

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)

@uberbrodt uberbrodt Create a default for <leader> to display in RiVimStatusLine
This function is trying to get the value of <Leader> 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)
a9abcd5
@danchoi danchoi merged commit f645600 into danchoi:master
@danchoi
Owner

Thank you for pointing this out, and thanks again for the patch. I appreciate it!

@uberbrodt

You're welcome, and thanks for the handy plugin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 25, 2012
  1. @uberbrodt

    Create a default for <leader> to display in RiVimStatusLine

    uberbrodt authored
    This function is trying to get the value of <Leader> 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)
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 1 deletion.
  1. +4 −1 plugin/ri.vim
View
5 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
Something went wrong with that request. Please try again.