Logo Hardware.com.br
Drusian
Drusian Veterano Registrado
2.4K Mensagens 0 Curtidas
#4 Por Drusian
16/10/2002 - 14:42
Tiago Cruz
Alguém sabe?

Porque eu não consigo enchergar os comentários em azul-escuro quase preto num fundo preto!!! smile.png

Qu...



copie para o seu $HOME o arquivo .vimrc que vem como exemplo. Ele irá ler dúzias de configurações para você e habilitar o "syntax highlighting". Use o seguinte comando:

# cp /usr/doc/vim*/doc/vimrc_example.vim ~/.vimrc

(tirado de: http://www.piterpunk.hpg.ig.com.br/dicas.html#1 )

Vê se dá certo, eu nunca tentei pq curto branco e preto mesmo..

" Lembre-se que o o VI do slackware é apontado para o elvis.. então de nada adiantaria está config se vc não alterar o lnk.."

Abraço
Comunidade LinuxBSD®
Fórum LinuxBSD

$GNU/LinuxBSD: Andrei Drusian $
Tiago Cruz
Tiago Cruz Zumbi Registrado
10.3K Mensagens 1 Curtida
#5 Por Tiago Cruz
16/10/2002 - 17:18
Ae pessoal, valeu as sugestões!!! smile.png

Drusian, copiei meu /usr/share/doc/vim-common-6.0/gvimrc_example.vim para o arquivo ~/.vimrc (que não existia até então) mas não percebi nenhuma diferença... acho que com o mandrake é diferente, mas mesmo assim valeu!

Foi ficar na cola do Xtermi[tab] smile.png ...hahahahaha.... e tentar instalas os pacote que ele sugeriu, pois hj naum estou com o CD

Obrigado gente!
Xterminator-again
Xterminator-... Tô em todas Registrado
2.5K Mensagens 2 Curtidas
#7 Por Xterminator-...
16/10/2002 - 23:29
Aí Tiago agora sem malabarismos certo ?

#vi /usr/share/vim/vimrc

Procure a linha que tem..

"syntax on

tire o "da frente e aí é só alegria testei no Debian 3.0 aproveitando pra quem usa Salckware e Debian faz isso pra ficar com ls colorido

#alias ls='/bin/ls --color=tty'



big_green.png Bem agora vou voltar pro CL que tenho umas coisas a fazer por lá
até daqui a pouco :lol:
Default®
Default® Tô em todas Registrado
2.8K Mensagens 1 Curtida
#8 Por Default®
17/10/2002 - 03:35
navarro
eu usava o cl8 e o vi modo texto mostrava comentários e funções em cores diferentes, mudei para o slakware 8.1 e o v...


no meu site abaixo tem como deixar o vi no slackware igual aos dos redhats.. era so voce ler a documentacao para fazer isso mas se quiser ta la
Mobile: HP NX9010
Red Hat Certified Engineer - LPIC-2
Red Hat Enterprise AS v3.0 / Slackware 10 / FreeBSD 4.9-STABLE
Tiago Cruz
Tiago Cruz Zumbi Registrado
10.3K Mensagens 1 Curtida
#9 Por Tiago Cruz
17/10/2002 - 08:16
:lol: E aí Xtermi[tab] smile.png hehehe.. gostei disso!

Cara, infelismente eu não tenho essa linha comentada, ela está normal:


~~ ~ VIM - Vi IMproved ~ ~ version 6.0.19 ~ by Bram Moolenaar et al. ~ Vim is open source and freely distributable " An example for a vimrc file.
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last change: 2001 Jul 18
"
" To use it, copy it to
" for Unix and OS/2: ~/.vimrc
endif
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching

" For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries
" let &guioptions = substitute(&guioptions, "t", "", "g&quot

" Don't use Ex mode, use Q for formatting
map Q gq

" Make p in Visual mode replace the selected text with the "" register.
vnoremap p <Esc>:let current_reg = @"<CR>gvs<C-R>=current_reg<CR><Esc>

" This is an alternative that also works in block mode, but the deleted
" text is lost and it only works for putting the current register.
"vnoremap p "_dp

" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running&quot
syntax on
set hlsearch
" An example for a vimrc file.
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last change: 2001 Jul 18
"
" To use it, copy it to
" for Unix and OS/2: ~/.vimrc
" for Amiga: s:.vimrc
" for MS-DOS and Win32: $VIM\_vimrc
" for OpenVMS: sys$login:.vimrc

" When started as "evim", evim.vim will already have done these settings.
if vrogname =~? "evim"
finish
endif

" Use Vim settings, rather then Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible

" allow backspacing over everything in insert mode
set backspace=indent,eol,start

set autoindent " always set autoindenting on
"vnoremap p "_dp

" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running&quot
syntax on
set hlsearch
" An example for a vimrc file.
"
" Maintainer: Bram Moolenaar <Bram@vim.org>

" This is an alternative that also works in block mode, but the deleted
" text is lost and it only works for putting the current register.
"vnoremap p "_dp

" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running&quot
syntax on
set hlsearch
endif

" Only do this part when compiled with support for autocommands.
if has("autocmd&quot

" Enable file type detection.
" Use the default filetype settings, so that mail gets 'tw' set to 72,
" 'cindent' is on in C files, etc.
" Also load indent files, to automatically do language-dependent indenting.
filetype plugin indent on

" For all text files set 'textwidth' to 78 characters.
autocmd FileType text setlocal textwidth=78


Postei logo o meu arquivo inteiro e vou dar uma fuçada.... mas vou fazer a pergunta de novo, pois acho que vocês não entenderam:

Quando uso o vi para editar um arquivo, os comentários do mesmo aparecem com uma cor azul-escura, e fica horrível para enchergar o que está escrito pois o fundo é preto..... tenho que mduar o fundo para enchergar alguma coisa, mas prefiro mudar a cor dos comentários, entenderam?

Default, eu jah tinha lido seu tuto, mas não se aplica ao meu caso pois ele já está colorido, mas de muito mal- gosto, hehehehehe.... smile.png

Se alguém tiver mais alguma sugestão, fico agradecido!

Abraços!
© 1999-2024 Hardware.com.br. Todos os direitos reservados.
Imagem do Modal