Vim - Question


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Vim - Question
# 1  
Old 09-02-2008
Question Vim - Question

Hi,

I'm not sure whether this is the right place for my question.

For scripting I use very often Vim because it's almost available on all unix stations.

Sometimes it would be very helpful to exchange text inside Vim with other programs and the other way round! For example I want to copy inside vim 3 lines and paste them into Open Office or copy a URL from Firefox to Vim.

Is that possible ??? Smilie

Thanks
climber
# 2  
Old 09-02-2008
Hi,
If You have a three button mouse, You can usually select text with Your left mouse button and paste it with the middle one.
A modern Firefox most certainly also will allow You to just drag an adress, URL, or image/link to a text window, ie vim or terminal.

/Lakris
# 3  
Old 09-02-2008
Sure that's possible but I want to let my hands on the keyboard :-)

climber
# 4  
Old 09-02-2008
If you're inside screen, just "C-a esc" to enter copy mode, "spacebar" to set mark, select region, "spacebar" again, then "C-a ]" to paste.

"shift+insert" to paste content of clipboard outside screen. "shift+delete" to copy.
# 5  
Old 09-02-2008
from vim you can use the the erad command to read a file in $pwd into the file.
:!pwd
:!ls
:r <somefile>

(the ! lets you execute shell commands )
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Vim :f

Can someone please tell me what this does? :f word I thought that was the way to save files with a different name but after a quick google search I saw it was like this. :w filename (4 Replies)
Discussion started by: cokedude
4 Replies

2. UNIX Desktop Questions & Answers

Question about a VIM script from a absolute noob

What is this script meant to do? How do I make it executable and how do i run it? I am trying to understand what the script is doing and how it is doing it... need a little advice. Here is is.. if then list=`w | grep $user | cut -c19-30` if then echo "The user $user is... (2 Replies)
Discussion started by: DanableLector
2 Replies

3. AIX

[Vim] Question about syntax highlighting

Hi all, my sysadmin installed Vim packages (vim-enhanced-6.3-1 & vim-common-6.3-1) on an Aix system (7.1.0.0). I log in using Putty (vs 0.54) and got an annoying underline issue. All strings and var names are underlined as you can see on the attached file Is it possible to get rid of that... (4 Replies)
Discussion started by: Fundix
4 Replies

4. What is on Your Mind?

vi/vim lessons 1 - 7

Basic Editing https://www.unix.com/members/neo-albums-forum-pics-picture525-vi-vim-tutorial-1-basic-editing.gif (9 Replies)
Discussion started by: Neo
9 Replies

5. Solaris

Very Importan - Vim Settings - Error while opening a File using vim

I downloaded vim.7.2 and compiled the vim source . Added the vim binary path to PATH (Because iam not the root of the box) when i load the file using vim it throws me an error Error detected while processing /home2/e3003091/.vimrc: line 2: E185: Cannot find color scheme darkblue line... (0 Replies)
Discussion started by: girija
0 Replies

6. UNIX for Advanced & Expert Users

vim

Does anyone know the fast way to go to tab/2 distance in vim. I mean set four spaces. (1 Reply)
Discussion started by: mirusnet
1 Replies

7. UNIX and Linux Applications

Help with Vim

How do I use compilers and syntax highlighting in (g)Vim? Specifically, I need a Common Lisp compiler and a C++ compiler. Thanks in advance! (Note: Disregard my other topic.) (1 Reply)
Discussion started by: led3234
1 Replies

8. UNIX for Advanced & Expert Users

About Vim

Hello, what is the maximum size of a file that we can open using vim. (3 Replies)
Discussion started by: nagalenoj
3 Replies

9. UNIX for Dummies Questions & Answers

Need some help with vim

I use vim for writing code. I was using nano but found that vim is a much advanced editor. I am trying to achieve something like this: When trying a loop or a function, I generally type: function name() {} Now when I take my cursor one position to the left and press the return key, it give... (4 Replies)
Discussion started by: Legend986
4 Replies

10. Solaris

Vim 7.0

I want to install VIM 7.0 from sunfreeware.com onto a server. The security guys are giving me a hard time because they found this security vulnerability. http://xforce.iss.net/xforce/xfdb/6259 This vulnerability came out in 2001, and it looks like it was mostly for linux, but I cant be... (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies
Login or Register to Ask a Question