Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vim sotto x
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
zoto
Apprentice
Apprentice


Joined: 16 Sep 2003
Posts: 155
Location: Italy - Bologna

PostPosted: Fri Feb 18, 2005 10:48 pm    Post subject: vim sotto x Reply with quote

Oggi ho aggiornato vim alla versione 6.3-r4

mi sono accorto che sotto x, se tramite una shell accedo ad un file, la visualizzazione è tragica!
(esempio di un pezzo di html)
Code:

                <(dmdiv+dm 'dmclass+dm=&dm"validatori"+dm>
                        <(dma+dm 'dmhref+dm=&dm"http://validator.w3.org/check?ur+dm 'dmclass+dm=&dm"nobordo"+dm 'dmsrc+dm=&dm"http://www.w3.org/Icons/valid-xhtm1!"+dm /></(dma+dm>dm"Valid XHTML 1..

E' veramente spiacevole. Qualcuno sa aiutarmi?
Back to top
View user's profile Send private message
FonderiaDigitale
Veteran
Veteran


Joined: 06 Nov 2003
Posts: 1710
Location: Rome, Italy

PostPosted: Fri Feb 18, 2005 11:12 pm    Post subject: Reply with quote

spiegaci cosa intendi con tragica
_________________
Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica :)
Back to top
View user's profile Send private message
zoto
Apprentice
Apprentice


Joined: 16 Sep 2003
Posts: 155
Location: Italy - Bologna

PostPosted: Sat Feb 19, 2005 10:18 am    Post subject: Reply with quote

Nel senso che risulta tutto illeggibile:

il testo originale di quello che ho inserito prima è
Code:

      <div class="validatori">
         <a href="http://validator.w3.org/check?uri=referer"><img class="nobordo" src="http://www.w3.org/Icons/valid-xhtml11" alt="Valid XHTML 1.1!" /></a>

(testo recuperato da page source di mozilla)

Avete idea di cosa non sia configurato bene?
Back to top
View user's profile Send private message
ares
Apprentice
Apprentice


Joined: 13 Oct 2003
Posts: 280
Location: Savigliano (CN)

PostPosted: Sat Feb 19, 2005 12:39 pm    Post subject: Reply with quote

Hai un file .vimrc nella tua home ?
_________________
My portage and homepage
Back to top
View user's profile Send private message
zoto
Apprentice
Apprentice


Joined: 16 Sep 2003
Posts: 155
Location: Italy - Bologna

PostPosted: Sat Feb 19, 2005 1:23 pm    Post subject: Reply with quote

No

Considera però che ho usato vim da un anno e mezzo a ieri senza pronblemi.
Inoltre è strano il fatto che sotto bash si visualizzi tutto perfettamente, mentre sotto x no.

Ma non è finita: mi sono accorto che il comando syntax on non funziona più (ovvero un codice in html che prima era riconosciuto in colori diversi, ora è grigio per il testo e bianco per ogni tag) e neanche il tasto end ha più la funzione di portare il cursore alla fine della riga.
Back to top
View user's profile Send private message
ares
Apprentice
Apprentice


Joined: 13 Oct 2003
Posts: 280
Location: Savigliano (CN)

PostPosted: Sat Feb 19, 2005 1:45 pm    Post subject: Reply with quote

Sotto X intendi che lo lanci tramite gvim ?
Cmq prova a reinstallare un'altra versione, magari quella precedente che ti funzionava...io uso la versione 7
Oppure prova a creare un file ~/.vimrc con le tue opzioni...
_________________
My portage and homepage
Back to top
View user's profile Send private message
zoto
Apprentice
Apprentice


Joined: 16 Sep 2003
Posts: 155
Location: Italy - Bologna

PostPosted: Sat Feb 19, 2005 2:12 pm    Post subject: Reply with quote

Tolto vim, rimessa la versione 6.3-r2, ma nulla di cambiato.

Stessi identici errori.
Back to top
View user's profile Send private message
zoto
Apprentice
Apprentice


Joined: 16 Sep 2003
Posts: 155
Location: Italy - Bologna

PostPosted: Sat Feb 19, 2005 2:20 pm    Post subject: Reply with quote

Questo è l'elenco delle cose di cui ho fatto emerge ieri:


app-editors/vim-core-6.3-r4
app-editors/vim-6.3-r4
app-vim/gentoo-syntax-20041227
net-mail/mailbase-0.00-r8
x11-libs/openmotif-2.2.3-r1
app-emulation/wine-20050111


ora non mi ero accorto di questo gentoo-syntax: potrebbe essere la causa?
Back to top
View user's profile Send private message
ares
Apprentice
Apprentice


Joined: 13 Oct 2003
Posts: 280
Location: Savigliano (CN)

PostPosted: Sat Feb 19, 2005 3:04 pm    Post subject: Reply with quote

No..nn credo
Con che USE hai compilato vim ?
Prova a usare questa configurazione
http://www.genbuild.org/scripts/vimrc.html
_________________
My portage and homepage
Back to top
View user's profile Send private message
zoto
Apprentice
Apprentice


Joined: 16 Sep 2003
Posts: 155
Location: Italy - Bologna

PostPosted: Sat Feb 19, 2005 3:28 pm    Post subject: Reply with quote

stessa identica cosa.

cambia solo la visualizzazione della finestra che ha una barra grigia informativa in basso, ma null'altro.

Caratteri strani al posto dei tag originari, )dm~ alla fine di ogni file e la mancanza assoluta della sintassi colorata sono rimasti
Back to top
View user's profile Send private message
ares
Apprentice
Apprentice


Joined: 13 Oct 2003
Posts: 280
Location: Savigliano (CN)

PostPosted: Sat Feb 19, 2005 3:40 pm    Post subject: Reply with quote

Controlla nella dir di installazione di vim di avere tutti i file e dir, ftplugin ecc
_________________
My portage and homepage
Back to top
View user's profile Send private message
zoto
Apprentice
Apprentice


Joined: 16 Sep 2003
Posts: 155
Location: Italy - Bologna

PostPosted: Sat Feb 19, 2005 4:04 pm    Post subject: Reply with quote

mi sono accorto che sotto aterm ci sono i problemi di cui parlo, ma non sotto xterm
Back to top
View user's profile Send private message
zUgLiO
l33t
l33t


Joined: 12 Aug 2003
Posts: 754
Location: Ferrara (Italy)

PostPosted: Sat Feb 19, 2005 4:48 pm    Post subject: Reply with quote

zoto wrote:
mi sono accorto che sotto aterm ci sono i problemi di cui parlo, ma non sotto xterm

Occhio che aterm non supporta caratteri Unicode, che sia quello?
_________________

voglio poi dire che il tempo mi avrà fatto abituare,

ma io non trovo nemmeno brutta la stiva buia di questa nave
Back to top
View user's profile Send private message
zoto
Apprentice
Apprentice


Joined: 16 Sep 2003
Posts: 155
Location: Italy - Bologna

PostPosted: Sat Feb 19, 2005 6:03 pm    Post subject: Reply with quote

Ti ringrazio. Penso sia quello il problema. Come potrei risorverlo? Non ho neanche idea del perché si sia mostrato solo ora...

inoltre, ma questo non penso sia legato a unicode, i tag non sono visualizzati con alcun colore se non il bianco. Che riconosca i tag è evidente, ma non c'è più la distinzione (da notare che quando ho provato con xterm il codice è distinto da colori diversi, ma non sotto bash in modalità testuale).
Back to top
View user's profile Send private message
zoto
Apprentice
Apprentice


Joined: 16 Sep 2003
Posts: 155
Location: Italy - Bologna

PostPosted: Sat Feb 19, 2005 10:43 pm    Post subject: Reply with quote

posto il mio vimrc:

Code:

" Default configuration file for Vim
" Written by Aron Griffis <agriffis@gentoo.org>
" Modified by Ryan Phillips <rphillips@gentoo.org>
" Modified some more by Ciaran McCreesh <ciaranm@gentoo.org>
" Added Redhat's vimrc info by Seemant Kulleen <seemant@gentoo.org>

" The following are some sensible defaults for Vim for most users.
" We attempt to change as little as possible from Vim's defaults,
" deviating only where it makes sense
set nocompatible        " Use Vim defaults (much better!)
set bs=2                " Allow backspacing over everything in insert mode
set ai                  " Always set auto-indenting on
"set backup             " Keep a backup file
set viminfo='20,\"500   " read/write a .viminfo file -- limit regs to 500 lines
set history=50          " keep 50 lines of command history
set ruler               " Show the cursor position all the time
" We don't allow modelines by default. See bug #14088 and bug #73715.
" If you're not concerned about these, you can enable them on a per-user
" basis by adding "set modeline" to your ~/.vimrc file.
set nomodeline

if v:lang =~ "^ko"
  set fileencodings=euc-kr
  set guifontset=-*-*-medium-r-normal--16-*-*-*-*-*-*-*
elseif v:lang =~ "^ja_JP"
  set fileencodings=euc-jp
  set guifontset=-misc-fixed-medium-r-normal--14-*-*-*-*-*-*-*
elseif v:lang =~ "^zh_TW"
  set fileencodings=big5
  set guifontset=-sony-fixed-medium-r-normal--16-150-75-75-c-80-iso8859-1,-taipei-fixed-medium-r-normal--16-150-75-75-c-160-big5-0
elseif v:lang =~ "^zh_CN"
  set fileencodings=gb2312
  set guifontset=*-r-*
endif
if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
  set fileencodings=utf-8,latin1
endif

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

" 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")
  syntax on
  set hlsearch
endif

if &term=="xterm"
  " Previously we would unset t_RV to prevent gnome-terminal from beeping as
  " vim started.  These days it appears that gnome-terminal has been repaired,
  " so re-enable this, and don't restrict t_Co=8.  (21 Jun 2004 agriffis)
  "set t_RV=                    " don't check terminal version
  "set t_Co=8
  set t_Sb=^[4%dm
  set t_Sf=^[3%dm
  set ttymouse=xterm2   " only works for >=xfree86-3.3.3, should be okay
endif

" Enable plugin-provided filetype settings, but only if the ftplugin
" directory exists (which it won't on livecds, for example).
" Enable plugin-provided filetype settings, but only if the ftplugin
" directory exists (which it won't on livecds, for example).
if isdirectory(expand("$VIMRUNTIME/ftplugin"))
  filetype plugin on
endif

" Uncomment the next line (or copy to your ~/.vimrc) for plugin-provided
" indent settings. Some people don't like these, so we won't turn them on by
" default.
" filetype indent on

if has("autocmd")

augroup gentoo
  au!

  " Gentoo-specific settings for ebuilds.  These are the federally-mandated
  " required tab settings.  See the following for more information:
  " http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml
  " Note that the rules below are very minimal and don't cover everything.
  " Better to emerge app-vim/gentoo-syntax, which provides full syntax,
  " filetype and indent settings for all things Gentoo.
  au BufRead,BufNewFile *.e{build,class} let is_bash=1|setfiletype sh
  au BufRead,BufNewFile *.e{build,class} set ts=4 sw=4 noexpandtab

  " In text files, limit the width of text to 78 characters, but be careful
  " that we don't override the user's setting.
  autocmd BufNewFile,BufRead *.txt if &tw == 0 | set tw=78 | endif

  " When editing a file, always jump to the last cursor position
  autocmd BufReadPost *
        \ if line("'\"") > 0 && line ("'\"") <= line("$") |
        \   exe "normal g'\"" |
        \ endif

  " When editing a crontab file, set backupcopy to yes rather than auto. See
  " :help crontab and bug 53437.
  autocmd FileType crontab set backupcopy=yes

augroup END

endif " has("autocmd")


questo è tutto. Ho cancellato il precedente, reinstallato vim, ma non cambia nulla.
Back to top
View user's profile Send private message
zoto
Apprentice
Apprentice


Joined: 16 Sep 2003
Posts: 155
Location: Italy - Bologna

PostPosted: Mon Feb 21, 2005 9:23 pm    Post subject: Reply with quote

ho provato anche un emerge -e system ma è stato del tutto inutile.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum