[opensuse] Turn off colors in vi or vim
How can I turn off colors in vi (actually vim) permanently? -- ---Bryen--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bryen escribió:
How can I turn off colors in vi (actually vim) permanently?
echo "syntax off" >> ~/.vimrc -- "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." --Albert Einstein Cristian Rodríguez R, Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, 2007-10-30 at 22:25 -0300, Cristian Rodriguez wrote:
Bryen escribió:
How can I turn off colors in vi (actually vim) permanently?
echo "syntax off" >> ~/.vimrc
That was way too simple! Couldn't you have given me harder instructions??? :-) Thanks Cristian. Very much appreciated. -- ---Bryen--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, 30 Oct 2007, Cristian Rodriguez wrote:
Bryen escribió:
How can I turn off colors in vi (actually vim) permanently?
echo "syntax off" >> ~/.vimrc
That also disables other functionalities. To just turn off colors you probably have to create a new colorscheme ( :help colo ). See also /usr/share/vim/vim??/colors/README.txt Berthold -- ------------------------------------------------------------------ Berthold Gunreben SUSE Linux GmbH -- Dokumentation mailto:bg@suse.de Maxfeldstr. 5 http://www.suse.de/ D-90409 Nuernberg, Germany SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, 2007-10-30 at 21:01 -0700, joe wrote:
Bryen wrote:
How can I turn off colors in vi (actually vim) permanently?
rpm -e vim-data
Okay, I gotta ask. Cristian's solution earlier created an empty .vimrc file with "syntax off" in it and it works perfectly. Best of all, it is a non-destructive solution. Your solution (which may also work) is to remove a package. Just what functionality would I have lost if I had gone your route?
Joe -- ---Bryen---
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bryen wrote:
On Tue, 2007-10-30 at 21:01 -0700, joe wrote:
Bryen wrote:
How can I turn off colors in vi (actually vim) permanently? rpm -e vim-data
Okay, I gotta ask. Cristian's solution earlier created an empty .vimrc file with "syntax off" in it and it works perfectly. Best of all, it is a non-destructive solution.
Your solution (which may also work) is to remove a package. Just what functionality would I have lost if I had gone your route?
You'd lose the colors. In all other respects vim would work perfectly, and that's how I like it. I really don't appreciate trying to make out dark blue text on my black xterm, so I always nuke that irritant soon after install. On a server with many users, I'd naturally lean towards the other solution, just in case somebody actually wanted those colors. Joe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, 2007-10-30 at 22:01 -0700, joe wrote:
Bryen wrote:
On Tue, 2007-10-30 at 21:01 -0700, joe wrote:
Bryen wrote:
How can I turn off colors in vi (actually vim) permanently? rpm -e vim-data
Okay, I gotta ask. Cristian's solution earlier created an empty .vimrc file with "syntax off" in it and it works perfectly. Best of all, it is a non-destructive solution.
Your solution (which may also work) is to remove a package. Just what functionality would I have lost if I had gone your route?
You'd lose the colors. In all other respects vim would work perfectly, and that's how I like it. I really don't appreciate trying to make out dark blue text on my black xterm, so I always nuke that irritant soon after install.
On a server with many users, I'd naturally lean towards the other solution, just in case somebody actually wanted those colors.
Joe
Thanks. That makes alot of sense. And I agree, those color schemes are incredibly annoying. Hmm... so far, I've managed to remove colors from vim and ls. I haven't come across anything else yet that uses color in terminal. Since we're a kindred "anti-color" spirit, what else have you come across and what were your solutions then? -- ---Bryen--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bryen wrote:
On Tue, 2007-10-30 at 22:01 -0700, joe wrote:
You'd lose the colors. In all other respects vim would work perfectly, and that's how I like it. I really don't appreciate trying to make out dark blue text on my black xterm, so I always nuke that irritant soon after install.
On a server with many users, I'd naturally lean towards the other solution, just in case somebody actually wanted those colors.
Joe
Thanks. That makes alot of sense. And I agree, those color schemes are incredibly annoying. Hmm... so far, I've managed to remove colors from vim and ls. I haven't come across anything else yet that uses color in terminal. Since we're a kindred "anti-color" spirit, what else have you come across and what were your solutions then?
Heh, that's the only thing that comes to mind atm - but in emacs, or kate, I actually appreciate the color coding. The difference is, that's not against a black terminal background. Joe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
that's how I like it. I really don't appreciate trying to make out dark blue text on my black xterm, so I always nuke that irritant soon after install.
Hello: How can I turn off color in konsole? Or change the colors for other? Thanks, IG Filmek egy kattintásra tőled – Zene és szöveg, Híd Terabithia Földjére, Kiképzés és még több új film a T-Online Tékában! ________________________________________________________ http://www.teka.t-online.hu -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 2007-10-31 at 12:01 +0100, Istvan Gabor wrote:
Hello:
How can I turn off color in konsole? Or change the colors for other?
Thanks, IG
Depends. Turn off what colors? Can you give us examples of what action/command line tool is generating colors for you? -- ---Bryen--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
How can I turn off color in konsole? Or change the colors for other?
Depends. Turn off what colors? Can you give us examples of what action/command line tool is generating colors for you?
I meant the foreground color of konsole window, ie the text/ characters. Eg that root login prompt changes to red, different file types are listed in different colors etc. IG Filmek egy kattintásra tőled – Zene és szöveg, Híd Terabithia Földjére, Kiképzés és még több új film a T-Online Tékában! ________________________________________________________ http://www.teka.t-online.hu -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 2007-10-31 at 17:45 +0100, Istvan Gabor wrote:
How can I turn off color in konsole? Or change the colors for other?
Depends. Turn off what colors? Can you give us examples of what action/command line tool is generating colors for you?
I meant the foreground color of konsole window, ie the text/ characters. Eg that root login prompt changes to red, different file types are listed in different colors etc.
IG
Filmek egy kattintásra tőled – Zene és szöveg, Híd Terabithia Földjére, Kiképzés és még több új film a T-Online Tékában! ________________________________________________________ http://www.teka.t-online.hu
I don't know how to change the root's prompt from red to another, but I kind of like it because it warns/reminds me that I am in root. As for different file colors, you are talking about the 'ls' command. As I learned here in this mailing list, the simplest way to do this is to follow this command: touch ~/.dir_colors This creates a hidden empty colors file in your home directory. This will only happen under your login user. If you also want to disable colors for when you su into root, follow this command: touch /root/.dir_colors This creates the same hidden empty colors file for the root user. To re-enable the colors for the 'ls' command, simply delete the .dir_colors files. That's it. -- ---Bryen--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Istvan Gabor wrote:
How can I turn off color in konsole? Or change the colors for other?
Depends. Turn off what colors? Can you give us examples of what action/command line tool is generating colors for you?
I meant the foreground color of konsole window, ie the text/ characters. Eg that root login prompt changes to red, different file types are listed in different colors etc.
Settings -> Schema or to make a new schema: Settings -> Configure Console -> Schema -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 31 October 2007 04:01, Istvan Gabor wrote:
that's how I like it. I really don't appreciate trying to
make out dark blue
text on my black xterm, so I always nuke that irritant
soon after install.
Hello:
How can I turn off color in konsole? Or change the colors for other?
Konsole's color settings are kept in "Schema" definitions. You can switch schemas in the Schema sub-menu of the Settings menu. If you have the menu bar hidden, right click in the text are to get a context menu that includes a Settings sub-menu. You can define or alter schemas in the Konsole Configuration dialog: Settings -> Configure Konsole...
Thanks, IG
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 31 October 2007 04:01, Istvan Gabor wrote:
that's how I like it. I really don't appreciate trying to
make out dark Konsole's color settings are kept in "Schema" definitions. You can switch schemas in the Schema sub-menu of the Settings
You can define or alter schemas in the Konsole Configuration
Randall R Schulz <rschulz@sonic.net> írta: menu. dialog:
Settings -> Configure Konsole...
Thanks. I have the following problems: 1. My schema is set to Konsole Default. But this is not on the list of editable shemas (in Configure -KDE Control Module, shema tab, schema window). 2. I don't know what 'shell color' and 'Konsole color' means. I tried to change different settings but still don't know how can I put an image as background. The documnetation is very bad and tooltips do not further info either. IG Filmek egy kattintásra tőled – Zene és szöveg, Híd Terabithia Földjére, Kiképzés és még több új film a T-Online Tékában! ________________________________________________________ http://www.teka.t-online.hu -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bryen wrote:
On Tue, 2007-10-30 at 22:01 -0700, joe wrote:
On Tue, 2007-10-30 at 21:01 -0700, joe wrote:
Bryen wrote:
How can I turn off colors in vi (actually vim) permanently? rpm -e vim-data
Okay, I gotta ask. Cristian's solution earlier created an empty .vimrc file with "syntax off" in it and it works perfectly. Best of all, it is a non-destructive solution.
Your solution (which may also work) is to remove a package. Just what functionality would I have lost if I had gone your route? You'd lose the colors. In all other respects vim would work perfectly, and
Bryen wrote: that's how I like it. I really don't appreciate trying to make out dark blue text on my black xterm, so I always nuke that irritant soon after install.
On a server with many users, I'd naturally lean towards the other solution, just in case somebody actually wanted those colors.
Joe
Thanks. That makes alot of sense. And I agree, those color schemes are incredibly annoying. Hmm... so far, I've managed to remove colors from vim and ls. I haven't come across anything else yet that uses color in terminal. Since we're a kindred "anti-color" spirit, what else have you come across and what were your solutions then?
For ls, just change the LS_OPTIONS environment variable in your .bashrc (or whatever resource file is used by your shell). -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Wednesday 2007-10-31 at 00:20 -0500, Bryen wrote:
incredibly annoying. Hmm... so far, I've managed to remove colors from vim and ls. I haven't come across anything else yet that uses color in terminal. Since we're a kindred "anti-color" spirit, what else have you come across and what were your solutions then?
There are more: joe, mc, mcedit, pine... But, I like color :-P - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFHKfHFtTMYHG2NR9URAkA3AJ9nLdJtkRS0PTbG7eKF6EEuVfQ0vwCgk0Ys +ECWYTkbqjDCN4myDZ8l7JE= =88zF -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, 2007-11-01 at 16:33 +0100, Carlos E. R. wrote:
The Wednesday 2007-10-31 at 00:20 -0500, Bryen wrote:
incredibly annoying. Hmm... so far, I've managed to remove colors from vim and ls. I haven't come across anything else yet that uses color in terminal. Since we're a kindred "anti-color" spirit, what else have you come across and what were your solutions then?
There are more: joe, mc, mcedit, pine... But, I like color :-P
- -- Cheers, Carlos E. R.
And I hold no judgment for your "misguided" love of colors. :-P Just kidding. In all seriousness, the color contrasting is a real problem for people with visual impairments, including me. Finding solutions to fix color issues in terminal for each and every tool that uses it becomes a real chore for us. Look how many different solutions were mentioned for vim. I wish there was a way to set terminal (such as Gnome-Terminal or Konsole) to ignore colors at a blanket level. It is nice to have learned all the different methods for color management, but achhh! -- ---Bryen--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2007-11-01 at 10:45 -0500, Bryen wrote:
There are more: joe, mc, mcedit, pine... But, I like color :-P
And I hold no judgment for your "misguided" love of colors. :-P Just kidding.
In all seriousness, the color contrasting is a real problem for people with visual impairments, including me. Finding solutions to fix color issues in terminal for each and every tool that uses it becomes a real chore for us. Look how many different solutions were mentioned for vim.
Ah! Yes, now I understand.
I wish there was a way to set terminal (such as Gnome-Terminal or Konsole) to ignore colors at a blanket level. It is nice to have learned all the different methods for color management, but achhh!
Mmm... there might be... but I haven't investigated it. :-? The xterm has some settings: -bdc Set the vt100 resource colorBDMode to ``false'', disabling the display of characters with bold attribute as color +bdc Set the vt100 resource colorBDMode to ``true'', enabling the display of characters with bold attribute as color rather than bold I was just grepping for "color" in the man page. I don't see one for just set it to B/W mode, but there are many settings. Perhaps mapping colors. Maybe this one: colorMode (class ColorMode) Specifies whether or not recognition of ANSI (ISO 6429) color change escape sequences should be enabled. The default is ``true.'' Also, if you want, you can set the whole display to black and white, or levels of gray. I have never tried, but it should be possible. Mmm... dunno if it is possible... we can choose how many colors, or bits per pixel, but force it to grays... I'm not sure. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFHKovrtTMYHG2NR9URApYaAJ9k5ZR4iED3jh6UCX4PphkhCe6SaQCfXElx gIgausFPRktNjjgpmx9nNus= =Gukz -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bryen wrote:
On Tue, 2007-10-30 at 21:01 -0700, joe wrote:
Bryen wrote:
How can I turn off colors in vi (actually vim) permanently? rpm -e vim-data
Okay, I gotta ask. Cristian's solution earlier created an empty .vimrc file with "syntax off" in it and it works perfectly. Best of all, it is a non-destructive solution.
Close. Cristan's solution opened a .vimrc file for appending (creating the file if it doesn't exist) and then APPENDED "syntax off" to the end of .vimrc. There's a difference (IMPORTANT!) between > and >>
Your solution (which may also work) is to remove a package. Just what functionality would I have lost if I had gone your route?
Yes, Cristan's solution is superior to uninstalling packages which someone else on a system might want to use (it's not a good idea to assume that all participants are only working on Linux machines that nobody else uses). -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 30 October 2007 18:16, Bryen wrote:
How can I turn off colors in vi (actually vim) permanently?
In keeping with my theme of answering questions not asked, I'll show you what I do: I add these to my .vimrc file: map ^[c :syntax on^M map ^[w :syntax off^M That way I can turn syntax hilighting on and off with ALT+C and ALT+W.
---Bryen---
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (8)
-
Aaron Kulkis
-
Berthold Gunreben
-
Bryen
-
Carlos E. R.
-
Cristian Rodriguez
-
Istvan Gabor
-
joe
-
Randall R Schulz