Repository navigation
Disable ]] Mapping
#3248
|
I don't use the |
Replies: 1 comment 2 replies
|
The best way to disable a single mapping is to create a new mapping for that specific imap <buffer> <sid>]] <plug>(vimtex-delim-close)or in Lua: vim.keymap.set("i", "<sid>]]", "<plug>(vimtex-delim-close)", { buffer = true })I would add this to your personal Minor explanation: |
The best way to disable a single mapping is to create a new mapping for that specific
<plug>mapping, e.g. something like this:or in Lua:
I would add this to your personal
ftplugin/tex.vimorftplugin/tex.luafile, if you have one. If not, then you need to add this to a filetype autocommand so that it only executes on the tex filetype.Minor explanation:
<sid>is a special code that you can use in mappings that expand to a special key code<snr>and a number for that particular script file. Thus, we are now creating a mapping that is extremely unlikely that you…