From owner-freebsd-questions@FreeBSD.ORG Fri Aug 29 08:20:50 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5E0AC813 for ; Fri, 29 Aug 2014 08:20:50 +0000 (UTC) Received: from mail-we0-x236.google.com (mail-we0-x236.google.com [IPv6:2a00:1450:400c:c03::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EC7E6177D for ; Fri, 29 Aug 2014 08:20:49 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id w62so1849927wes.13 for ; Fri, 29 Aug 2014 01:20:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=0nzAQVoDsRDTh1c6K4sT+R1agVA1fisMlioouLxciyw=; b=Dt4u6K+FJGegSE+qRA/XQsq5K45ZlK+vocAjiU46HqyUStoBcjpKS/89VxuOiJF2+Z 3U9LBX3Vpw2Uk+WK/9EX7v5PRZtdDzqJTlS0Ds6LkhsE85o1UewIphnrRkV4HJ3RFoI+ rTgz9n7Bqnvg1oLNNU7syWrbQ4nb3SM4EagJLgQPyfaD/e8bpCQIBK3SKxyVtvE1adFW kYz43d5hi0RjqaoIpq5Sckb5vs+KrvRLcIfJbDWqPvsSfaGQDVnqk9jzcKm7aOHST1EM Iw122aSiZMVFIhPHrVeM7Zlo1FTR4GKrlveFB3I918Px7QS0ljju4tGY+l/LarnX8HOj W7oQ== X-Received: by 10.194.60.240 with SMTP id k16mr893471wjr.109.1409300447770; Fri, 29 Aug 2014 01:20:47 -0700 (PDT) Received: from kontrol.kode5.net (host81-157-206-146.range81-157.btcentralplus.com. [81.157.206.146]) by mx.google.com with ESMTPSA id bg10sm1007075wjc.47.2014.08.29.01.20.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Aug 2014 01:20:47 -0700 (PDT) Message-ID: <540037DE.4030404@gmail.com> Date: Fri, 29 Aug 2014 09:20:46 +0100 From: Jamie Griffin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: FreeBSD Questions Subject: Moving Text In vi(1) To Another File Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Aug 2014 08:20:50 -0000 What is the best way to copy large sections of text in a file and copy it to another file, possibly a new file or not. Is vi even the best utility to do that? I have the source file open; I yank the text region then, do I open a new file/buffer first or is there a command to 'redirect' the data to?