Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [leader]

The tag has no usage guidance.

-1
votes
1answer
32 views

E73: tag stack empty while creating a map<leader>

When I append map <leader>tn :tabnew<CR> to my .vimrc and while tried to run this with :,tn command it says E73: tag stack empty.
3
votes
2answers
188 views

Detect existing key binding before creating one

A plugin I've recently started maintaining currently checks to see if any bindings exist to its functions before creating the default ones. This makes it easy to setup custom bindings and not have to ...
0
votes
1answer
36 views

Can mapleader be Ctrl or Shift?

Must mapleader be a key with a char? Can I use Ctrl/Shift/Alt or some other keys which won't type a char in insert mode?
0
votes
0answers
65 views

<localleader> not working in .tex files, but working for the other filetypes

I use vimtex, latexmk and neovim in order to edit .tex files in Vim, but for some reason my local leader does not work in .tex files, though the leader works and the local leader works for other ...
0
votes
2answers
48 views

Go to line with `<line><leader>` without timeout

I currently have nnoremap <leader> G in my .vimrc so I can go to line 123 by typing 123<leader>. However, since I have other leader combinations, such as <leader>u, the line ...
1
vote
1answer
59 views

Get <Leader> value as <Space> and not ' '

Given that I defined let mapleader="\<Space>", I would like to get in the vimscript the value of the leader as <Space> and not as ' '. The latter may be obtained by using get(g:,"mapleader"...
0
votes
1answer
24 views

map something to the action of the leader key?

I have this in my vimrc: let g:mapleader = "," nnoremap # , so I use , as my leader, and want to use # for backwards search after f,t...But my # mapping does not work, so something is amiss thanks
4
votes
2answers
2k views

How do I define LocalLeader as <Space>?

I need to define LocalLeader for various plugins and I would like to set it to <Space>. If I add this to my vimrc file let maplocalleader = "<Space>" typing space in normal mode just ...
1
vote
1answer
235 views

What is the difference between let mapleader =”,”, and let g:mapleader=”,”

In one of the most popular vimrc’s available (Aimx’s vimrc), there is a line which maps both leader and g:leader to “,”. https://github.com/amix/vimrc/blob/master/vimrcs/basic.vim#L58 What is the ...
5
votes
2answers
2k views

What does [count]<leader> mean?

I found a command in NERDCommenter like this: [count]<leader>cc |NERDComComment| I have installed the plugin. But, I don't know how to make it work. So what's the meaning of that command? How ...