LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-19-2011, 03:05 PM   #16
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723

Quote:
Originally Posted by stf92 View Post
OK. But why do you not tell me how you use. The only way I know of is with something like cat. First I type 'cat foo.txt' <Enter>. I now select, paste and ctrl-D. If instead I select, and run vim, when I paste vim simply puts me in Insert mode.
You need to be in insert mode to paste text into vi, since it otherwise interprets the text as commands. Also, why Ctrl+D?
 
Old 09-19-2011, 04:30 PM   #17
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Quote:
Originally Posted by slac-in-the-box View Post
Coders frequently turn their nose up at a mouse, as if it were some smelly newbie tool, and as if they could do the same tasks faster without the mouse...

So how, in console, would they move blocks of text within the same file, or between separate files, more quickly than if they were using a mouse: with the "kill" and "yank" features of emacs, or course! It turns out, that if you can teach your fingers to memorize zillions of emacs keybard shortcuts, then you won't want a mouse.
It really depends on the environment along with the task at hand. Not all coders look at the mouse in the since you are speaking. But enhance their operation by integrating work with the mouse with keys or options. Really depends on personal taste and tasks at hand.

Some use emacs' while others still slumber along with 'vi/vim'. You move marked text to the the buffer/file then insert where you wish. Or just insert a file at a specific point within the body. Just learn the commands of the editor of choice. 'emacs' is extensible thus allowing a versatile editor.

I use 'vi/vim' more now since it will be available on most Gnu/Linux. Be sure to look at the initial screen for vim for useful information. While in 'vim' try command mode(esc) & type ':help' (without tics) to get started. Or type ':help subject' (to get help on a specific subject). Neat when you are in a split window to get the options/strokes you do not use all the time.

If you happen to need a IDE then a mouse is doable and sometimes easier in combination with option(s) command keys while in the editor. So it means you can really move around freely within but at the restriction(s) of the IDE. If you use KDE on your Slack machine you have KDevelop else;
Quote:
From https://duckduckgo.com/?t=i&k1=-1
Welcome to KDevelop.org | KDevelop KDevelop is a free, open source IDE (Integrated Development Environment) for MS Windows, Mac OS X, Linux, Solaris and FreeBSD. It is a feature-full, plugin extensible IDE ...
kdevelop.org More results
So as a user you can use the system in a way that fits you. Please do not class everyone into one body/style/class.
HTH!
 
Old 09-19-2011, 09:35 PM   #18
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by MTK358 View Post
You need to be in insert mode to paste text into vi, since it otherwise interprets the text as commands. Also, why Ctrl+D?
Using only one console? I did this:
(a) Ran vim in tty2 and set insert mode.
(b) In tty1 I selected.
(c) In tty2 I pasted.
(d) No use.
 
Old 09-20-2011, 01:41 AM   #19
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
@stf92: Instead of two virtual consoles, use one and a terminal multiplexer like GNU/Screen or tmux to switch between console apps
 
Old 09-20-2011, 01:49 AM   #20
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Actually testing now I see that it does work for me between virtual consoles. For some reason I thought it didn't. Ah well I'd still prefer use screen or better yet tmux. It is handy to split the viewable area into parts that you can view at the same time, without having to constantly switch between virtual consoles.

Last edited by ruario; 09-20-2011 at 01:49 AM. Reason: spelling
 
Old 09-20-2011, 05:28 AM   #21
phi11ip
Member
 
Registered: Jul 2007
Location: Nottingham, UK
Distribution: Slackware64-current
Posts: 93

Rep: Reputation: 23
When pasting in vim you have to press the 'Shift' key as well. Just tried this with two konsoles and it worked, but when I tried in in an actual console mode it didn't. Worked okay with elvis. Maybe an issue with vim. I'm sure it worked before.
 
1 members found this post helpful.
Old 09-20-2011, 08:10 AM   #22
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
With the addition of the Shift key trick it works. But same as you: only with vi and with two VTs.

In fact, my primary motivation is the famous quotations making there entrance once one has logged in. Some of them are worth saving. But this thing usefulness is ample.

Last edited by stf92; 09-20-2011 at 08:18 AM.
 
Old 09-20-2011, 09:20 AM   #23
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Just tried it in vim with no issues between three terminals. Unsure what is going on for the few that are experiencing issues.
 
Old 09-20-2011, 12:24 PM   #24
nick_th_fury
Member
 
Registered: Jun 2003
Location: Texas
Distribution: Slackware, NetBSD
Posts: 151

Rep: Reputation: 23
I just hit shift-insert to paste. That works in vim or in the console. Works in any gui app as well.
 
Old 09-21-2011, 12:30 AM   #25
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
There's an old saying in Spanish: Segundas partes nunca fueron buenas (Second parts never were good).
 
Old 09-21-2011, 04:32 AM   #26
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
and how does that relate to this thread?
 
Old 09-21-2011, 05:12 AM   #27
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
What program do you know that is the precursor to vim?
 
Old 09-21-2011, 06:13 AM   #28
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by stf92 View Post
What program do you know that is the precursor to vim?
vi. And?
 
Old 09-21-2011, 07:26 AM   #29
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Quote:
Originally Posted by stf92 View Post
What program do you know that is the precursor to vim?
May I again suggest that you learn to use the documentation available to a user. 'man vim';
Quote:
NAME
vim - Vi IMproved, a programmers text editor
 
Old 09-21-2011, 11:57 AM   #30
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by MTK358 View Post
vi. And?
I did not think I had to be so explicit. First part= vi. Second part= vim. And you see a user and me are having problems pasting with vim. But no problem at all with vi. Second part, in the saying, means that that comes after, a sequel.

No doubt vim has a workaround for the case of this user and of mine. Or something went wrong in the installation. But the fact is I had no problem with vi.

You can see it at the cinematographic industry as well, and literature of course. If a movie has the number 2 in its title, you bet its a bad one. Of course there are exceptions.
 
  


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
[SOLVED] copy and paste text among text documents in Linux ethereal1m Linux - Newbie 5 03-28-2010 03:14 AM
Which light text editor can copy text from file and paste in browser? davidas Linux - Software 9 03-06-2006 11:28 AM
console copy , paste and screenshots geletine Linux - Newbie 3 02-09-2006 01:50 PM
How can I copy a bunch of text and then paste it, all in a framebuffer console? Shagrath239 Linux - Newbie 1 02-06-2006 11:32 PM
paste text from a virtual console to X? Rhatlinux Slackware 1 10-12-2004 08:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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