I am using a Raspberry Pi for learning C. I use NeoVim and Mingw-GCC on the Pi over SSH.
Building is done with a custom script named build
. Initial builds were done by calling ./build
from the command mode of nvim.
I want to map Ctrl-B
to call the build script. Currently I am using this
noremap <C-b> :w | !./build
but everytime I run vim, it seems to be running the build script.
Removing the w |
seems to solve the problem but then I have to manually save the file before running.
I want it to just startup normally. And save before building.
:help map-bar
.map-bar