LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-10-2008, 12:10 AM   #1
dina3e
Member
 
Registered: Mar 2008
Location: Bangalore
Distribution: Enterprise Red Hat linux
Posts: 98

Rep: Reputation: 16
Smile capitalization of the words??


i am using both vi/vim editor.
i just want to capitalize the words by commands can this possible.
i don't want to capitalize the whole line as it can done by g~~
but i want 2 or 3 words to capitalize at a time that may in forward or backward direction.
Also is there any method to capitalize the first character of the word not all the characters of the words .

PHP Code:
The Vim Editor is intersting One
 
Old 05-10-2008, 01:27 AM   #2
Pikidalto
Member
 
Registered: Apr 2008
Location: North Versailles, PA
Distribution: Ark Linux
Posts: 63

Rep: Reputation: 15
There are two buttons for that...one is called Shift, and the other is called Caps Lock. Give them a go, see if they work in Vi (I believe they should, they work for me in Vi).
 
Old 05-10-2008, 02:45 AM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Pikidalto, if you can't be bothered being helpful, don't bother posting

Dina, the tilde "~" will switch the case of the text under the curser. 4~ will change the case of the character under the cursor and 3 characters to the right.

In visual more, the tilde will switch the case of highlighted text.

For the last part, see http://www.linuxquestions.org/questi...string-268182/

Hope that helps
 
Old 05-11-2008, 10:26 PM   #4
dina3e
Member
 
Registered: Mar 2008
Location: Bangalore
Distribution: Enterprise Red Hat linux
Posts: 98

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by billymayday View Post
Pikidalto, if you can't be bothered being helpful, don't bother posting

Dina, the tilde "~" will switch the case of the text under the curser. 4~ will change the case of the character under the cursor and 3 characters to the right.

In visual more, the tilde will switch the case of highlighted text.

For the last part, see http://www.linuxquestions.org/questi...string-268182/

Hope that helps
THANKS FOR THE LINKS .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
command(s) comparing 3 files and changing capitalization of words (+output) kuser:) Linux - General 4 03-21-2012 09:37 AM
Capitalization rules pixellany General 4 01-18-2007 12:04 PM
Search and Replace: Asian Words to English Words ieeestd802 Linux - Software 0 10-27-2004 08:48 PM
Capitalization of Char in C mattp Programming 14 03-17-2004 04:25 PM
Titular capitalization of filenames rose_bud4201 Programming 4 09-13-2003 12:52 AM


All times are GMT -5. The time now is 10:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration