Sponsored Content
Full Discussion: vim font highlight
Top Forums UNIX for Dummies Questions & Answers vim font highlight Post 61939 by HOUSCOUS on Thursday 10th of February 2005 01:42:16 AM
Old 02-10-2005
vim font highlight

Hi, there. I am using vim to edit some files I am working on from terminal. I occasionally pressed some keys by mistake, and the word just got highlight. Afterward whenever I type in that word, it will be highlight automatically. It is annoying. Could someone tell me how to turn this off?

BTW, using command "syntax off" doesn't solve this problem.

sincerely,

HOUSCOUS
 

5 More Discussions You Might Find Interesting

1. Solaris

Syntax Highlight editor

Is there is any syntax highlithing editor available for C and C++ programming language in Solaris. (7 Replies)
Discussion started by: arun.viswanath
7 Replies

2. UNIX for Dummies Questions & Answers

Font size in VIM

Hello, I use VIM version 7.1.56 on Ubuntu OS. Can you tell me pls how can I change the font-size in VIM? Thanks, Iuli (1 Reply)
Discussion started by: ketchera
1 Replies

3. HP-UX

How to highlight syntax in Hp-UX vi editor?

Hi , How do i highlight syntax in vi editor on HP-UX. any suggestion highly appreciated. -Ashok (1 Reply)
Discussion started by: ashokd001
1 Replies

4. Solaris

Very Importan - Vim Settings - Error while opening a File using vim

I downloaded vim.7.2 and compiled the vim source . Added the vim binary path to PATH (Because iam not the root of the box) when i load the file using vim it throws me an error Error detected while processing /home2/e3003091/.vimrc: line 2: E185: Cannot find color scheme darkblue line... (0 Replies)
Discussion started by: girija
0 Replies

5. UNIX for Dummies Questions & Answers

Highlight text in shell o/p

Hi All, Can anyone tell me how to highlight a particular text in shell output or formattting a text in shell ? (1 Reply)
Discussion started by: prasanna2166
1 Replies
curs_attr_get(3)					     Library Functions Manual						  curs_attr_get(3)

NAME
curs_attr_get, attr_get, wattr_get, attr_off, wattr_off, attr_on, wattr_on, attr_set, wattr_set, color_set, wcolor_set - Functions that control Curses window attributes SYNOPSIS
#include <curses.h> int attr_get( attr_t *attrs, short *color_pair, void *opts ); int wattr_get( WINDOW *win, attr_t *attrs, short *color_pair, void *opts ); int attr_off( attr_t attrs, void *opts ); int wattr_off( WINDOW *win, attr_t attrs, void *opts ); int attr_on( attr_t attrs, void *opts ); int wattr_on( WINDOW *win, attr_t attrs, void *opts ); int attr_set( attr_t attrs, short color_pair, void *opts ); int wattr_set( WINDOW *win, attr_t attrs, short color_pair, void *opts ); int color_set( short color_pair, void *opts ); int wcolor_set( WINDOW *win, short color_pair, void *opts ); LIBRARY
Curses Library (libcurses) STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: attr_get, wattr_get, attr_off, wattr_off, attr_on, wattr_on, attr_set, wattr_set: XCURSES4.2 Refer to the standards(5) reference page for more information about industry standards and associated tags. DESCRIPTION
These functions manipulate the attributes and color of the window rendition of the current or specified window. The current attributes of a window are applied to all characters that are written into the window. These attributes become property of the character and move with the character through any scrolling and insert/delete line/character operations. To the extent possible on the particular terminal, attributes are displayed as the graphic rendition of characters put on the screen. The attr_get and wattr_get functions obtain the window rendition of the current or specified window. If attrs or color_pair is a null pointer, the functions do not obtain corresponding rendition information; this condition is not an error. The attr_off and wattr_off functions turn off the named attributes, without affecting other attributes, for the current or specified win- dow. The attr_on and wattr_on functions turn on the named attributes, without affecting other attributes, for the current or specified window. The attr_set and wattr_set functions set the window rendition of the current or specified window in conjunction with the window background rendition. The color_set and wcolor_set functions set the window color of the current or specified window to color_pair. The opts argument in all the preceding functions is reserved for future use. Currently, applications must provide a null pointer for the opts argument. Attributes Applications can pass the following video attributes, which are defined in <curses.h>, to these routines in place of attrs to turn on or off the corresponding attribute. More than one attribute can be passed by using an inclusive OR operation. WA_ALTCHARSET Alternate character set WA_BLINK Blinking WA_BOLD Extra bright or bold WA_DIM Half bright WA_HORIZONTAL Horizontal highlight WA_INVIS Invisible WA_LEFT Left highlight WA_LOW Low highlight WA_PROTECT Protected WA_REVERSE Reverse video WA_RIGHT Right highlight WA_STANDOUT Best highlighting mode of the terminal. WA_TOP Top highlight WA_UNDERLINE Underlining WA_VERTICAL Vertical highlight NOTES
The header file <curses.h> automatically includes the header file <stdio.h>. Note that attr_get, attr_off, attr_on, attr_set, and color_set may be macros. RETURN VALUES
These routines always return OK. SEE ALSO
Functions: curses(3), curs_addch(3), curs_add_wch(3), curs_addwstr(3), curs_printw(3), curs_color(3) Others: standards(5) curs_attr_get(3)
All times are GMT -4. The time now is 11:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy