sponsor Vim development Vim logo go to HTTPS page Vim Book Ad

mbed-vim : Execute mbed CLI commands without exiting Vim!

 script karma  Rating 103/28, Downloaded by 98    Comments, bugs, improvements  Vim wiki

created by
Nabil Elqatib
 
script type
utility
 
description
Github repository: https://github.com/marrakchino/mbed-vim

This file contains routines that may be used to execute mbed CLI commands
from within VIM. It depends on mbed OS. Therefore,
you must have mbed CLI correctly installed
(see https://github.com/ARMmbed/mbed-cli#installation).

* Used variables:
g:mbed_target / g:mbed_toolchain : These variables default to the content read from the ~/.mbed file, and eventually overwritten by the local .mbed file.
They can be forced to reset by calling MbedSetTargetandToolchain(1) (mapped to <F12> key) or serparately using the :SetTarget and :SetToolchain commands.

* In command mode:
  <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 dependency tree
  <F9>:           Close the error buffer (when open)
  <F12>:         Set the current application\\'s target and toolchain

  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
 
install details
Copy the mbed.vim script to your $HOME/.vim/plugin directory to install it. This operation can be done easiy by executing the following command in a terminal:
$ wget https://raw.githubusercontent.com/nelqatib/mbed-vim/master/plugin/mbed.vim -O ~/.vim/plugin/mbed.vim

Make sure you have properly installed mbed CLI before using this plugin.
 

Rating scripts is only available on the HTTPS page

script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
mbed.vim 1.0 2017-08-22 7.0 Nabil Elqatib First major version

Useful variables are window-scoped, MbedList() resulting buffer is nofile type, useful variables are read from global configuration and eventually overwritten if a local config exists.

Fixes #12 , fixes #15 , fixes #14 , closes #16
mbed.vim 0.2 2017-08-17 7.0 Nabil Elqatib Minor bug fixes, new mappings
mbed.vim 0.1 2017-08-10 7.0 Nabil Elqatib Initial upload
ip used for rating: 54.196.201.241

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo