Try setting the mapleader without the g: prefix.
Salman

On Fri, Nov 15, 2024, 23:17 'Arup Rakshit' via vim_use <
[email protected]> wrote:

> I have some mappings define for "+y, "+p, "+d .. But none of the mappings
> are working. When I press leader key (,) and then press y or d or p or P, I
> get beep sound. Can anyone help me why is it not working? Here is my
> ~/.vimrc content:
>
>  cat ~/.vimrc
> call plug#begin()
>
> " List your plugins here
> Plug 'elixir-editors/vim-elixir'
> Plug 'itchyny/lightline.vim'
> Plug 'jaredgorski/spacecamp'
>
> call plug#end()
>
> colorscheme spacecamp
>
> set showcmd
> set autowriteall
> set laststatus=2
> set number
> set list
> set lcs=trail:.,lead:.
>
> " format elixir files when saving
> "augroup filetype_ex
> "  autocmd!
> "  autocmd BufWritePre *.ex,*.exs execute "!mix format %"
> "augroup END
>
> " syntax on
> " filetype on
> " set clipboard=unnamedplus
>
> let g:mapleader = ","
>
> nnoremap <Leader>w :w<CR>
> nnoremap <Leader>q :wq<CR>
>
> vnoremap <Leader>y "+y
> vnoremap <Leader>d "+d
> nnoremap <Leader>p "+p
> nnoremap <Leader>P "+P
> vnoremap <Leader>p "+p
> vnoremap <Leader>P "+P
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion visit
> https://groups.google.com/d/msgid/vim_use/SE1P216MB232748EA88681D113A27E72EFD252%40SE1P216MB2327.KORP216.PROD.OUTLOOK.COM
> <https://groups.google.com/d/msgid/vim_use/SE1P216MB232748EA88681D113A27E72EFD252%40SE1P216MB2327.KORP216.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_use/CANuxnEfWU2n5WGXruWvmKcv8shkxAk%2B7p-W094KJF8Bwv867WQ%40mail.gmail.com.

Reply via email to