call pathogen#infect() let g:pathogen_disabled = ['vim-rails.git'] let g:Powerline_symbols = 'unicode' set rtp+=/home/tdi/.vim/bundle/powerline/powerline/bindings/vim syntax on " NERD nmap :NERDTreeToggle nmap :TagbarToggle set nocompatible set hlsearch " tabs and firends set autoindent set smartindent set expandtab set tabstop=2 set shiftwidth=2 set textwidth=100 set ignorecase set smartcase set incsearch set autochdir " directory for swp files set directory=/tmp set wildmenu set wildmode=longest,list set showcmd set showmatch set pastetoggle= filetype plugin on set grepprg=grep\ -nH\ $* filetype indent on " set mouse in terminal to resize windows set mouse=a set laststatus=2 "GUI if has('gui_running') set guioptions-=T "remove toolbar set guioptions-=r "remove right-hand scroll bar let g:solarized_termcolors=256 colorscheme solarized set background=dark else if $TERM =~ '^xterm-256color' colorscheme wombatterm elseif $TERM =~ '^screen' colorscheme wombatterm else colorscheme vividchalk endif endif cmap w!! %!sudo tee > /dev/null % "tab navigation "from Practical Vim book nnoremap :bprev nnoremap :bnext nnoremap [b :bprev nnoremap ]b :bnext nnoremap [B :bfirst nnoremap ]B :blast " Reselect last pasted text nnoremap gp `[v`] " highlight search matching " włączenie (zp) i wyłączenie (zP) korekty pisowni dla j.polskiego map zp :setlocal spell spelllang=pl map zP :setlocal nospell " " włączenie (ze) i wyłączenie (zE) korekty pisowni dla j.angielskiego map ze :setlocal spell spelllang=en map zE :setlocal nospell map zus :setlocal spell spelllang=en_us if $TERM =~ '^screen-256color' map OH map! OH map OF map! OF endif set cursorline set cursorcolumn fu! ToggleCurline () if &cursorline && &cursorcolumn set nocursorline set nocursorcolumn else set cursorline set cursorcolumn endif endfunction map cl :call ToggleCurline() " Until I got used to it inoremap inoremap inoremap inoremap noremap noremap noremap noremap imap jj nnoremap O nnoremap o map OM " Python let g:jedi#auto_initialization = 0 let g:jedi#auto_vim_configuration = 1 let g:jedi#show_call_signatures = "0" let g:jedi#popup_on_dot = 0