| verzia 1.40, 2002/02/06 19:53:03 |
verzia 1.41, 2002/02/10 21:56:44 |
|
|
| " Vim configuration file |
" Vim configuration file |
| " Language: Vim 5.6 script (with Vim 6.0 features) |
" Language: Vim 6.0 script |
| " Maintainer: Lubomir Host <host8@kepler.fmph.uniba.sk> |
" Maintainer: Lubomir Host <host8@kepler.fmph.uniba.sk> |
| " Bugs Reports: Lubomir Host <host8@kepler.fmph.uniba.sk> |
" Bugs Reports: Lubomir Host <host8@kepler.fmph.uniba.sk> |
| " License: GNU GPL |
" License: GNU GPL |
| Riadok 19 if version >= 600 |
|
| Riadok 19 if version >= 600 |
|
| filetype plugin on |
filetype plugin on |
| filetype indent on |
filetype indent on |
| else |
else |
| syntax on |
:finish |
| endif |
endif |
| |
|
| |
|
| " Settings for C language {{{ |
" Settings for C language {{{ |
| let c_gnu=1 |
let c_gnu=1 |
| let c_comment_strings=1 |
let c_comment_strings=1 |
|
|
| " Display a status-bar. |
" Display a status-bar. |
| set laststatus=2 |
set laststatus=2 |
| if has("statusline") |
if has("statusline") |
| set statusline=%1*%{GetID()}%0*%<%f\ %3*%m%1*%r%0*\ %2*%y%4*%w%0*%=[%b\ 0x%B]\ \ %8l,%10([%c%V/%{strlen(getline(line('.')))}]%)\ %P |
set statusline=%5*%{GetID()}%0*%<%f\ %3*%m%1*%r%0*\ %2*%y%4*%w%0*%=[%b\ 0x%B]\ \ %8l,%10([%c%V/%{strlen(getline(line('.')))}]%)\ %P |
| endif |
endif |
| " }}} |
" }}} |
| |
|
| Riadok 122 set winheight=100 |
|
| Riadok 123 set winheight=100 |
|
| set lazyredraw |
set lazyredraw |
| |
|
| " Vim beeping go to the hell... |
" Vim beeping go to the hell... |
| set vb t_vb= |
" With very little patch Vim(gvim) doesn't beep! To dissable beeping patch |
| |
" source and set ':set noerrorbells' (default). |
| |
" Here is patch for version 6.0.193: |
| |
" Note: file src/misc1.c was modified with theses patches: |
| |
" 6.0.024 6.0.089 6.0.113 6.0.178 6.0.180 |
| |
" but patch (probably) also work! |
| |
" Patch: |
| |
"*** vim60.193/src/misc1.c.orig Sat Feb 9 01:49:54 2002 |
| |
"--- vim60.193/src/misc1.c Sat Feb 9 02:17:16 2002 |
| |
"*************** |
| |
"*** 2721,2727 **** |
| |
" void |
| |
" vim_beep() |
| |
" { |
| |
"! if (emsg_silent == 0) |
| |
" { |
| |
" if (p_vb) |
| |
" { |
| |
"--- 2721,2727 ---- |
| |
" void |
| |
" vim_beep() |
| |
" { |
| |
"! if (emsg_silent == 0 && p_eb) |
| |
" { |
| |
" if (p_vb) |
| |
" { |
| |
set noerrorbells |
| |
set visualbell |
| |
set t_vb= |
| |
|
| " Set this, if you will open all windows for files specified |
" Set this, if you will open all windows for files specified |
| " on the commandline at vim startup. |
" on the commandline at vim startup. |
| Riadok 214 command! -nargs=* R call ReadFileAboveCu |
|
| Riadok 243 command! -nargs=* R call ReadFileAboveCu |
|
| |
|
| " Autocomands {{{ |
" Autocomands {{{ |
| if has("autocmd") |
if has("autocmd") |
| |
|
| |
" Autocomands for GUIEnter {{{ |
| |
augroup GUIEnter |
| |
autocmd! |
| |
" autocmd GUIEnter * set t_vb= |
| |
if has("gui_win32") |
| |
autocmd GUIEnter * simalt ~x |
| |
endif |
| |
augroup END |
| |
" }}} |
| |
|
| " Autocomands for ~/.vimrc {{{ |
" Autocomands for ~/.vimrc {{{ |
| augroup VimConfig |
augroup VimConfig |
| autocmd! |
autocmd! |
| Riadok 266 augroup Makefile |
|
| Riadok 306 augroup Makefile |
|
| augroup END |
augroup END |
| " }}} |
" }}} |
| |
|
| " Autocomands on Win32 {{{ |
|
| if has("gui_win32") |
|
| au GUIEnter * simalt ~x |
|
| endif |
|
| " }}} |
|
| |
|
| endif " if has("autocmd") |
endif " if has("autocmd") |
| " }}} Autocomands |
" }}} Autocomands |
| |
|
|
|
| |
|
| " Colors {{{ |
" Colors {{{ |
| set background=dark |
set background=dark |
| hi User1 term=inverse,bold cterm=inverse,bold ctermfg=red |
hi StatusLine term=bold,reverse cterm=bold,reverse |
| hi User2 term=bold cterm=bold ctermfg=yellow |
hi StatusLineNC term=reverse cterm=reverse |
| hi User3 term=inverse,bold cterm=inverse,bold ctermfg=blue |
hi StatusLine gui=bold guifg=Black guibg=White |
| hi User4 term=inverse,bold cterm=inverse,bold ctermfg=lightblue |
hi StatusLineNC gui=bold,reverse guifg=White guibg=Black |
| hi Folded term=standout ctermbg=black ctermfg=Blue guifg=DarkBlue |
hi User1 term=inverse,bold cterm=inverse,bold ctermfg=Red |
| hi FoldColumn term=standout ctermbg=black ctermfg=DarkBlue guibg=Grey guifg=DarkBlue |
hi User2 term=bold cterm=bold ctermfg=Yellow |
| |
hi User3 term=inverse,bold cterm=inverse,bold ctermfg=Blue |
| |
hi User4 term=inverse,bold cterm=inverse,bold ctermfg=LightBlue |
| |
hi User5 term=inverse,bold cterm=inverse,bold ctermfg=Red ctermbg=Green |
| |
hi User1 gui=bold guifg=White guibg=Red |
| |
hi User2 gui=bold guifg=Yellow guibg=Black |
| |
hi User3 gui=bold guifg=Blue guibg=White |
| |
hi User4 gui=bold guifg=LightBlue guibg=White |
| |
hi User5 gui=bold guifg=Green guibg=Red |
| |
hi Folded term=standout cterm=bold ctermfg=4 ctermbg=Black |
| |
hi FoldColumn term=standout ctermfg=DarkBlue ctermbg=Black |
| |
hi Folded gui=bold guibg=Black guifg=Blue |
| |
hi FoldColumn guibg=Black guifg=Blue |
| |
|
| " }}} |
" }}} |
| |
|
| " Modeline {{{ |
" Modeline {{{ |