Code Monkey home page Code Monkey logo

mbed-vim's Introduction

mbed-vim

version Build Status license

Execute mbed-CLI commands from within Vim.

Installation

  • By cloning the repository
$ git clone [email protected]:marrakchino/mbed-vim.git
$ cp mbed-vim/plugin/mbed.vim ~/.vim/plugin
  • By downloading the plugin file to your plugin directory using wget
$ wget https://raw.githubusercontent.com/marrakchino/mbed-vim/master/plugin/mbed.vim -O ~/.vim/plugin/mbed.vim

Features

  • Compiling the current application with different options (clean, verbose mode, etc.) and displaying the output when the compilation is unsuccessful.

  • Adding/Removing a library.

  • Setting the application's target/toolchain.

  • Synchronizing the different dependencies.

  • Running tests and displaying the results.

Default key mappings

<leader>c:   Compile the current application.
<leader>C:   Clean the build directory and compile the current application.
<leader>cf:  Compile and flash the built firmware onto a connected target.
<leader>cv:  Compile the current application in verbose mode.
<leader>cV:  Compile the current application in very verbose mode.
<leader>n:   Create a new mbed program or library.
<leader>s:   Synchronize all library and dependency references.
<leader>t:   Find, build and run tests.
<leader>d:   Import missing dependencies.
<leader>a:   Prompt for an mbed library to add.
<leader>r:   Prompt for an mbed library to remove.
<leader>l:   Display the dependency tree.
<F9>:        Close the error buffer (when open).
<F12>:       Set the current application's target and toolchain.

Commands

Add <library_name>        Add the specified library. When no argument is given,
                            you are prompted for the name of the library.
Remove <library_name>     Remove the specified library. When no argument is given,
                            you are prompted for the name of the library.
SetToolchain <toolchain>  Set a toolchain (ARM, GCC_ARM, IAR).
SetTarget <target>        Set a target.

Contributing

Feel free to contribute to this project, either by opening issues or by forking the repository and opening pull requests.

License

This project is licensed under MIT, see LICENSE file for more.

mbed-vim's People

Contributors

n-eq avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

mbed-vim's Issues

Implement robust testing

Setup a test to extensively execute the plugin functions and test their correct behaviour.
Vimlint isn't sufficient.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.