1

I'm new to Vim and currently having issues with my Leader key in MacVim on OSX 10.7, freshly installed.

I've tried remapping the Leader key to ",", using

let mapleader=","

(in my .vimrc file, at its very top), increased the timeout (to 10000ms). I also activated

set showcmd

To see if it, at all, fires - but it doesnt.

:verbose map ,

does, interestingly, report "no mapping found".

j0k
  • 22,600
  • 28
  • 79
  • 90
fabianh11
  • 59
  • 8
  • a) What does `echo mapleader` in a running session say? b) what does `map` show (are you sure there are *any* leader mappings: it is fresh install after all)? – ZyX Nov 04 '12 at 17:33
  • 1
    Why did you set the timeout to 10s? What is the link between the leader key and `showcmd`? What do you expect, exactly? The leader key does nothing by itself And *you* are supposed to create mappings using it. – romainl Nov 04 '12 at 17:34
  • Issue resolved - it was the fresh install that deactivated the filetype plugin, hence, there were no mappings at all. Thanks, guys! – fabianh11 Nov 04 '12 at 18:04
  • @romainl At least netrw has leader mappings out-of-the-box (well, only netrw and changelog and man filetype plugins, total five or six mappings in the whole `/usr/share/vim/vim73`, depending on how you count changelog ones, no non-`` mappings). This is exactly why I asked to check `:map` output: these mappings are so rare in fresh install. First two your questions are easily answerable: 1) to have enough time to find `` key in the command line 2) because if you set `showcmd` this key will be shown in the command line while waiting for next key. – ZyX Nov 04 '12 at 18:12
  • 2
    @fabianh11 : you should transform your comment into an answer, and approve it. This way the question will be considered "answered". – Xavier T. Nov 05 '12 at 10:00
  • I am having the same problem. How did you activate the filetype plugin? – AustinT Nov 01 '13 at 23:42

1 Answers1

1

Issue resolved - it was my fresh install of everything that simply deactivated the filetype plugin. Hence, there were no mappings at all.

I reactivated the filetype plugin by adding

filetype plugin on

to my .vimrc file.

fabianh11
  • 59
  • 8