LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 04-08-2011, 05:18 PM   #1
action_owl
Member
 
Registered: Jan 2009
Location: 127.0.0.1
Distribution: Fedora, CentOS, NetBSD
Posts: 115

Rep: Reputation: 17
Vim command to cut the current line and append to the clipboard


Is there a vim command or sequence of commands that will append the current line into the clipboard?

Given the example below:

4
5
3
1
2

Lets say I wanted to
cut 3, 4, 5 (in that order) then paste them below 2 so that the numbers are in order?

Just curious, I've really been getting into vim lately.
 
Old 04-08-2011, 05:58 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Code:
:sort
in commandmode is the most simple solution.

Markus

Last edited by markush; 04-08-2011 at 06:00 PM.
 
  


Reply



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
Vim: bringing the cursor to 1st char in current line (command mode). stf92 Linux - Newbie 16 12-05-2010 07:52 AM
Clear clipboard via command line? Wynd Linux - General 4 02-03-2010 11:26 PM
LXer: xclip - Copy contents from command line to X clipboard in openSUSE LXer Syndicated Linux News 0 04-14-2009 02:11 PM
How to redirect the command line output to the clipboard kejing Linux - Software 1 02-03-2009 12:21 AM
LXer: Language translation from the command line or clipboard LXer Syndicated Linux News 0 04-04-2008 02:50 PM

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

All times are GMT -5. The time now is 04:03 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
Open Source Consulting | Domain Registration