Login
Newsletter
Werbung

Mo, 30. Juli 2001, 00:00

Linux-Installation auf einem Dell Inspiron 8000

Konfiguration vim/gvim

Beim Editieren der XF86Config hat sich gezeigt, dass mir die Standard-Konfiguration von vim ganz und gar nicht gefällt. Die folgend abgebildete vimrc ist eine leicht angepasste Version des "minimal setup" von Sven Guckes, das direkt auf der VIM Homepage6 veröffentlicht ist.

set nocp " :-)
" turn these ON:
set digraph ek hidden ruler sc vb wmnu
" turn these OFF:
set noeb noet nosol
" non-toggles:
set bs=2 fo=cqrt ls=2 shm=at tw=72 ww=<,>,h,l
set comments=b:#,:%,fb:-,n:>,n:)
"set list listchars=tab:&raquo;&middot;,trail:&middot;
"--------------- aus vimrc.txt -----------------
" ===================
" Settings of Options
" ===================
" list and listchars
 set list
 set listchars=tab:&raquo;&middot;,trail:&middot;
" set listchars=tab:&macr;&uacute;,trail:&uacute;
" TN3270 does not show high-bit characters:
" set listchars=tab:>.,trail:o
" Turn on HighLightSearching:
set hls
" sometimes I need this, sometimes I dont...
"--------------- aus vimrc.txt -----------------
set viminfo=%,'50,\"100,:100,n~/.viminfo
" settings which are the default
" (at least with "nocompatible" anyway):
" set smd sw=8 ts=8
" mappings:
map K <NUL>
map <C-Z> :shell
map ,F :view $VIMRUNTIME/filetype.vim
map ,SO :source $VIMRUNTIME/syntax/
map ,V :view $VIMRUNTIME/syntax/
" autocommands:
au FileType mail set tw=70
" some colors: "white on black"
hi normal ctermfg=white ctermbg=black guifg=white guibg=black
hi nontext ctermfg=blue ctermbg=black guifg=blue guibg=black
" syntax coloring!! :-)
syn on
"--------------- aus SuSE gvimrc -----------------
" set the X11 font to use
"set guifont=-misc-fixed-medium-r-normal-14-130-75-75-c-70-iso8859-1
set guifont=-misc-fixed-medium-r-*-15-*-*-*-*-*-*-*
"------------- diverse Einstellungen -------------
" Hide the mouse pointer while typing
set mousehide
" Show line numbers
set number
"------------- DOS-like Cut'n'Paste --------------
" Im Kommando-Modus; vorher Text mit v markieren
map <C-X> "*x
map <C-C> "*y
map <C-V> "*P

Leistungsoptimierung der IDE-Schnittstelle

Mit hdparm -T -t /dev/hda zeigt sich, dass die Festplatte noch nicht mit DMA-Transfers arbeitet. Ein Test mit eingeschaltetem DMA-Transfer ergibt eine um Faktor 3 erhöhte Transferrate. Statt mit etwa 5 MByte/s "rennt" die Platte jetzt mit etwa 15 MByte/s. Grund genug, diese Zeile in die Datei /etc/rc.d/boot.local aufzunehmen.

/sbin/hdparm -d 1 /dev/hda

Kommentare (Insgesamt: 0 )
Pro-Linux
Pro-Linux @Facebook
Neue Nachrichten
Werbung