Questions tagged [leader]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
19 views

how to map # to , (when , is my leader) while using vim-sneak

I use ',' as leader, so when I f/t and I want to go to previous hit, I cannto use ',' I tried using #: nnoremap # , My mapping shows up (I think), :map # shows this n # * , but it does ...
0
votes
1answer
26 views

localleader is not obeyed

for my fortran code, I have defined: au FileType fortran let maplocalleader = "`" # i have tried \` as well. For fortran filetype in vim, :echo maplocalleader is showing ` as expected. But, then,...
1
vote
1answer
21 views

mapping <leader>; and <leader>, to ; and , respectively

My <leader> key is , and for convenience I'm using for a few years now the ; normal-mapped as a :, to save me a key stroke to type :commands. Now, I know that , and ; are shortcuts themselves, ...
-1
votes
1answer
57 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.
2
votes
2answers
201 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
64 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
109 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
54 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
63 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
3
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 ...
2
votes
1answer
258 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 ...