vim / .vimrcon commit start dunst & add audio hotkey (df71902)
   1unlet! skip_defaults_vim
   2source $VIMRUNTIME/defaults.vim
   3
   4set autoindent
   5set smartindent
   6set nu
   7set expandtab
   8set shiftwidth=2
   9set softtabstop=2
  10set clipboard=unnamed
  11
  12" setup Vundle:
  13set nocompatible              " be iMproved, required
  14filetype off                  " required
  15
  16" set the runtime path to include Vundle and initialize
  17set rtp+=~/.vim/bundle/Vundle.vim
  18call vundle#begin()
  19
  20" let Vundle manage Vundle, required
  21Plugin 'VundleVim/Vundle.vim'
  22
  23"Plugin 'vim-pandoc/vim-pandoc-syntax'
  24Plugin 'godlygeek/tabular'
  25"Plugin 'SirVer/ultisnips'
  26"Plugin 'honza/vim-snippets'
  27Plugin 'preservim/tagbar'
  28
  29" All of your Plugins must be added before the following line
  30call vundle#end()            " required
  31filetype plugin indent on    " required
  32
  33" UltiSnips configuration
  34"let g:UltiSnipsSnippetDirectories = ['/home/andrew/.snippets']
  35"let g:UltiSnipsExpandTrigger = '<tab>'
  36"let g:UltiSnipsJumpForwardTrigger = '<tab>'
  37"let g:UltiSnipsJumpBackwardTrigger = '<s-tab>'
  38"set rtp-=$HOME/.vim
  39"set rtp^=~/.vim/bundle/ultisnips
  40"set rtp+=~/.vim/bundle/ultisnips/after
  41set rtp^=$HOME/.vim
  42set vi=
  43filetype plugin on
  44
  45" Tagbar configuration
  46nmap <F8> :TagbarToggle<CR>
  47
  48" markdown group for vim-pandoc-syntax:
  49augroup pandoc_syntax
  50 au! BufNewFile,BufFilePre,BufRead *.md set filetype=markdown.pandoc
  51augroup END
  52
  53let g:vim_markdown_conceal=1
  54hi conceal None
  55
  56if has('gui')
  57  set guioptions-=e
  58endif
  59if exists("+showtabline")
  60  function MyTabLine()
  61    let s = ''
  62    let t = tabpagenr()
  63    let i = 1
  64    while i <= tabpagenr('$')
  65      let buflist = tabpagebuflist(i)
  66      let winnr = tabpagewinnr(i)
  67      let s .= '%' . i . 'T'
  68      let s .= (i == t ? '%1*' : '%2*')
  69      let s .= ' ' . i
  70      if tabpagewinnr(i,'$') > 1
  71        let s .= ':' . winnr . '/' . tabpagewinnr(i,'$')
  72      endif
  73      let s .= ' %*'
  74      let s .= (i == t ? '%#TabLineSel#' : '%#TabLine#')
  75      let bufnr = buflist[winnr - 1]
  76      let file = bufname(bufnr)
  77      let buftype = getbufvar(bufnr, 'buftype')
  78      if buftype == 'nofile'
  79        if file =~ '\/.'
  80          let file = substitute(file, '.*\/\ze.', '', '')
  81        endif
  82      else
  83        let file = fnamemodify(file, ':p:t')
  84      endif
  85      if file == ''
  86        let file = '[new file]'
  87      endif
  88      let s .= file
  89      let i = i + 1
  90    endwhile
  91    let s .= '%T%#TabLineFill#%='
  92    let s .= (tabpagenr('$') > 1 ? '%999XX' : 'X')
  93    return s
  94  endfunction
  95  set tabline=%!MyTabLine()
  96endif