NetAdminTools.com
 
SignalQ Sites:
L1G3R Information Systems - Coprolite - SpotBridge - NAW
RoboCoop - AreWeDown - SolarPower - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - FixRambler
Solar Energy - Energy Efficiency - Solar Panels
Home Energy Savings
Categories:
GNU/Linux | Homebrew designs | Perl | Ruby | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | ERP | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS


Categories:
·GNU/Linux
·Homebrew designs
·Perl
·Ruby
·Administration
·Backup/Recovery
·Bugs/Fixes
·Certification
·Database
·Email
·File/Print
·Hardware
·Information Grab Bag
·Interoperability
·GNU/Linux ABCs
·Monitoring
·Name Resolution
·Network Services
·Networking
·Remote Control
·Security
·Desktop
·Web
·BSD
·Solaris
·GIAGD
·ERP
·REALbasic
·All Categories


Fix Pesky Newlines When Copying/Pasting In Vim
Topic:Desktop   Date: 2003-03-18
Printer Friendly: Print   

spacerspacer
<<  <   >  >>

Subject

In this article, I fixed my backspace, and it has worked since on every system I've logged on to. I had one lingering problem though. When I select text in Vim by highlighting with the first mouse button clicked, when I paste the selection into another terminal, I get extra newlines. This is really nasty, because I'm often cutting and pasting code, URLs, and HTML that I view in different Eterm sessions, often with Vim. Now it works fine with GVim, but there is something about using Vim inside of Eterm that messes up the newlines. It turns out that the trick is to fool Vim into thinking that your terminal is xterm. In your theme.cfg file (for Eterm) add in the misc section term_name xterm:

begin misc
term_name xterm 
end misc

From then on, Vim will adjust whatever it needs to adjust when running inside a terminal so that the newlines don't get added. I imagine that this will work for other terminal emulators as well.


People:
Places:
Things:
Times:





Please read our Terms of Use and our Privacy Policy
Microsoft, Windows, Windows XP, Windows 2003, Windows 2000, and NT are either trademarks or registered trademarks of Microsoft Corporation. NetAdminTools.com is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2011 NetAdminTools.com