Txtfmt (The Vim Highlighter) : "Rich text" highlighting in Vim! (colors, underline, bold, italic, etc...) created by Brett Stahlman http://www.vim.org/scripts/script.php?script_id=2208 " The "plugin" directory can be in any of the directories in the 'runtimepath' " option. All of these directories will be searched for plugins and they are " all loaded. " :set runtimepath #nachschauen, ob ~/.vim da ist " my output: runtimepath=~/.vim,/usr/share/vim/site,/usr/share/vim/current,/usr/share/vim/site/after,~/.vim/after " Dateien und Ordner entsprechend kopieren " :so[urce] {file} #lade das script, a plugin is a scipt " :scrip[tnames] #List all sourced script names " :fini[sh] #Stop sourcing the running script. source ~/.vim/plugin/txtfmt.vim "lade dieses plugin syntax on "Farben an filetype plugin on "plugin an " :set ft=txtfmt #filetype is now txtfmt " :filetype #see the current status "my output: filetype detection:ON plugin:ON indent:OFF "???HOW CAN I SEE, which name the filetype has now? " :filetype detect #after changing z.b. !/bin/csh detect filetype again set ft=txtfmt "filetype ist txtfmt " Set up detection for Txtfmt files, wenn .txt dann txtfmt nutzen au! filetypedetect BufRead,BufNewFile *.txt setfiletype txtfmt "<CTRL-\><CTRL-\> #so i see the promt in insert-mode :-) \o/ " fb #format bold " fu #format underline " fi #format italic (i do not get italic, i get white color on black background) " fbui #format bold, underline, italic " fibu #same as fbui, bubi " f- #kein Format " fb,cb #format bold, color blue " fb,cr #format bold, color red " fu,cg #format underline, color green " cv #color violett " c- #keine farbe, wieder schwarz "<CTRL-\><CTRL-\> #IMMER erst drücken, dann die Auswahl \o/ "cb #color blue "cblue #color blue "ck #k für black "c- #keine Farbe, black again "kb #color ist schon weg, also k für hintergrundfarbe, backgroundcolor blue "fbi,kr #format bold italic, backgroundcolor red "k- #keine Hintergrundfarbe "kg #Backgroundcolor green, "f-,c-,k- #alle Farben und Formate löschen "For performance reasons, the default configuration enables only 4 background colors: red, green, blue and yellow. "background-colors, mit fi wird es bei mir schwarz im hintergrund, dafür funktioniert kein yellow als Hintergrund. " k black Black mit fi wird der Hintergrund schwarz " b blue DarkBlue " g green DarkGreen " t turquoise DarkCyan-turquise " r red DarkRed " v violet DarkMagenta " y yellow DarkYellow " w white White w ":ShowTokenMap #zeige alle möglichen Befehle ansehen " notfalls selbst ändern: :let txtfmtColor5='^br\\%[own]$,c:DarkRed,g:#804000' "mit TOhtml in ein für alle sichtbar buntes Format verwandeln, "sonst nur in meiner vim sichtbar, oder in vim mit entsprechendem plugin. "ACHTUNG: fi sieht in html tatsächlich kursive aus!