" An example for a vimrc file. " " Maintainer: Bram Moolenaar " Last change: 2001 Jul 18 " " To use it, copy it to " for Unix and OS/2: ~/.vimrc " for Amiga: s:.vimrc " for MS-DOS and Win32: $VIM\_vimrc " for OpenVMS: sys$login:.vimrc " When started as "evim", evim.vim will already have done these settings. "if v:progname =~? "evim" " finish "endif " Use Vim settings, rather then Vi settings (much better!). " This must be first, because it changes other options as a side effect. set nocompatible " allow backspacing over everything in insert mode set backspace=indent,eol,start set autoindent " always set autoindenting on if has("vms") set nobackup " do not keep a backup file, use versions instead else set backup " keep a backup file endif set history=100 " keep 50 lines of command line history set ruler " show the cursor position all the time set showcmd " display incomplete commands set incsearch " do incremental searching " For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries " let &guioptions = substitute(&guioptions, "t", "", "g") " Don't use Ex mode, use Q for formatting map Q gq " Make p in Vimap de replace the selected text with the "" register. vnoremap p :let current_reg = @"gvs=current_reg " This is an alternative that also works in block mode, but the deleted " text is lost and it only works for putting the current register. "vnoremap p "_dp " 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 " Only do this part when compiled with support for autocommands. if has("autocmd") " Enable file type detection. " Use the default filetype settings, so that mail gets 'tw' set to 72, " 'cindent' is on in C files, etc. " Also load indent files, to automatically do language-dependent indenting. "filetype plugin indent on " For all text files set 'textwidth' to 78 characters. autocmd FileType text setlocal textwidth=78 " When editing a file, always jump to the last known cursor position. " Don't do it when the position is invalid or when inside an event handler " (happens when dropping a file on gvim). autocmd BufReadPost * \ if line("'\"") > 0 && line("'\"") <= line("$") | \ exe "normal g`\"" | \ endif endif " has("autocmd") " SAJÁT BEÁLLÍTÁSAIM syn on " autocmd BufEnter * cd %:p:h autocmd BufRead *.php set cindent " set verbose=9 " keresésnél case insensitive legyen set hlsearch set ignorecase set shiftwidth=2 " kicsi tabok set softtabstop=2 set expandtab " auto indentálás set cinkeys=0{,0},0),:,0#,!^F,o,O,e,! " látható színek beállítása highlight string ctermfg=green ctermbg=black highlight comment ctermfg=blue ctermbg=black highlight Normal ctermfg=White highlight Statement ctermfg=white ctermbg=black hi Normal guibg=grey80 hi Cursor guibg=red "highlight Cursor guibg=Green guifg=NONE highlight NonText guibg=grey60 highlight Constant gui=NONE guibg=grey95 highlight Special gui=NONE guibg=grey95 " default font beállítása X alatt "set guifont=-adobe-courier-medium-r-normal--11-80-100-100-m-60-iso8859-2 set guifont=-adobe-courier-medium-r-*-*-13-*-*-*-*-*-iso8859-2 " kikapcsoljuk a tool-bart x alatt set guioptions-=T "taglist.vim miatt: "set Tlist_Inc_Winwidth=0 let tlist_xslt_settings = 'xslt;t:template' let Tlist_Inc_Winwidth = 0 let Tlist_WinWidth =17 nnoremap :Tlist " WM module beállításai nnoremap :WMToggle " php syntax highlight "let php_parent_error_close = 1 "let php_parent_error_open = 1 "let php_folding = 1 let php_sync_method = 0 " szotyi xsl módosító cucca " xml file-okhoz " attributumok idezojelezese command XslAttrChange :%s/=\([^"' >]\+\)/="\1"/gc command -range SAttrChange :s/=\([^"' >]\+\)/="\1"/gc "
->
command XslBrChange :%s/
//gc command -range SBrChange :s/
//gc "
->
command XslHrChange :%s/
//gc command -range SHrChange :s/
//gc " img-et le kell zarni command XslImgChange :%s/\(]\+[^\/]\)>/\1\/>/gc command -range SImgChange :s/\(]\+[^\/]\)>/\1\/>/gc " input-et le kell zarni command XslInputChange :%s/\(]\+[^\/]\)>/\1\/>/gc command -range SInputChange :s/\(]\+[^\/]\)>/\1\/>/gc " Literanal a gfx konyvtar az image2 command XslLiteraGfxChange :%s/..\/gfx/\/images2/gc command -range SLiteraGfxChange :s/..\/gfx/\/images2/gc " img-et le kell zarni command SelectedImgChange :s/\(]\+\)/\1\//gc " zárójel missmatch jelzés: let php_parent_error_close = 1 let php_parent_error_open = 1