LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-22-2005, 11:36 AM   #1
pld
Member
 
Registered: Jun 2003
Location: Southern US
Distribution: Ubuntu 5.10
Posts: 206

Rep: Reputation: 30
VIM insert before a visual block...


Hi all,

I have a big block of text that I want to insert some other text in front of it..

basically, i want to add text to the beginning of every line (and some more text at the end of every line).

i used to be able to do this with visual mode, but i have since forgotten what the darn steps were to do it!

can anyone shed a little light?

tia!

[edit]
I just figured it out again!

Ctrl-V for visual block mode, select text, the "I" yourtext <esc><esc>...
[/edit]

Last edited by pld; 06-22-2005 at 11:40 AM.
 
  


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
Using Visual in VIM editor manikantha Linux - General 4 06-10-2005 08:55 AM
Possible problem with VISUAL=vi (vim & bash) redthor Linux - Newbie 2 04-26-2005 06:19 AM
moving around in vim while in insert mode cleff Linux - Software 3 06-14-2004 10:26 PM
VIM Setup- No 'insert' mode uveraser Linux - Software 1 05-25-2004 10:44 AM
insert mode in vim usr Linux - Software 1 01-18-2004 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:39 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