unlet! skip_defaults_vim source $VIMRUNTIME/defaults.vim set autoindent set smartindent set nu set expandtab set shiftwidth=2 set softtabstop=2 " setup Vundle: set nocompatible " be iMproved, required filetype off " required " set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'VundleVim/Vundle.vim' " let Vundle manage Vundle, required Plugin 'vim-pandoc/vim-pandoc-syntax' Plugin 'godlygeek/tabular' Plugin 'SirVer/ultisnips' Plugin 'honza/vim-snippets' " All of your Plugins must be added before the following line call vundle#end() " required filetype plugin indent on " required " UltiSnips configuration let g:UltiSnipsSnippetDirectories = ['/home/andrew/.snippets'] let g:UltiSnipsExpandTrigger = '' let g:UltiSnipsJumpForwardTrigger = '' let g:UltiSnipsJumpBackwardTrigger = '' set rtp-=$HOME/.vim set rtp^=~/.vim/bundle/ultisnips set rtp+=~/.vim/bundle/ultisnips/after set rtp^=$HOME/.vim set vi= filetype plugin on " markdown group for vim-pandoc-syntax: augroup pandoc_syntax au! BufNewFile,BufFilePre,BufRead *.md set filetype=markdown.pandoc augroup END let g:vim_markdown_conceal=1 hi conceal None if has('gui') set guioptions-=e endif if exists("+showtabline") function MyTabLine() let s = '' let t = tabpagenr() let i = 1 while i <= tabpagenr('$') let buflist = tabpagebuflist(i) let winnr = tabpagewinnr(i) let s .= '%' . i . 'T' let s .= (i == t ? '%1*' : '%2*') let s .= ' ' . i if tabpagewinnr(i,'$') > 1 let s .= ':' . winnr . '/' . tabpagewinnr(i,'$') endif let s .= ' %*' let s .= (i == t ? '%#TabLineSel#' : '%#TabLine#') let bufnr = buflist[winnr - 1] let file = bufname(bufnr) let buftype = getbufvar(bufnr, 'buftype') if buftype == 'nofile' if file =~ '\/.' let file = substitute(file, '.*\/\ze.', '', '') endif else let file = fnamemodify(file, ':p:t') endif if file == '' let file = '[No Name]' endif let s .= file let i = i + 1 endwhile let s .= '%T%#TabLineFill#%=' let s .= (tabpagenr('$') > 1 ? '%999XX' : 'X') return s endfunction set tabline=%!MyTabLine() endif