Sponsored Content
Full Discussion: Paste text into vi file?
Operating Systems OS X (Apple) Paste text into vi file? Post 302681585 by Corona688 on Friday 3rd of August 2012 03:29:31 PM
Old 08-03-2012
googling osx x11 paste found the apple faq on the subject:

Quote:
Q: How do I copy and paste using X11 for Mac OS X?

A: X11 for Mac OS X allows cut and paste between X11 and native applications using PRIMARY and PASTEBOARD selections.
You can cut text from X11 applications by selecting the text, performing a cmd-c or copy operation. You can paste in native Mac OS X applications as usual using Cmd-V.
Because there is no standard for pasting in X11 applications (some use middle mouse button, some use control-v, etc.), cmd-v doesn't work for pasting in X11 applications by design. As a result, the "Paste" menu item will be grayed out when X11 applications are in focus. You should use the control-v or the middle mouse button instead for pasting (See X11 Preferences for emulating a middle mouse button).
The "Paste" menu option will be active when non-X windows are active within X11.app (e.g., when entering text in the "Customize Applications" menu item).
A common request has been to make cmd-v work across all X11 applications. This isn't possible without re-writing all X11 applications to standardize on a single approach, which is outside the domain of X11 for Mac OS X.
Please, try option-click on X11 applications. The 'enable key equivalence' in the X11 Preferences allows cmnd-c to work, but in some cases it has conflict with other keyboard shortcuts, namely on emacs.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Copy/Paste text as commands in AIX

Hello, I'm absolutely new to this world... but I've a problem with a terminal connected via PuTTY (or Termlite) to an AIX 5.1 application. The problem: I need to paste from clipboard a text containing both input text strings and special keys as ESC, Arrows and so on, to execute in the AIX... (1 Reply)
Discussion started by: Daniele11
1 Replies

2. Shell Programming and Scripting

How to Merge / combine / join / paste 2 text files side-by-side

I have 2 text files, both have one simple, single column. The 2 files might be the same length, or might not, and if not, it's unknown which one would be longer. For this example, file1 is longer: ---file1 Joe Bob Mary Sally Fred Elmer David ---file2 Tomato House Car... (3 Replies)
Discussion started by: cajunfries
3 Replies

3. Shell Programming and Scripting

Paste content of a file to another file and make it as columned

Pls help me on this. I have to 2 files like shown below: File 1 TAIJM AXPKIM BEMGW File 2 PXMPA JYGE IMJP What i want to do is to paste both file to a new file on thir format: File 3 TAIJM PXMPA AXPKIM JYGE BEMGW IMJP I tried cat and print, but it doesn't work. Cn... (6 Replies)
Discussion started by: kingpeejay
6 Replies

4. Solaris

Copy and paste text from a word document into a txt file in vi

Hello, Can anybody please tell me how we can copy and paste text from a word document into a text file that we are editing in vi? Is it possible to do that while we are editing the text file in vi in insert mode? Thanks, (3 Replies)
Discussion started by: Pouchie1
3 Replies

5. Shell Programming and Scripting

Copy and Paste Columns in a Tab-Limited Text file

I have this text file with a very large number of columns (10,000+) and I want to move the first column to the position of the six column so that the text file looks like this: Before cutting and pasting ID Family Mother Father Trait Phenotype aaa bbb ... (5 Replies)
Discussion started by: evelibertine
5 Replies

6. Shell Programming and Scripting

How to paste lines below certain text (Script)

Hello Guys, I know the command echo " " > filenamehere ; would erase everything in the document. Can the same be done, to paste words below certain text? For example, lets say i want to paste a line below the line Server name: in apache.conf . What should be added in the script? (8 Replies)
Discussion started by: xxxx
8 Replies

7. Shell Programming and Scripting

How to cut a pipe delimited file and paste it with another file to form a comma separated outputfile

Hello ppl I have a requirement to split (cut in unix) a file (A.txt) which is a pipe delimited file into A1.txt and A2.txt Now I have to join (paste in unix) this A2.txt with external file A3.txt to form output file A4.txt which should be CSV (comma separated file) so that third party can... (25 Replies)
Discussion started by: etldev
25 Replies

8. Shell Programming and Scripting

Copy and paste text inside a xml file

I have a really big XML file. I need copy the value of one tag inside another one tag. I try to publish one example. <channel update="i" site="merge-xmltv" site_id="" xmltv_id="Rai 1">Rai 1</channel> <channel update="i" site="merge-xmltv" site_id="" xmltv_id="Rai 1 +2HD">Rai 1... (6 Replies)
Discussion started by: Tapiocapioca
6 Replies

9. Shell Programming and Scripting

Bash copy and paste text in file from one position to another

Hi I have a text file with lines beginning with 71303, 71403, 71602, I need to copy the 10 digit text at position 30 on lines beginning with 71303 (5500011446) to position 99 on every line beginning with 71602 (see example below), There may be many 71303 lines but I need the text copying to... (2 Replies)
Discussion started by: firefox2k2
2 Replies

10. Shell Programming and Scripting

Match text to lines in a file, iterate backwards until text or text substring matches, print to file

hi all, trying this using shell/bash with sed/awk/grep I have two files, one containing one column, the other containing multiple columns (comma delimited). file1.txt abc12345 def12345 ghi54321 ... file2.txt abc1,text1,texta abc,text2,textb def123,text3,textc gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 Replies
WINDOWLAB(1x)															     WINDOWLAB(1x)

NAME
windowlab - a window manager for X11 SYNOPSIS
windowlab [options...] DESCRIPTION
windowlab is a small and simple window manager of novel design. It has a click-to-focus but not raise-on-focus policy, a window resizing mechanism that allows one or many edges of a window to be changed in one action, and an innovative menubar that shares the same part of the screen as the taskbar. Window titlebars are prevented from going off the edge of the screen by constraining the mouse pointer, and when appropriate the pointer is also constrained to the taskbar/menubar in order to make target menu items easier to hit. WindowLab places a taskbar at the top of the screen and adds a titlebar to the top of each window. These titlebars consist of a draggable area, and three icons on the right hand side. When left clicked, these icons: * hide the window * toggle the window's Z order Amiga style (if it's not at the front, bring it to the front, otherwise send it to the back) * close the window Another way of toggling a window's Z order (depth) is by double left clicking on the draggable part of its titlebar. Windows' titlebars are prevented from leaving the screen and cannot overlap the taskbar. The taskbar should list all windows currently in use. Left clicking on a window's taskbar item will give that window focus and toggle its Z order (depth). To resize the active window hold down alt and push against the window's edges with the left mouse button down. If you right click outside a client window, WindowLab's taskbar becomes a menubar. Releasing the right mouse button over a selected menu item will start a corresponding external program. WindowLab will look in each of the following files in turn for definitions of the menu labels and commands: * ~/.windowlab/windowlab.menurc * ../etc/windowlab.menurc (from the directory containing the executable) * /etc/X11/windowlab/windowlab.menurc Each line in the menurc file should have the menu label, a colon, and then the corresponding command, eg: The GIMP:gimp New windows (that don't specify their location) are positioned according to the coordinates of the mouse - the top-left hand corner of a new window is set to the location of the mouse pointer (if necessary the window will be moved to ensure that all of it is on the screen). WindowLab has the following keyboard controls. Hold down alt and press: * tab to give focus to the previous window * q to give focus to the next window * F11 to toggle fullscreen mode on and off for non transient windows * F12 to toggle the window's depth. This is the same as left clicking a window's middle icon OPTIONS
-font font-spec Draw window titles with the font defined by font-spec. -border color, -text color, -active color, -inactive color, -menu color, -selected color, -empty color Use color for the borders, the text, the active background, the inactive background, the menubar, the selected menu item and empty parts of the screen. -about Print information to stdout and exit. -display Sets which X display will be managed by windowlab. ENVIRONMENT VARIABLES
DISPLAY Sets which X display will be managed by windowlab. MENU SYSTEM
This version of WindowLab supports the Debian Menu subsystem. To update the menus, it suffices to execute the command update-menus. If executed as root, the system setting in /etc/X11/windowlab/windowlab.menurc will be affected, whereas execution by any underprivileged user only effects the private resource file in ~/.windowlab/windowlab.menurc. The following files tune the compilation of auto-generated menus: /etc/X11/windowlab/debian_config, ~/.windowlab/debian_config Debian-specific system configuration and user-specific overrides. /etc/X11/windowlab/common_menu A common tail part, that currently encompasses About, Reload and Quit. All users get these entries included in their menu. ~/.windowlab/user_menu Menu entries hand-picked by the individual user. SIGNALS
When WindowLab receives a SIGHUP signal, it will reload all relevant menu resource files, thus updating the menu bar. SEE ALSO
X(7), The Inter-Client Communication Conventions Manual (from the X11R6 documentation). AUTHOR
Nick Gravgaard (me at nickgravgaard.com) Nick Gravgaard 1.40 WINDOWLAB(1x)
All times are GMT -4. The time now is 09:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy