All Projects → svermeulen → vim-cutlass

svermeulen / vim-cutlass

Licence: MIT license
Plugin that adds a 'cut' operation separate from 'delete'

Projects that are alternatives of or similar to vim-cutlass

nvim-hclipboard
Hijack your clipboard in Neovim
Stars: ✭ 19 (-85.82%)
Mutual labels:  clipboard, nvim
Vim Yoink
Vim plugin that maintains a yank history to cycle between when pasting
Stars: ✭ 225 (+67.91%)
Mutual labels:  clipboard, nvim
blossom.vim
a simple pinkish vim colorscheme designed for cursive italics
Stars: ✭ 18 (-86.57%)
Mutual labels:  nvim
dotfiles
files that start . and makes my Linux box awesome.
Stars: ✭ 57 (-57.46%)
Mutual labels:  nvim
vim-lamp
💡Language Server Protocol client for Vim.
Stars: ✭ 34 (-74.63%)
Mutual labels:  nvim
nvim-remote-containers
Develop inside docker containers, just like VSCode
Stars: ✭ 340 (+153.73%)
Mutual labels:  nvim
vim-setup
👾 My NeoVim configuration for Scala & Haskell development (permanently moved to https://github.com/gvolpe/dotfiles)
Stars: ✭ 31 (-76.87%)
Mutual labels:  nvim
dotfiles
Opinionated garbage for your terminal. Gotta get that yolo swag.
Stars: ✭ 37 (-72.39%)
Mutual labels:  nvim
alfred-string-operations
Perform string operations to clipboard content
Stars: ✭ 70 (-47.76%)
Mutual labels:  clipboard
comment-box.nvim
✨ Clarify and beautify your comments using boxes and lines.
Stars: ✭ 91 (-32.09%)
Mutual labels:  nvim
bolt.nvim
⚡ Ultrafast multi-pane file manager for Neovim with fuzzy matching
Stars: ✭ 100 (-25.37%)
Mutual labels:  nvim
MagicWE2
[MagicWE2] Lag free asynchronous world editor for PMMP with plenty of options
Stars: ✭ 109 (-18.66%)
Mutual labels:  clipboard
cliptext
Clipboard manager for macOS. Built with Electron.js
Stars: ✭ 37 (-72.39%)
Mutual labels:  clipboard
Dot-It-Up
A collection of dotfile scripts, plugins, and clever hacks so that you can become the master of your own OS! 🚀
Stars: ✭ 254 (+89.55%)
Mutual labels:  nvim
zk-nvim
Neovim extension for zk
Stars: ✭ 207 (+54.48%)
Mutual labels:  nvim
cookie-extraction
登录后提取在线cookie,更新至服务器或拷贝至剪切板,为爬虫抓取跳过复杂验证码识别程序
Stars: ✭ 46 (-65.67%)
Mutual labels:  clipboard
ossFileTransferClient
이 프로젝트는 업무망과 인터넷망으로 분리된 망간자료전송 솔루션의 인터넷망용 클라이언트를 개발합니다.
Stars: ✭ 18 (-86.57%)
Mutual labels:  clipboard
feline.nvim
A minimal, stylish and customizable statusline for Neovim written in Lua
Stars: ✭ 867 (+547.01%)
Mutual labels:  nvim
townshell
For Townscaper, an application providing additional keyboard shortcuts, tools to manipulate .scape files, screen recording
Stars: ✭ 40 (-70.15%)
Mutual labels:  clipboard
cutlass.nvim
Plugin that adds a 'cut' operation separate from 'delete'
Stars: ✭ 78 (-41.79%)
Mutual labels:  nvim

Cutlass.vim

Cutlass overrides the delete operations to actually just delete and not affect the current yank.

It achieves this by overriding the following keys to always use the black hole register: c, cc, C, s, S, d, dd, D, x, X. Note that if you have already mapped these keys to something else (like we do below with x) then it will not change it again.

After including this plugin, all of these operations will simply delete and not cut. However, you will still want to have a key for 'cut', which you can add by including the following to your .vimrc:

nnoremap m d
xnoremap m d

nnoremap mm dd
nnoremap M D

m here can be thought of as 'move'. Note that you will be shadowing the 'add mark' key if you go with this binding. Or you might want to use the x key instead:

nnoremap x d
xnoremap x d

nnoremap xx dd
nnoremap X D

And then use dl instead of x every time you want to delete a single character. You might also consider using s with vim-subversive and then using cl as a replacement in the same way.

Why would you want to do this?

See here

You might also consider installing vim-yoink which contains other clipboard related improvements mentioned in this article.

Credits

Based off of vim-easyclip and also Drew Neil's ideas (as well as the name)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].