From 0059483c5f16391f06fd43b4a59b11922336709c Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Mon, 10 Apr 2023 23:36:29 +0100 Subject: [PATCH] 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. --- vim/vimrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.48.1