Giter Site home page Giter Site logo

vim-breakpoint's Introduction

Vim Breakpoint

Vim 8.1

Vim 8.1 changed the output of sign listings, v8.1 solves this program.


Vim breakpoint is a plugin for easily placing breakpoints from inside Vim.

It saves and reads breakpoints from $FILEPATH/.$FILENAME_breakpoints.

Currently it only supports GDB style breakpoints, but this could easily be extended if I could be bothered.

Currently doesn't delete breakpoint even if line is deleted. This is however not a large problem, since it is still apparent where the breakpoints are.

  1 #include <stdio.h>
  2 #include <string.h>
  3 
  4 int main() {
  5     printf("%i\n", strcmp("Hello", "Hello"));
* 6     printf("%i\n", strcmp("hello", "Hello"));
  7     printf("%i\n", strcmp("Nothing", "Hello"));
  8 }

An "image" of vim with a breakpoint on line 6

Installation

Since a few versions back this plugin requires Vim 8. The old version which still works with Vim 7 is available under the tag v7.

If using vim-plugged then the following can be put in your vimrc to automatically get the correct version:

if version >= 800 |Plug 'HugoNikanor/vim-breakpoint'
else              |Plug 'HugoNikanor/vim-breakpoint', {'tag': 'v7'}

Usage

The breakpoints save to file whenever you save a file with breakpoints in it, and also automatically loads a breakpoint file if there is any.

For full usage documentation see :help breakpoint

The plugin doesn't bind any keys by itself, so that's up to the user. I would recommend having the following in your vimrc after loading the plugin:

nmap <leader>a <Plug>BreakpointToggle

Commands

  • BreakpointPlace [line]
  • BreakpointRemove [line]
  • BreakpointToggle [line]
  • BreakpointSave
  • BreakpointLoad

vim-breakpoint's People

Contributors

hugonikanor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

colinkennedy

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.