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 01-02-2004, 12:40 PM   #1
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
slackware problem with aterm and vi


when i try to use vi and aterm i get all sorts of broken output. the document never opens correctly, only the first lines are displayed and it's halfway down the screen. i've been researching trying to see if anyone else has had this problem, and it seems not. any ideas on where to start? vi works fine in xterm and rxvterm.
 
Old 01-02-2004, 12:48 PM   #2
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
what about vim?
 
Old 01-02-2004, 01:09 PM   #3
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Original Poster
Rep: Reputation: 30
yes vim works perfectly! now i just need to figure out how to get my syntax highlighting back. thanks!
 
Old 01-02-2004, 01:16 PM   #4
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
this might work as a template:
http://mail.linux.ie/pipermail/cork/...il/000961.html

otherwise, there are plenty of sites on google about it.
 
Old 01-02-2004, 03:57 PM   #5
zer0python
Member
 
Registered: Sep 2003
Posts: 104

Rep: Reputation: 20
here is my ~/.vimrc file that works under Slackware 9.1 with vim/aterm, hope it helps..

Code:
if v:progname =~? "evim"
  finish
endif

set nocompatible
set backspace=indent,eol,start
set autoindent
set nobackup
set history=50
set ruler
set showcmd
set incsearch

map Q gq

if &t_Co > 2 || has("gui_running")
  syntax on
  set hlsearch
endif

if has("autocmd")
  filetype plugin indent on
  autocmd FileType text setlocal textwidth=78
  autocmd BufReadPost *
    \ if line("'\"") > 0 && line("'\"") <= line("$") |
    \   exe "normal g`\"" |
    \ endif
endif
 
Old 01-02-2004, 05:29 PM   #6
Kovacs
Member
 
Registered: Jul 2003
Distribution: FreeBSD 8.2 RELEASE
Posts: 607

Rep: Reputation: 32
I have had the same problem. I set all my aterm properties in ~/.Xdefaults (with settings from ikaro's fluxmod site). One line sets the geometry of the window:

aterm*geometry: 80x35

ie. the aterm is meant to open 80 columns wide by 35 lines deep. However when using fluxbox 9.6, if I changed the size of the aterm window and then set it to remember the window size, I would get the broken output in vi that you mentioned. The window was opening at whatever dimensions I had set it to remember to open at, yet aterm still thought it was meant to run at 80x35, so the output was garbled.

The solution in my case was to delete the remembered settings for the aterm window, and let aterm start with whatever dimensions were set in .Xdefaults.
 
Old 01-02-2004, 06:41 PM   #7
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Original Poster
Rep: Reputation: 30
thanks for the help! i was going to have a look at 'info vi' again but ya saved me the trip
my current problem is figuring out why 'Ctrl-l' no longer clears my aterm screen. 'Ctrl-l' works fine on all my other terminals
 
  


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
configure problem with aterm cxtech Linux - Software 2 06-09-2004 03:17 AM
Aterm and Slackware kein Slackware 3 05-23-2004 01:37 AM
Backspace problem in Aterm - ^? invisus Linux - Software 0 02-19-2004 01:28 PM
slackware problem with aterm && mouse wheel infamous41md Linux - Newbie 3 01-01-2004 08:04 PM
aterm problem ichbinesderelch Linux - General 2 08-31-2003 02:03 PM

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

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