" Comp. mode off set nocompatible " For ctags filetype plugin on " Colorful syntax on syntax on " Expand tabs to spaces set expandtab " Shiftwidth (in this configuration - tab width) set sw=2 " Even though tab is simulated with spaces " treat spaces as tabs (e.g. while using backspace) set smarttab " Autoindent when starting new line set autoindent " Check spelling for Polish and English set spelllang=pl,en " Width of text set tw=72 " Automatic paragraph rewrapping set fo+=wa1 " No line wrapping set nowrap " Ignore character case during search set ignorecase " Priorities of guessed encodings set fileencodings=utf8,iso-8859-2 " set paste / set nopaste under F2 key set pastetoggle= " Tag list map :TlistToggle "set completeopt=menu,preview " Turn off matched phrase highlight map :nohlsearch " 2 spaces to TAB map :s/^ /\t/ " Remove spaces at the ends of lines under F4 key map :%s/ \n/ / " By default - highlight set hlsearch " Scrolling and other features " Events go to vim instead of terminal set mouse=a " Scrolling inoremap gk inoremap gj " History of edited files set viminfo='10,\"100,:20,%,n~/.viminfo " Jump to position where work was finished earlier au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif " Copy marked fragment to the X clipboard on CTRL+C vmap "+y imap "+p " Alternative method to access the X clipboard "vmap y: call system("xclip -i -selection clipboard", getreg("\"")) " Additional syntax defs ""au BufRead,BufNewFile *.als setfiletype alloy4