DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 14th October 2018
fvgit's Avatar
fvgit fvgit is offline
Spikes in tights
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("U2hlcndvb2QgRm9yZXN0")'
Posts: 314
Default vi (=nvi from base) prob.: a character declared printable a day keeps the cursor away

Default behaviour, vi testfile:
Code:
RRP: \xc2\xa329.99. You Save: \xc2\xa316.40
So I add the following to ~/.exrc
Code:
set print="¡¢£¤¥¦§¨©ª«¬¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
Let's try again, vi testfile:
Code:
RRP: £29.99. You Save: £16.40
Now we're talking...

I can also enter German umlaute in vi just by entering the ä-Key on my keyboard, for instance.

But there's a catch! For each character contained in the 'set print' statement (2nd 'Code:' block above) that I type into vi in INSERT mode the cursor moves one space to the right, away from its usual position. After typing sth. like this:
Code:
These are German umlaute:_
I end up with sth. like this:
Code:
These are German umlaute: äöü   _
(The underscore '_' indicates the cursor position after typing 'ä', 'ö', and 'ü' respectively.)


I'm not ruling out any misconfiguration or stupid mistake on my side. So my question to the pros here is, can anything be done about this annoying behaviour?
Reply With Quote
 


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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
special character problem kerasi OpenBSD General 3 31st December 2015 03:32 PM
Tuesday declared 'The Day we Fight Back' against NSA et al J65nko News 4 13th February 2014 05:51 PM
Cursor skipping/freezing when rendering pages in Chromium GullibleJones OpenBSD Packages and Ports 5 9th February 2012 11:28 PM
Tomcat 7: Apache Servlet Container declared stable J65nko News 0 15th January 2011 01:49 AM
xterm + bash: Make <DEL> delete char under cursor taylor_venable OpenBSD General 7 13th December 2008 11:53 PM


All times are GMT. The time now is 01:18 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick