Sponsored Content
Operating Systems AIX [Vim] Question about syntax highlighting Post 302732819 by Fundix on Monday 19th of November 2012 08:16:13 AM
Old 11-19-2012
[Solved] VIm Question about syntax highlighting

Hi all,

my sysadmin installed Vim packages (vim-enhanced-6.3-1 & vim-common-6.3-1) on an Aix system (7.1.0.0).

I log in using Putty (vs 0.54) and got an annoying underline issue. All strings and var names are underlined as you can see on the attached file [Vim] Question about syntax highlighting-vimhlpng

Is it possible to get rid of that functionnality ?

Thank You
Please find hereafter my vimrc configuration file :
Code:
set nocompatible        " Use Vim defaults (much better!)
set backspace=2         " allow backspacing over everything in insert mode
                        " Now we set some defaults for the editor
set autoindent          " always set autoindenting on
set textwidth=72        " Don't wrap words by default
set nobackup            " Don't keep a backup file
set viminfo='20,\"50    " read/write a .viminfo file, don't store more than
                        " 50 lines of registers
set history=50          " keep 50 lines of command line history
set ruler               " show the cursor position all the time

" Vim5 comes with syntaxhighlighting. If you want to enable syntaxhightlighting
" by default uncomment the next three lines.
" Patrick ... 3 lignes suivantes décommentées
if has("syntax")
  syntax on             " Default to no syntax highlightning
  hi Comment ctermfg=DarkMagenta
endif

set showcmd             " Show (partial) command in status line.
set showmatch           " Show matching brackets.
set ignorecase          " Do case insensitive matching
set noincsearch         " Incremental search
set autowrite           " Automatically save before commands like :next and :makeset nohlsearch
set nohlsearch
" set mouse=a
set shiftwidth=2


Last edited by Fundix; 11-23-2012 at 10:44 AM.. Reason: Solved
 

8 More Discussions You Might Find Interesting

1. OS X (Apple)

vim and syntax max os

Hi how to color syntax in terminal in OS X ? I wrote in .vimrc: if &t_Co > 2 || has("gui_running") syntax on set hlsearch endif syntax on and no results. Best regards (1 Reply)
Discussion started by: kezzol
1 Replies

2. UNIX for Dummies Questions & Answers

Emacs color syntax highlighting

So... i cant get it to work. I had already posted this but it got deleted. Details: Im running SSH shell on Windows XP, connecting to a server whose term is vt100 (someone asked me that last time) Im trying to get the syntax highlighting in cc mode to work in color, but its black and... (0 Replies)
Discussion started by: viejid
0 Replies

3. UNIX for Dummies Questions & Answers

Syntax coloring for .pc files in VIM editor

Hi, i am using VIM editor through Putty. By the option of Syntax on in .vimrc file i am able to see syntax colors in .c and .cpp files but not in the files with .pc extension. How can this be done? :confused: (2 Replies)
Discussion started by: RuchK
2 Replies

4. Programming

Vim highlighting annoyance

I was using vim about an hour ago doing abit of python (i only just started using vim). And I think i typed something wrong, and all of a sudden the letter i is always highlighted. Turning syntax off and on didn't work. and i couldent find the solution online. Thanks in advanced. (1 Reply)
Discussion started by: vimhelp
1 Replies

5. UNIX and Linux Applications

gedit/gtksourceview: Updating types for syntax highlighting?

I wrote a new .lang file for syntax highlighting a language I use frequently. It works fine, except that it doesn't glob onto the files automatically. Is there a utility I need to run to update a gtksourceview database? Here's the relevant portion of the code. <language id="pari"... (0 Replies)
Discussion started by: CRGreathouse
0 Replies

6. Shell Programming and Scripting

How to stop Vim from highlighting lines 73+

I am slowly developing my .vimrc and would like to know how to turn off the highlighting (black text on orange background) which starts at line 73. This doesn't seem to be controlled by any selected/customized colorscheme. I do CFD, and some older codes I use are written in F77, for which this... (2 Replies)
Discussion started by: drbones
2 Replies

7. UNIX for Dummies Questions & Answers

Reapplying syntax highlighting in vim

I had a bash script (ma_report.sh) that I was editing when my VPN connection died. So, when I reconnected, I recovered my changes and reopened the file. Everything looks fine except that there is no longer any syntax highlighting. Using ':syntax on' does not work. Other bash scripts in vim do... (1 Reply)
Discussion started by: treesloth
1 Replies

8. What is on Your Mind?

New Code Tags (Syntax Highlighting)

Hey, Just added a new UserCP option so you can change the code tags to look like the code tags in this example (turn this on and off): Note: I set the default to "SyntaxHighlighting" for debugging purposes. We can change the default back to the original code tags later. ... (36 Replies)
Discussion started by: Neo
36 Replies
VIMDIFF(1)                                                    General Commands Manual                                                   VIMDIFF(1)

NAME
vimdiff - edit two, three or four versions of a file with Vim and show differences SYNOPSIS
vimdiff [options] file1 file2 [file3 [file4]] gvimdiff DESCRIPTION
Vimdiff starts Vim on two (or three or four) files. Each file gets its own window. The differences between the files are highlighted. This is a nice way to inspect changes and to move changes from one version to another version of the same file. See vim(1) for details about Vim itself. When started as gvimdiff the GUI will be started, if available. In each window the 'diff' option will be set, which causes the differences to be highlighted. The 'wrap' and 'scrollbind' options are set to make the text look good. The 'foldmethod' option is set to "diff", which puts ranges of lines without changes in a fold. 'foldcolumn' is set to two to make it easy to spot the folds and open or close them. OPTIONS
Vertical splits are used to align the lines, as if the "-O" argument was used. To use horizontal splits instead, use the "-o" argument. For all other arguments see vim(1). SEE ALSO
vim(1) AUTHOR
Most of Vim was made by Bram Moolenaar, with a lot of help from others. See ":help credits" in Vim. 2001 March 30 VIMDIFF(1)
All times are GMT -4. The time now is 09:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy