" __ " __ __ /\_\ ___ ___ _ __ ___ " /\ \/\ \ \/\ \ /' __` __`\ /\`'__\ /'___\ " __ \ \ \_/ | \ \ \ /\ \/\ \/\ \ \ \ \/ /\ \__/ " /\_\ \ \___/ \ \_\\ \_\ \_\ \_\ \ \_\ \ \____\ " \/_/ \/__/ \/_/ \/_/\/_/\/_/ \/_/ \/____/ " " by XenGi " (c) 2016 " " setup: " " mkdir -p ~/.vim/autoload ~/.vim/bundle ~/.vim/colors ~/.vim/ftplugin " wget -O ~/.vim/colors/wombat256mod.vim http://www.vim.org/scripts/download_script.php?src_id=13400 " curl -so ~/.vim/autoload/pathogen.vim https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/pathogen.vim " git clone git://github.com/Lokaltog/vim-powerline.git ~/.vim/bundle/vim-powerline " git clone git://github.com/jtratner/vim-flavored-markdown.git ~/.vim/bundle/vim-flavored-markdown " wget -O ~/.vim/ftplugin/python_editing.vim http://www.vim.org/scripts/download_script.php?src_id=5492 " enable pathogen call pathogen#infect() " compatibility with vi set nocompatible " shell set shell=fish " encoding set encoding=utf-8 set fileencoding=utf-8 " show whitespace " MUST be inserted BEFORE the colorscheme command autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red au InsertLeave * match ExtraWhitespace /\s\+$/ " transparent font function! AdaptColorscheme() highlight clear CursorLine highlight Normal ctermbg=none highlight LineNr ctermbg=none highlight Folded ctermbg=none highlight NonText ctermbg=none highlight SpecialKey ctermbg=none highlight VertSplit ctermbg=none highlight SignColumn ctermbg=none endfunction autocmd ColorScheme * call AdaptColorscheme() " syntax and colors syntax on filetype on filetype indent on filetype plugin on set title set wrap set scrolloff=3 set number set relativenumber set showmode set ruler set background=dark set laststatus=2 " needed for vim-powerline set t_Co=256 colorscheme wombat256mod color wombat256mod set cmdheight=1 set hidden set colorcolumn=120 highlight ColorColumn ctermbg=233 " search set hlsearch set incsearch set ignorecase set smartcase set history=1000 set undolevels=1000 set wrapscan " stuff set backspace=indent,eol,start set ffs=unix,dos,mac set textwidth=120 " tabs and spaces set tabstop=4 set softtabstop=4 set shiftwidth=4 set shiftround set expandtab " disable stupid backup and swap files - they trigger too many events for file system watchers set nobackup set nowritebackup set noswapfile " github flavored markdown augroup markdown au! au BufNewFile,BufRead *.md,*.markdown setlocal filetype=ghmarkdown augroup END " python folding set nofoldenable " fix arrow keys "map d "map c "map! d "map! c