Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Modify cursor movement keys in Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Modify cursor movement keys in Terminal
Authored by: i5ao on Aug 24, '06 02:50:18PM

ctrl-w deletes one word to the right of the cursor (forward delete word)
esc-del deletes one word to the left of the cursor (backward delete word)

OMM anyway. I use tcsh with the following bindings in my ~/.tcshrc file (from a previous hint on this site, a long time ago IIRC). see also ''man tsch''

# keys
bindkey "^I" complete-word-fwd
bindkey -k down history-search-forward
bindkey -k up history-search-backward
bindkey ^w delete-word
bindkey "^[[3~" delete-char # fix fwd delete



[ Reply to This | # ]
Modify cursor movement keys in Terminal
Authored by: sjk on Aug 24, '06 05:02:43PM
[this is followup to iSao's comment, if you're seeing it non-threaded]

Setting the wordchars variable influences word-oriented tcsh editor commands. I use:

set wordchars = '*?[]~='

And magic-space can be a handy function, meant to be bound to the space character:

bindkey ' ' magic-space


[ Reply to This | # ]