10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am trying to put the below in a file .vimrc and sourced the file, however when i vi any file it is not showing/reflecting color scheme i wanted, Is there any way i can make this work? we use common application account to log in and by default it is CSH and later we change the shell to KSH. I want... (3 Replies)
Discussion started by: Ariean
3 Replies
2. UNIX for Advanced & Expert Users
Can someone please tell me what this does?
:f word
I thought that was the way to save files with a different name but after a quick google search I saw it was like this.
:w filename (4 Replies)
Discussion started by: cokedude
4 Replies
3. UNIX for Dummies Questions & Answers
I am not sure if this is the right place to post this, but I just found these via a posting at lifehacker.com and wanted to let folks know. If you are trying to learn vim/vi, one of these fun tutorials may be of some help.
Interactive Vim tutorial:
Interactive Vim tutorial
VIM adventure... (3 Replies)
Discussion started by: gary_w
3 Replies
4. SuSE
SUSE Linux Enterprise Server v11
Hi guys,
I don't have root access. So, I can't change the default colorscheme for my vim editor.
I do have an environment variable for my id that says:
EDITOR=/usr/bin/vi
export EDITOR
I tried adding /usr/share/vim/vim72/colors/desert.vim to it.... (2 Replies)
Discussion started by: dexter126
2 Replies
5. Solaris
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
6. UNIX for Advanced & Expert Users
Does anyone know the fast way to go to tab/2 distance in vim.
I mean set four spaces. (1 Reply)
Discussion started by: mirusnet
1 Replies
7. UNIX and Linux Applications
How do I use compilers and syntax highlighting in (g)Vim?
Specifically, I need a Common Lisp compiler and a C++ compiler.
Thanks in advance!
(Note: Disregard my other topic.) (1 Reply)
Discussion started by: led3234
1 Replies
8. UNIX for Advanced & Expert Users
Hello,
what is the maximum size of a file that we can open using vim. (3 Replies)
Discussion started by: nagalenoj
3 Replies
9. UNIX for Dummies Questions & Answers
I use vim for writing code. I was using nano but found that vim is a much advanced editor. I am trying to achieve something like this:
When trying a loop or a function, I generally type:
function name() {}
Now when I take my cursor one position to the left and press the return key, it give... (4 Replies)
Discussion started by: Legend986
4 Replies
10. Solaris
I want to install VIM 7.0 from sunfreeware.com onto a server.
The security guys are giving me a hard time because they found this security vulnerability.
http://xforce.iss.net/xforce/xfdb/6259
This vulnerability came out in 2001, and it looks like it was mostly for linux, but I cant be... (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies
tk_setPalette(n) Tk Built-In Commands tk_setPalette(n)
__________________________________________________________________________________________________________________________________________________
NAME
tk_setPalette, tk_bisque - Modify the Tk color palette
SYNOPSIS
tk_setPalette background
tk_setPalette name value ?name value ...?
tk_bisque
_________________________________________________________________
DESCRIPTION
The tk_setPalette procedure changes the color scheme for Tk. It does this by modifying the colors of existing widgets and by changing the
option database so that future widgets will use the new color scheme. If tk_setPalette is invoked with a single argument, the argument is
the name of a color to use as the normal background color; tk_setPalette will compute a complete color palette from this background color.
Alternatively, the arguments to tk_setPalette may consist of any number of name-value pairs, where the first argument of the pair is the
name of an option in the Tk option database and the second argument is the new value to use for that option. The following database names
are currently supported: activeBackground foregroundselectColor activeForeground highlightBackgroundselectBack-
ground background highlightColor selectForeground disabledForeground insertBackgroundtroughColor tk_setPalette tries to
compute reasonable defaults for any options that you do not specify. You can specify options other than the above ones and Tk will change
those options on widgets as well. This feature may be useful if you are using custom widgets with additional color options.
Once it has computed the new value to use for each of the color options, tk_setPalette scans the widget hierarchy to modify the options of
all existing widgets. For each widget, it checks to see if any of the above options is defined for the widget. If so, and if the option's
current value is the default, then the value is changed; if the option has a value other than the default, tk_setPalette will not change
it. The default for an option is the one provided by the widget ([lindex [$w configure $option] 3]) unless tk_setPalette has been run pre-
viously, in which case it is the value specified in the previous invocation of tk_setPalette.
After modifying all the widgets in the application, tk_setPalette adds options to the option database to change the defaults for widgets
created in the future. The new options are added at priority widgetDefault, so they will be overridden by options from the .Xdefaults file
or options specified on the command-line that creates a widget.
The procedure tk_bisque is provided for backward compatibility: it restores the application's colors to the light brown ("bisque") color
scheme used in Tk 3.6 and earlier versions.
KEYWORDS
bisque, color, palette
Tk 4.0 tk_setPalette(n)