"nthx's default .vimrc file
:if has("gui_running")
    :set background=light
    "ponizsza opcja powoduje opoznienie, gdy uruchomione
    "na terminalu tekstowym
    :set clipboard=unnamed
    :set guioptions-=mT
:endif
:set guioptions-=mT

":if has("terminfo")
":  set t_Co=8
":  set t_Sf=<Esc>[3%p1%dm
":  set t_Sb=<Esc>[4%p1%dm
":else
":  set t_Co=8
":  set t_Sf=<Esc>[3%dm
":  set t_Sb=<Esc>[4%dm
":endif
:syntax on
:filetype plugin on

"tabs
:set tabstop=4
:set shiftwidth=4
:set expandtab
:set softtabstop=4
:set smarttab

"folding
:set foldmethod=indent
:set foldlevelstart=99

:set ic
:set is
:set hls
":set tags=./tags,tags,/home/nthx/programowanie/java/adv/tags,/usr/share/java/jdk/src/tags,~/programowanie/java/other/tags
:set tags=tags,./tags,/home/nthx/instytut/poo/poo-seminarium/tags,/usr/local/java/src/struts/tags,/usr/local/java/src/jdk/tags
:set bk
:set writebackup
:set bdir=~/txt/vim-backup
:set dict=/usr/share/dict/words
:set cpt=.,w,b,u,t,i,k
:set autowrite
:set autoindent
:set suffixes+=.class,~,.bak,.out
:set wildignore+=CVS
:set textwidth=80
:set langmenu=pl_PL
:set guifont=-misc-fixed-medium-r-normal-*-*-140-*-*-c-*-iso8859-2
:set statusline=%<%f%h%m%r%=%l,%c%V\ %P
:set laststatus=2
:set backspace=2
:command! W write
:command! Wq wq
"temporarily disabled !!!
":compiler ant
":set makeprg=ant

:set efm=\ %#[javac]\ %#%f:%l:%c:%*\\d:%*\\d:\ %t%[%^:]%#:%m,
       \%A\ %#[javac]\ %f:%l:\ %m,%-Z\ %#[javac]\ %p^,%-C%.%#


" run ant /F7
:function N_make()
:!pwd
:make
:endfunction

" run ant with custom task /F7
:function N_make_copy_web()
:!pwd
:make resources_web
:endfunction

" compile files in actual directory /SHIFT-F7
:function N_jikes_compile()
:!echo "Compiling files \"*.java\" by 'jikes' in dir:"
:!pwd
:!jikes `find . -name "*.java"`
:endfunction

" run ant with custom task: run /F9
:function N_makeRun()
:!pwd
:make run
:endfunction


"
:map <F2> :w<CR>
:map <F3> :ls<CR>
:map <S-F3> :!pwd<CR>
:map <C-F3> :!ls -p<CR>
:map <F4> :cl!<CR>

:map <F7> :call N_make()<CR>
:map <S-F7> :call N_make_copy_web()<CR>
:map <F8> :cn<CR>
:map <S-F8> :cN<CR>
:map <F9> :call N_makeRun()<CR>
:map <F10> :call MenuExplOpen()<CR>


:let maplocalleader="\\"