From ab635dd7b4392751cc9744297e97ffb1971f7ad1 Mon Sep 17 00:00:00 2001 From: Atsushi NAGASE Date: Mon, 15 Jun 2026 08:26:59 +0900 Subject: [PATCH 1/3] fix(vim): resolve mapping conflict between copilot and snipMate copilot.vim maps in insert mode by default, which collided with vim-snipmate's `imap ` and raised E227 at startup. Set g:copilot_no_tab_map before plug#end() so stays with snipMate, and accept Copilot suggestions with instead. --- rc.d/vimrc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/rc.d/vimrc b/rc.d/vimrc index 9ea798ee..12e7c953 100644 --- a/rc.d/vimrc +++ b/rc.d/vimrc @@ -53,6 +53,13 @@ if v:version > 801 || (v:version == 801 && has( 'patch2269' )) Plug 'ycm-core/YouCompleteMe' endif +" Reserve for vim-snipmate. copilot.vim maps in insert mode by +" default, which collides with snipMate's `imap ` (E227). This +" must be set before plug#end() because copilot installs its mapping while its +" plugin is sourced there. Copilot suggestions are accepted with instead +" (see the Copilot section below). +let g:copilot_no_tab_map = v:true + " All of your Plugins must be added before the following line call plug#end() filetype plugin indent on " required @@ -233,6 +240,13 @@ endif " ================================================= let g:goyo_width = 120 +" ================================================= +" Copilot +" ================================================= +" is reserved for snipMate (see g:copilot_no_tab_map before plug#end()). +" Accept Copilot suggestions with instead. +imap