Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.25 KB

README.md

File metadata and controls

34 lines (27 loc) · 1.25 KB

compiler-explorer.vim

Vim integration for Matt Godbolt's Compiler Explorer

WARNING: This project is a pre-alpha prototype written as a way to learn viml.

Don't use it for your precious.

This plugin provides assembly-as-you type, allowing all the bikeshedding you can imagine in the name of performance.

2-step Installation

  1. Install the plugin as usual. For example, with pathogen:
     cd ~/.vim/bundle
     git clone https://github.com/ldrumm/compiler-explorer.vim
  2. Install Compiler Explorer proper and add the path to your vim config (adjust paths to taste):
    CE=$HOME/.local/lib/compiler-explorer
    git clone https://github.com/mattgodbolt/compiler-explorer "$CE"
    cat <<EOF >> ~/.vimrc
    
    " This is the path to the local Compiler Explorer installation required by
    " [compiler-explorer.vim](https://github.com/ldrumm/compiler-explorer.vim
    let g:ce_makefile = '$CE/Makefile'
    " Toggle display of the compiler-explorer assembly pane with f3
    map <f3> :CEToggleAsmView<CR>
    EOF
    

Note. This plugin require channel, job and json supported introduced with vim8 as well as any dependencies required by compiler-explorer proper.