- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: A Really Embarassing vi Question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2008 07:58 AM
тАО11-20-2008 07:58 AM
What is the difference between "b" and "B", and "w" and "W", for single-word movement (backwards and forwards, respectively) around the file being edited?
I've read and re-read the man page for vi, and honestly, I have no idea. I've always used the lowercase versions of both commands and never worried about the capitalized versions - if I needed to move forward a word or three, I just hit "w" one or more times, and if I needed to move backwards, I used "b".
I'm trying to give my vi-newbie cow-orkers some hints and guidance on vi, and they've buffaloed me with this.
Could some kind soul smack me up-side the head with a Clue-By-Four and tell me what I'm missing?
HP-Server-Literate since 1979
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2008 08:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2008 08:03 AM
тАО11-20-2008 08:03 AM
Re: A Really Embarassing vi Question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2008 08:07 AM
тАО11-20-2008 08:07 AM
Re: A Really Embarassing vi Question
b & w will incorporate these characters when jumping to the next mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2008 08:11 AM
тАО11-20-2008 08:11 AM
Re: A Really Embarassing vi Question
Which also explains why I've used the lowercase versions of these commands for forever-and-a-day. :-)
Again, thanks for the quick answers!!!
HP-Server-Literate since 1979
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2008 10:28 AM
тАО11-20-2008 10:28 AM
Re: A Really Embarassing vi Question
You might want to try it to see how far it moves. vi(1) says B/W move to a space delimited word.
>Which also explains why I've used the lowercase versions of these commands for forever-and-a-day. :-)
If you put a number in front, you could move faster. Or if you have unique chars, you can use "f" then char to move forward. And ";" to repeat.