Unix terminal display related issue


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Unix terminal display related issue
# 1  
Old 07-20-2012
Unix terminal display related issue

Want few input related to unix environment and terminal settings:

1. Am trying to find a way to keep the unix terminal display intact even after opening and closing a vi/less file. Currently if I open a vim file in the unix terminal and then close the file,it displays the contents of vim file on the unix terminal display, whereas I want to see the previous commands that were executed on the display (without doing the history)
2. While trying to open a file in vim, with the syntax enabled, it still displays the file in black and while only instead of in color format as per the syntax of the file, example vim/perl etc have keywords which gets displayed in different colors, if the file is opened in gvim the file opens in a different terminal with all the colors, but the same effect is not seen when the file is opened in the vim prompt.

Last edited by DukeNuke2; 07-20-2012 at 08:23 AM..
# 2  
Old 07-20-2012
It might help if you could tell us which machine, OS, terminal, etc. you are sitting at.

bakunin
# 3  
Old 07-23-2012
Its:

SunOS cx86-ban-02 5.10 Generic_141445-09 i86pc i386 i86pc
# 4  
Old 07-24-2012
check the TERM variable? set it to TERM=xterm and try if vim is highlighting syntax

I syntax highlighting issue setting proper terminal fixes with xterm + bash shell.
# 5  
Old 07-25-2012
Colour management is somewhat complicated in vim. I found out a few options in my quest to accomplish the opposite you want to achieve: make vim as monochrome as possible (i am used to vi and would like to have vim look as bare-bone as vi).

The following option can bei entered in command mode at the ":" or put into ~/.exrc to have a lasting effect.

Code:
set hlsearch
set nohlsearch

This switches on/off the highlighting of search results.

Code:
syntax on
syntax off

Switches on/off syntax highlighting. Which colours are used to highlight is not configured with this, just the feature as a whole is switched on/off. The colours used are stored in "colour-schemes", which can be selected by the

Code:
colorscheme <name>

command. Switch off all colorschemes by:

Code:
set t_Co=0

I hope this helps.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help in an issue related to mailx

Hello, I have a file temp.txt with the below contents : Sep 9 03:04:51 adcsdp01 MAPDR2_00: Unable to open trace file adpstartarv.log. (Error 110 Resource temporarily unavailable) Sep 9 03:05:35 adcsdp01 MAPDR2_00: SAP Service ADPMR2_00 successfully started. Sep 9 03:04:51 adcsdp01... (7 Replies)
Discussion started by: rahul2662
7 Replies

2. Shell Programming and Scripting

need downloading related help...but its not related to unix

Hi All, I am trying to dowmload the zip file "zkManageCustomers.zip " but i dont have access. Can anyone help me to download this file See the below link- http://www.ibm.com/developerworks/opensource/library/wa-aj-open/index.html?ca=drs- Please help me as early as... (1 Reply)
Discussion started by: aish11
1 Replies

3. AIX

New to Unix - display issue

new to the forums hope is this the right area to post this, I have 4 IBM servers (inherited) and all of them are connecting through a KVM. Probelm is all the servers are fuzzy on the monitor. I have tried switching multiple monitors and all get the same effect no matter if they are wide screen or... (4 Replies)
Discussion started by: Setnaro
4 Replies

4. Shell Programming and Scripting

Need assistance with a file issue and a terminal issue

Hello everyone, I'm in need of some assistance. I'm currently enrolled in an introductory UNIX shell programming course and, well halfway through the semester, we are receiving our first actual assignment. I've somewhat realized now that I've fallen behind, and I'm working to get caught up, but for... (1 Reply)
Discussion started by: MrMagoo22
1 Replies

5. Shell Programming and Scripting

Date related issue

Hi, I have TDATE=$(date '+%b %d') That stores "Sep 01" in the TDATE. How I can store "Sep 1"? Thanks in advance (3 Replies)
Discussion started by: dipeshvshah
3 Replies

6. Programming

Issue Related to Proxy Server

Hi All, I am establishing the proxy server to communicate the date between devices using serial port but after serial port connection,it should start the Proxy Server and still run till the communication is happening...but server became started but it became halted due to error - Please... (1 Reply)
Discussion started by: smartgupta
1 Replies

7. HP-UX

Facing an issue related to cronjob

Dear All, I am facing an issue related to cronjob and explained below is the case study: 1. I have a java class named "DmCheckRenditionQueue.java" and placed under "/cpc/documentum/product/5.2.5/tomcat/webapps/rendition" 2. When I am using the command "/usr/openv/java/jre/bin/java -cp... (1 Reply)
Discussion started by: parindam
1 Replies

8. Shell Programming and Scripting

file related issue

Hi all, Anybody knows how to write a script to open a file and store the weekday(mon-sun) on first line and current datetime on the second line of the file. If file doesn't exist, create a new one and store the weekday and current datetime. If it already exists, open it and get both... (2 Replies)
Discussion started by: k_oops9
2 Replies

9. UNIX for Dummies Questions & Answers

terminal display

I want to display a system warning message at the prompt of every live terminal on a sun solaris 8 machine using CDE. I know this can be done on a console, but what about dtterm and xterm regular windows? Does anyone know how this is done? What about a single terminal? Clear skies,... (2 Replies)
Discussion started by: seismic_willy
2 Replies

10. UNIX for Advanced & Expert Users

connecting to unix through hyper terminal - as a dumb terminal

I just changed from windows NT to XP and I am no longer able to connect to my unix system. I used to use hyper terminal -- which acts as dumb terminal to my main frame unix system. I think one of the options used to be "direct to comX". This option isn't listed now. I use a serial port and the... (2 Replies)
Discussion started by: michelle
2 Replies
Login or Register to Ask a Question