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