LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-17-2006, 12:14 PM   #1
soldan
Member
 
Registered: Feb 2006
Distribution: slackware 11
Posts: 110

Rep: Reputation: 15
cant edit text files properly in vi and fluxbox


hi, if i open a text file in vi (and xterm) while in fluxbox, i will be able to add text to the file, but not delete any text in the file. when i try to delete text, it kicks me back into vi's commandmode. by the way, i can edit text files in vi no problem (add and delete text) if i leave fluxbox and X, and return to the black console (not sure of the correct name of this screen).
i know that i was able to fully edit text files with 'the beaver' text editior from within FB on Vector linux, but i would prefer to use vi. is there anyway of correcting this problem so i can edit files with vi and fluxbox?
 
Old 11-17-2006, 01:29 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
How are you trying to delete from within vi?

Cheers,
Tink
 
Old 11-17-2006, 04:25 PM   #3
soldan
Member
 
Registered: Feb 2006
Distribution: slackware 11
Posts: 110

Original Poster
Rep: Reputation: 15
Tinkster, im using the 'delete' key (which is one of six in the cluster on the keyboard just to the right of the 'enter' key, along with 'home' 'pageup' 'pagedown' etc. this 'delete' key works in vi when in the black console (not in X or fluxbox).
 
Old 11-17-2006, 06:52 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
In that case it's a key-mapping problem in xterm, I'd tend to say.
Why don't you use vi's key-bindings instead, which are independent
of the keyboard and/or terminal-emulation you're using?

x to delete a single letter, dw for a word, dd for a line...

Of course, you could read up on xterms man-page and adjust your
~/.Xresources


Cheers,
Tink
 
Old 11-17-2006, 06:55 PM   #5
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
When you press backspace in the terminal, does it work, or do you get a ^H appear (or something similar, maybe ^?)?
 
Old 11-18-2006, 12:02 PM   #6
soldan
Member
 
Registered: Feb 2006
Distribution: slackware 11
Posts: 110

Original Poster
Rep: Reputation: 15
thanks Tinkster makes sense to use vi's key bindings, seems easier that way too, instead of having to delete each charactor to delete a whole line.
matthewg42, when i press backspace in a termnal the cursor moves to the previous charactor, but doesnt delete it, this also happens in the black console (?the black screen with the logon/pass). i have seen '^?' in the past when ive tried to delete text, but i cant seem to reproduce it now.
 
  


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
Convert DOS text files to UNIX text files ta0kira Linux - Software 7 03-15-2011 11:42 AM
Edit fluxbox menu Swift&Smart Slackware 11 09-13-2009 12:12 PM
Fluxbox windows do not maximize properly moo-cow Linux - Desktop 3 11-08-2006 06:38 AM
Edit Fluxbox menu android6011 Linux - Software 1 10-16-2006 08:31 PM
How do you edit text files in termnial? everydayparadis Linux - Newbie 10 07-08-2004 01:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:20 AM.

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