Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.