Add :PreProcIfWrap command and C/C++ mappings
Quickly wrap a line or range in `#if 0`/`#endif` to quickly disable compilation of sections of code.
This commit is contained in:
3
after/ftplugin/c.lua
Normal file
3
after/ftplugin/c.lua
Normal file
@@ -0,0 +1,3 @@
|
||||
local opts = { buffer = true, remap = false, silent = true }
|
||||
vim.keymap.set('n', '0', ':PreProcIfWrap<CR>', opts)
|
||||
vim.keymap.set('v', '0', ':PreProcIfWrap<CR>', opts)
|
||||
Reference in New Issue
Block a user