mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-07 00:05:10 +01:00
100 lines
3.0 KiB
VimL
100 lines
3.0 KiB
VimL
" set the runtime path to include Vundle and initialize
|
|
set rtp+=~/.vim/bundle/Vundle.vim
|
|
call vundle#begin()
|
|
|
|
" let Vundle manage Vundle, required
|
|
Plugin 'gmarik/Vundle.vim'
|
|
|
|
" Display tags of the current file ordered by scope
|
|
Plugin 'majutsushi/tagbar'
|
|
" The unite or unite.vim plug-in can search and display information from
|
|
" arbitrary sources like files, buffers, recently used files or registers.
|
|
Plugin 'Shougo/unite.vim'
|
|
" Nice statusbar, alternative for powerline. Get powerline font for best
|
|
" looking result
|
|
Plugin 'bling/vim-airline'
|
|
" Better showing of open buffers (open files)
|
|
Plugin 'bling/vim-bufferline'
|
|
" Version control notes in the line number bar
|
|
Plugin 'mhinz/vim-signify'
|
|
" Think of sensible.vim as one step above 'nocompatible' mode: a universal
|
|
" set of defaults that (hopefully) everyone can agree on.
|
|
Plugin 'tpope/vim-sensible'
|
|
" Nice colour scheme
|
|
Plugin 'jnurmine/Zenburn.git'
|
|
" Python autocompletion
|
|
Plugin 'davidhalter/jedi-vim'
|
|
" Handy Markdown stuff
|
|
Plugin 'tpope/vim-markdown'
|
|
if v:version >= 704
|
|
" Pandoc, for stuff like autocompletion of citations from bibtex, other LaTeX
|
|
" stuff. Works with vim >= 7.4
|
|
Plugin 'vim-pandoc/vim-pandoc'
|
|
endif
|
|
" Distraction-free writing, start with <Leader>V (\V)
|
|
Plugin 'mikewest/vimroom'
|
|
|
|
" All of your Plugins must be added before the following line
|
|
call vundle#end() " required
|
|
filetype plugin indent on " required
|
|
|
|
|
|
" Enable line numbers, highlighting of current line and syntax highlighting by default
|
|
set number
|
|
set cursorline
|
|
syntax on
|
|
" enable words completion
|
|
set dictionary+=/usr/share/dict/words
|
|
" use ctrl-n ctrl-n instead of ctrl-x ctrl-k
|
|
set complete-=k complete+=k
|
|
|
|
" 2006-04-24
|
|
set smartcase
|
|
|
|
" 2008-04-14 with the if-statement added at 2008-11-19
|
|
if &term == "xterm" || &term == "screen-bce" || &term == "screen-256color" || &term == "screen"
|
|
set t_Co=256
|
|
colorscheme zenburn
|
|
|
|
" create a bar for airline
|
|
set laststatus=2
|
|
let g:airline_powerline_fonts = 1
|
|
endif
|
|
|
|
" paste and autoindent
|
|
set pastetoggle=<F10>
|
|
|
|
map <Leader>jt <Esc>:%!json_xs -f json -t json-pretty<CR>
|
|
|
|
" 2014-01-29 some sane Python settings
|
|
autocmd FileType python set tabstop=4
|
|
autocmd FileType python set shiftwidth=4
|
|
autocmd FileType python set smarttab
|
|
autocmd FileType python set expandtab
|
|
autocmd FileType python set softtabstop=4
|
|
autocmd FileType python set autoindent
|
|
|
|
" 2014-01-29 some sane PHP settings
|
|
autocmd FileType php set tabstop=4
|
|
autocmd FileType php set shiftwidth=4
|
|
autocmd FileType php set smarttab
|
|
autocmd FileType php set expandtab
|
|
autocmd FileType php set softtabstop=4
|
|
autocmd FileType php set autoindent
|
|
|
|
" 2014-03-21 some sane LaTeX settings
|
|
autocmd FileType tex set tabstop=4
|
|
autocmd FileType tex set shiftwidth=4
|
|
autocmd FileType tex set smarttab
|
|
autocmd FileType tex set expandtab
|
|
autocmd FileType tex set softtabstop=4
|
|
autocmd FileType tex set autoindent
|
|
"
|
|
" 2014-06-24 some sane shell settings
|
|
autocmd FileType sh set tabstop=4
|
|
autocmd FileType sh set shiftwidth=4
|
|
autocmd FileType sh set smarttab
|
|
autocmd FileType sh set expandtab
|
|
autocmd FileType sh set softtabstop=4
|
|
autocmd FileType sh set autoindent
|