Re: Quando colo(paste) no VI, faz uma identação ruim.
Edite o /etc/vim/vimrc nele você verá:
" Vim5 and later versions support syntax highlighting. Uncommenting the next
" line enables syntax highlighting by default.
" syntax on
deixe assim:
" Vim5 and later versions support syntax highlighting. Uncommenting the next
" line enables syntax highlighting by default.
syntax on
obs: apenas retire o " da frente do syntax on (descomentado-o)
salve e saia. (no vi :x )
Atenciosamente,
Nando.
Em 01/08/05, Nelson Oliveira<nholiveira@yahoo.com.br> escreveu:
> Aproveitando o tópico galera.
>
> Uso o VIM pra programar PHP. Quando edito meu código
> eu mando o comando
> :syntax on
>
> Como faco pra que o VIm fique por padrao com essa
> opcao ligada?
>
> Obrigado.
>
>
>
> Andrighetti wrote:
>
> >É só antes de vc colar no vi, mude o modo para
> >insert..
> >
> >ai ele não faz isso com o texto..
> >
> >
> >--- Márcio Inácio Silva <marcio@eas.com.br> escreveu:
> >
> >
> >
> >>Em Seg 01 Ago 2005 14:26, hamacker escreveu:
> >>
> >>
> >>>Eu tentei, tentei varias combinacoes no /etc/vimrc
> >>>
> >>>
> >>e ainda não consegui
> >>
> >>
> >>>descobrir onde fica o pulo do gato.
> >>>
> >>>O problema é que muitas vezes utilizo o bash e
> >>>
> >>>
> >>quando preciso editar
> >>
> >>
> >>>algum arquivo, lá vai eu vi
> >>>
> >>>
> >>/arquivo/a/ser/editado.txt, porém seu eu for
> >>
> >>
> >>>copiar algo na interface grafica, por exemplo, um
> >>>
> >>>
> >>trecho que esta no
> >>
> >>
> >>>mozilla e for colar no 'vi' causa um efeito
> >>>
> >>>
> >>estranho, fica como se
> >>
> >>
> >>>houvesse TABs dentro do texto, fazendo algo assim
> >>>
> >>>
> >>:
> >>
> >>
> >>>Section "ServerLayout"
> >>> Identifier "XFree86 Configured"
> >>> Screen 0 "Screen0" 0 0
> >>> Screen 1 "Screen1" RightOf "Screen0"
> >>> InputDevice "Keyboard0"
> >>>
> >>>
> >>"CoreKeyboard"
> >>
> >>
> >>> InputDevice "PS/2 Mouse"
> >>>
> >>>
> >>"CorePointer"
> >>
> >>
> >>> EndSection
> >>>
> >>>quando na realidade deveria ter sido :
> >>>Section "ServerLayout"
> >>> Identifier "XFree86 Configured"
> >>> Screen 0 "Screen0" 0 0
> >>> Screen 1 "Screen1" RightOf "Screen0"
> >>> InputDevice "Keyboard0" "CoreKeyboard"
> >>> InputDevice "PS/2 Mouse" "CorePointer"
> >>>EndSection
> >>>
> >>>Experimento colar em outros editores modo texto
> >>>
> >>>
> >>como o nano e esse
> >>
> >>
> >>>problema realmente não acontece, então
> >>>
> >>>
> >>aparentemente é só com o 'vi' mesmo.
> >>
> >>
> >>>Na realidade não queria aborrecer ninguem com um
> >>>
> >>>
> >>problema tao simples,
> >>
> >>
> >>>mas é que já tentei muita coisa e nada muda, e
> >>>
> >>>
> >>gosto muito vim para
> >>
> >>
> >>>editar arquivos com sintaxe-hightlight.
> >>>
> >>>[]'s a todos.
> >>>
> >>>
> >>Troque
> >>
> >>set autoindent " always set
> >>autoindenting on
> >>
> >>por
> >>
> >>set noautoindent " always set
> >>autoindenting on
> >>
> >>dentro do arquivo /etc/vim/vimrc
> >>
> >>[],s
> >>
> >>--
> >>___________________________________________________
> >>EAS Tecnologia e Informação - http://www.eas.com.br
> >>Márcio Inácio Silva - marcio@eas.com.br
> >> .~.
> >> / v \ Seja Livre, use GNU/Linux!
> >> / ( ) \
> >> ^^-^^ GNU/Debian/Linux
> >>
> >>
> >>
> >>
> >
> >
> >
> >
> >
> >
> >_______________________________________________________
> >Yahoo! Acesso Grátis - Internet rápida e grátis.
> >Instale o discador agora! http://br.acesso.yahoo.com/
> >
> >
> >
> >
>
>
>
>
> _______________________________________________________
> Yahoo! Acesso Grátis - Internet rápida e grátis.
> Instale o discador agora! http://br.acesso.yahoo.com/
>
>
> --
> To UNSUBSCRIBE, email to debian-user-portuguese-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
Reply to: