Hello vim-lovers. :)

I am using debian with the current unstable package of vim. Some weeks
ago now something seems to have changed with the configuration of vim.

Before when I opened a file over ssh to edit it locally (via e.g.
scp://u...@server//path/to/file.php) syntax hightlighting worked great
even after saving the file in the middle of my editing.

Now after saving the file, the syntax highlighting gets strange. The
filetype still seems to be the correct one, but the syntax highlighting
looks like something very basic (doing :set filetype answers with the
correct filetype)?

Just doing a :set filetype=php (for example! its not specific to php. It
also happens with perl or shell files) "repairs" the syntax
highlighting.

Do you have an idea, why this doesn't work anymore?

My current vimrc is attached.

Greetings

-- 
cu
  --== Jerri ==--
Homepage: http://www.jerri.de/   ICQ: 54160208
Public PGP Key: http://www.jerri.de/jerris_public_key.asc
" Keine Plugins bitte. Die regen mich auf!
filetype on
filetype plugin indent on

" Wir setzen eine huebsche Farbkombination
colorscheme peachpuff

" Syntax-Highlighting einschalten.
syn on

" Autoindent ist wichtig
set autoindent

" Ein paar kleine Informationen zu dem File, an dem ich arbeite.
set laststatus=2
set statusline=%<%f%h%m%r%=%b\ 0x%B\ \ %l,%c%V\ %P

" Welche Klammer geht zu?
set showmatch

" Wir wollen nicht beim rumfahren mit dem Cursor sehen, wo Klammern zugehen. Zu
" langsam!
let loaded_matchparen = 1

" Hilft sehr beim Suchen von Texten
set hlsearch

" Ich will Spaces und je zwei Zeichen statt Tabs
set expandtab
set tabstop=2
set shiftwidth=2

" Nur in Makefiles bitte doch Tabs benutzen
au FileType make setlocal noexpandtab

" Wie viele Zeilen vor bzw. hinter dem Cursor anzeigen
set scrolloff=5

" Filecompletion wie bei bash
set wim=longest,list

" Bei Mail-Dateien automatisches spellchecking einschalten
autocmd FileType mail setlocal spell spelllang=de

" Nur in die X-Selection kopieren, wenn ich es sage
set guioptions-=a

" Viel besseres Tabbing
function InsertTabWrapper ()
        let col = col('.') - 1
        if !col || getline('.')[col - 1] !~ '\k'
                return "\<tab>"
        else
                return "\<c-p>"
        endif
endfunction

inoremap <tab> <c-r>=InsertTabWrapper()<cr>

" Um unsichtbare Zeichen zu sehen
set list listchars=tab:��,trail:�

" Um schneller zu ueberblicken, in welcher Zeile ich mich gerade befinde.
"highlight CurrentLine term=underline cterm=underline gui=underline
"au! CursorHold * exe 'match CurrentLine /^\%' . line('.') . 'l\s\+/'
"set ut=100

" Um zu sehen, wenn meine Zeilen zu gross werden
" Brauche ich eigentlich nicht und stoert mich nur dauernd.
"au! CursorHold * exe 'match Todo /\%<82v.\%>81v/'

" Um Fenster einfach resizen zu koennen
map <C-J> :resize +1<CR>
map <C-K> :resize -1<CR>

" Fuer potwiki, damit der automatisch selber speichert.
let potwiki_autowrite=1
" Hier ein paar Einstellungen, damit beim RCS-Plugin nur fuers potwiki die
" RCS-Dateien erstellt werden.
let rvIncludeExpression="Wiki"
let rvSaveIfRCSExists=0

" Fuer das TList-Plugin
nnoremap <silent> <Leader>t :Tlist<CR><C-W>h
let Tlist_Ctags_Cmd="/usr/bin/ctags-exuberant"
let Tlist_Inc_Winwidth=0
let Tlist_Exit_OnlyWindow=1

" Um Manpages schnell aus vim heraus lesen zu koennen
runtime ftplugin/man.vim

" Mapping um alles bis zur eigenen Signatur zu entfernen
map <LEADER>kts :.,/^-- $/-1d<CR>O<ESC>

" Mapping, um alle Zeilen, die das letzte Suchwort nicht enthalten zu folden.
" mit zR kann man die Folds wieder aufmachen.
map <silent><leader>z :set foldexpr=getline(v:lnum)!~@/ foldlevel=0 
foldcolumn=0 foldmethod=expr<CR>

" Wenn ich vertical splitte, dann will ich neue Fenster auf der rechten Seite
set splitright

" Einstellungen fuer project.vim
nmap <silent> <Leader>p <Plug>ToggleProject

" Einstellungen fuer calendar.vim
let g:calendar_weeknm = 3

" Einstellung fuer netrw
let g:netrw_http_cmd = "wget -q -O"

Attachment: signature.asc
Description: Digital signature

Reply via email to