Search notes:

vim script: g mapleader

"
"  ..\run_ g_mapleader
"
"
"  The value of g:mapleader is used at the definition of a mapping,
"  not when it is used!
"

redir > g_mapleader.out

let g:mapleader=","
nnoremap <leader>go :echo "mapleader currently is a comma"<CR>

let g:mapleader="/"
nnoremap <leader>go :echo "mapleader currently is a slash"<CR>


execute "normal ,go"
execute "normal /go"


redir END
q

" mapleader currently is a comma
" mapleader currently is a slash
Github repository about-vim, path: /vimscript/variables/internal/g_mapleader.vim

See also

VIM script

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759561891, '216.73.216.149', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/vim/script/vimscript/variables/internal/g_mapleader(63): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78