Code Monkey home page Code Monkey logo

vim-delete's Introduction

delete.vim

Basics

This plugin has one simple function - it allows you to delete a line above or below your current line without ever moving your cursor.

By default, this overwrites gd (for "go delete", if you happen to like mnemonics). In order to use this plugin, all you really have to do is type gd, the number of lines to move up/down, and the direction (j or k). For instance, to delete a line 10 lines above your current line, type gd10k.

Options

Of course, it wouldn't be a proper plugin without a few configuration options. Due to how simple this plugin is though, there really isn't much to customize.

You can set g:delete_default_register if you'd like to put the contents of your deleted line into a specific register.

Set g:delete_no_register to ensure that your deletions get put in the "black hole" register, (_).

You can change the mapping if you so choose. This can be done by setting g:delete_custom_mapping.

You can also decide not to have a mapping, if you'd like to temporarily disable the plugin without deleting it. Simply set g:delete_no_mapping to 1.

Coming Soon...

  • Deleting ranges of lines
  • Specifying a register for a specific run

vim-delete's People

Contributors

gregkwhite avatar

Watchers

James Cloos avatar  avatar

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.