Comments (3)
I haven't added a delete_longword
because I don't think there is such a command in Readline or similar command-line interfaces. If you know a suitable key binding which exists in Readline or other shell interfaces I will consider adding it. I have chosen to avoid adding mappings which does not have a corresponding command in Bash or Readline. This is because I want the scope of the plugin to be focused Readline emulation in Vim's command-line.
Regarding the documentation. I've chosen not to use the Vim terms WORD
and word
to avoid confusion because the plugin handles the word boundaries slightly differently from Vim. You can compare Alt-b
with b
in command-line mode and you will see that there is a slight difference in behaviour between the commands. The word-mappings in the plugin are implemented to behave just like in Readline, which has a different behaviour compared to Vim.
from readline.vim.
Not sure about default keybinding, they tend to differ, but there are commands in zsh and bash (which uses readline).
In zsh there is backward-kill-word
. Try binding it to ctrl+k:
zsh> bindkey '^k' backward-kill-word
Bash has shell-backward-kill-word
which works not exactly as wanted, since also deletes the leading space character. Anyways, example binding to ctrl+k:
bash> bind "\C-k":shell-backward-kill-word
If you want to keep it as close to readline origins as possible, no problem.
from readline.vim.
As it does not appear to be a standard keybinding for this. I don't think there is a way to implement it as a mapping which fits with the current scope of the plugin. One think I might consider in the future is to make it possible to bind line editing commands using <plug>
. So one could write:
cnoremap <c-k> <plug>backward-kill-word
To get what you want. Then the problem of finding a suitable mapping does not exist anymore. But I think that would be a separate issue. I generally want to avoid adding features unless I know multiple people want them, to keep the plugin small and simple.
from readline.vim.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from readline.vim.