Re: Map Ctrl-Backspace to delete one word before cursor

2007-03-25 Thread Mark Woodward
Hi,

On Sat, 2007-03-24 at 20:09 -0700, Some user wrote:
 Hello,
 
 I want to bind Ctrl-Backspace in insert mode to deleting the word before it
 just like Wordpad or Visual Studio (it actually gobbles up whitespace and
 deletes the word before the whitespace and places cursor at location where
 the first letter of the deleted word was).
 
 I tried something like:
 
 :map! C-BS Escdbi

:inoremap C-BS C-W
might be what you're after, though just as easy to type C-W
ie control, shift w

 
 Except this doesn't work properly. :( Anyone has ideas on how to map it to
 *exactly* the behavior in Windows' Visual Studio or Crimson Editor or
 Wordpad? It would help me migrate from Visual Studio's editor to Vim. :D
 
 Thanks,


cheers,

-- 
Mark


Re: Map Ctrl-Backspace to delete one word before cursor

2007-03-25 Thread A.J.Mechelynck

Mark Woodward wrote:

Hi,

On Sat, 2007-03-24 at 20:09 -0700, Some user wrote:

Hello,

I want to bind Ctrl-Backspace in insert mode to deleting the word before it
just like Wordpad or Visual Studio (it actually gobbles up whitespace and
deletes the word before the whitespace and places cursor at location where
the first letter of the deleted word was).

I tried something like:

:map! C-BS Escdbi


:inoremap C-BS C-W
might be what you're after, though just as easy to type C-W
ie control, shift w


No need for Shift: Ctrl + w is enough. (Ctrl-w and Ctrl-Shift-w are synonymous 
to Vim.)





Except this doesn't work properly. :( Anyone has ideas on how to map it to
*exactly* the behavior in Windows' Visual Studio or Crimson Editor or
Wordpad? It would help me migrate from Visual Studio's editor to Vim. :D

Thanks,



cheers,



Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
137. You decide to stay in college for an additional year or two,
 just so you can have the free Internet access.


Map Ctrl-Backspace to delete one word before cursor

2007-03-24 Thread Some user

Hello,

I want to bind Ctrl-Backspace in insert mode to deleting the word before it
just like Wordpad or Visual Studio (it actually gobbles up whitespace and
deletes the word before the whitespace and places cursor at location where
the first letter of the deleted word was).

I tried something like:

:map! C-BS Escdbi

Except this doesn't work properly. :( Anyone has ideas on how to map it to
*exactly* the behavior in Windows' Visual Studio or Crimson Editor or
Wordpad? It would help me migrate from Visual Studio's editor to Vim. :D

Thanks,
-- 
View this message in context: 
http://www.nabble.com/Map-Ctrl-Backspace-to-delete-one-word-before-cursor-tf3461130.html#a9656873
Sent from the Vim - General mailing list archive at Nabble.com.