From: Samir Benmendil Date: Mon, 10 Apr 2023 22:36:29 +0000 (+0100) Subject: vim: set g:mapleader instead of remapping X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/dd4a806cf3918fc6b20de40f1c9d344f5ece4f0a vim: set g:mapleader instead of remapping This is technically the correct way, I used the remap before to support both and the default \ as leader keys. Remapping interferes with nvim's which-key though. It's just a warning and I'm not sure if it actually causes features to break. I'm only setting mapleader for now to silence this. I think the mapping was also convenient to be able to map \ ad hoc rather than use or something. We'll deal with this later. --- diff --git a/vim/vimrc b/vim/vimrc index 2f0a7ca..5f0dea3 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -1,6 +1,9 @@ " force python3 if has('python3') | endif +" space is leader +let g:mapleader = " " + " runtimepath {{{1 set runtimepath ^=$XDG_CONFIG_HOME/vim set runtimepath +=$XDG_CONFIG_HOME/vim/after @@ -422,9 +425,6 @@ command! ToggleAutoChecktime let b:autochecktime=!get(b:, 'autochecktime', 0) | " bindings {{{1 -" allow both and \ to be -map - " make function! MakeWithOpt() " TODO only do this if makeprg matches make