vim- easy mapping to make 'd' delete (not cut), and 'leader-d' cut.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
d-is-for-delete-shared-clipboard
d-is-for-delete-unnamed-register

README.md

d-is-for-delete

vim- easy mapping to make 'd' delete (not cut), and 'leader d' cut.

Installation

There are 2 flavors to use this key mapping, either with a shared clipboard configuration or using the default unnamed register (.i.e '"' register).

Shared Clipboard:

curl -sS https://raw.githubusercontent.com/pazams/d-is-for-delete/master/d-is-for-delete-shared-clipboard >> ~/.vimrc

Default Register:

curl -sS https://raw.githubusercontent.com/pazams/d-is-for-delete/master/d-is-for-delete-unnamed-register >> ~/.vimrc

Notes

It is a nice practice to have the "leader" key set to comma, e.g:

let mapleader = ","

let g:mapleader = ","

This will make ",d" be your new cut command.