diff --git a/nvim/.config/nvim/plugin/mappings.vim b/nvim/.config/nvim/plugin/mappings.vim index 1e0a7563..1aba94b0 100644 --- a/nvim/.config/nvim/plugin/mappings.vim +++ b/nvim/.config/nvim/plugin/mappings.vim @@ -55,3 +55,15 @@ vnoremap ]h :call mine#encoding#wrapper('hexDecode') " Makes the delete key work in insert mode inoremap + +" Compiles documents +" The uppercase versions don't push enter an extra time resulting in seeing +" the output of the compile command. Useful for debugging +nnoremap cc :w! \| !compiler % +nnoremap cC :w! \| !compiler % +nnoremap cl :w! \| !compiler % letter +nnoremap cL :w! \| !compiler % letter + +" Opens the compiled documents +" If something like html, it doesn't need to be compiled first +nnoremap co :!opout %