summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhineng Li <im@zhineng.li>2026-05-28 15:28:02 +0800
committerZhineng Li <im@zhineng.li>2026-05-28 15:28:02 +0800
commitf97eb0192caabb916ec040195933a9808a07debd (patch)
treea98da0d40cd59b000387fd662afec27a586dd4a5
parent63d78670e5c32c3c8216ddc2c72445f2a32dc7cb (diff)
downloaddotfiles-f97eb0192caabb916ec040195933a9808a07debd.tar.gz
dotfiles-f97eb0192caabb916ec040195933a9808a07debd.zip
set the prefix key to comma ","
-rw-r--r--nvim/init.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/nvim/init.vim b/nvim/init.vim
index 05d4c8e..44671da 100644
--- a/nvim/init.vim
+++ b/nvim/init.vim
@@ -16,5 +16,8 @@ set tabstop=4
" Indent using four spaces
set shiftwidth=4
+" Customize the prefix key
+let mapleader = ","
+
" Clear search highlighting with double Esc
nnoremap <Esc><Esc> :nohlsearch<CR>