Issue: chriskempson/base16-vim#197 Pull Request: chriskempson/base16-vim#198 More info: vim/vim#3929
154 lines
3.3 KiB
VimL
154 lines
3.3 KiB
VimL
call plug#begin()
|
|
" Color/theme integration
|
|
Plug 'danielwe/base16-vim'
|
|
" Time-tracking
|
|
Plug 'wakatime/vim-wakatime'
|
|
" Python Flake8 support
|
|
Plug 'nvie/vim-flake8'
|
|
" Status bar
|
|
Plug 'vim-airline/vim-airline'
|
|
" Color/theme integration
|
|
Plug 'vim-airline/vim-airline-themes'
|
|
" Git integration
|
|
Plug 'airblade/vim-gitgutter'
|
|
" Whitespace handling
|
|
Plug 'ntpeters/vim-better-whitespace'
|
|
" Mustache/handlebars support
|
|
Plug 'mustache/vim-mustache-handlebars'
|
|
" Insert-mode tab completion
|
|
Plug 'ervandew/supertab'
|
|
" elm-lang Support
|
|
Plug 'elmcast/elm-vim'
|
|
" ranger support
|
|
Plug 'francoiscabrol/ranger.vim'
|
|
" Delimited file querying
|
|
Plug 'mechatroner/rainbow_csv'
|
|
" fzf setup
|
|
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
|
|
" vue2
|
|
Plug 'posva/vim-vue'
|
|
" golang support
|
|
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
|
|
" elixir
|
|
Plug 'elixir-editors/vim-elixir'
|
|
" the silver searcher
|
|
Plug 'mileszs/ack.vim'
|
|
" vimwiki
|
|
Plug 'vimwiki/vimwiki'
|
|
" typescript syntax highlighting
|
|
Plug 'leafgarland/typescript-vim'
|
|
call plug#end()
|
|
|
|
set t_Co=256
|
|
|
|
if filereadable(expand("~/.vimrc_background"))
|
|
let base16colorspace=256
|
|
source ~/.vimrc_background
|
|
endif
|
|
set background=dark
|
|
|
|
let g:airline_theme='base16'
|
|
|
|
" default encoding
|
|
set encoding=utf-8
|
|
|
|
" Enable file type detection and do language-dependent indenting.
|
|
filetype plugin indent on
|
|
|
|
" turn on syntax highlighting
|
|
syntax enable
|
|
syntax on
|
|
|
|
" turn on line numbering
|
|
set number
|
|
|
|
" make backspace behave as expected
|
|
set backspace=indent,eol,start
|
|
|
|
" set up whitespace substitutions
|
|
set list
|
|
set listchars=tab:▸\ ,extends:>,precedes:<,trail:~
|
|
|
|
" highlight current line
|
|
set cursorline
|
|
|
|
" show matching ({[]})
|
|
set showmatch
|
|
|
|
" show a vertical bar on right side of editor
|
|
set colorcolumn=80
|
|
|
|
highlight LineNr ctermfg=DarkGrey
|
|
|
|
" number of visual spaces per tab
|
|
set tabstop=4
|
|
|
|
" number of spaces in tab when editing
|
|
set softtabstop=4
|
|
|
|
" tabs are spaces
|
|
set expandtab
|
|
|
|
" self-explanatory
|
|
set autoindent
|
|
"
|
|
" show airline all the time
|
|
set laststatus=2
|
|
|
|
" set up central backups
|
|
set backup
|
|
set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
|
|
set backupskip=/tmp/*,/private/tmp/*
|
|
set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
|
|
set writebackup
|
|
|
|
" change the mapleader from \ to ,
|
|
let mapleader=" "
|
|
|
|
" fzf config
|
|
map <leader><Tab> :FZF<CR>
|
|
|
|
" PEP8 formatting
|
|
au BufNewFile,BufRead *.py
|
|
\ set tabstop=4 |
|
|
\ set softtabstop=4 |
|
|
\ set shiftwidth=4 |
|
|
\ set textwidth=79 |
|
|
\ set expandtab |
|
|
\ set autoindent |
|
|
\ set fileformat=unix
|
|
|
|
" Everybody else
|
|
au BufNewFile,BufRead *.js,*.html,*.css
|
|
\ set tabstop=2 |
|
|
\ set softtabstop=2 |
|
|
\ set shiftwidth=2
|
|
|
|
" Stop the YAML madness
|
|
autocmd FileType yaml setl indentkeys-=<:>
|
|
|
|
" show open buffers in airline
|
|
let g:airline#extensions#tabline#enabled = 1
|
|
|
|
" show just the filename
|
|
let g:airline#extensions#tabline#fnamemod = ':t'
|
|
|
|
" cycle to next buffer
|
|
nmap <leader>l :bnext<CR>
|
|
|
|
" cycle to previous buffer
|
|
nmap <leader>h :bprevious<CR>
|
|
|
|
" flake8 config
|
|
let g:flake8_show_in_gutter = 1
|
|
let g:flake8_error_marker = 'EE'
|
|
let g:flake8_warning_marker = 'WW'
|
|
|
|
" Inform ack.vim that we are actually using the_silver_searcher
|
|
let g:ackprg = 'ag --vimgrep'
|
|
|
|
" vimwiki config
|
|
let g:vimwiki_list = [{'path': '$HOME/Dropbox/vimwiki/'}]
|
|
|
|
" netrw
|
|
let g:netrw_liststyle = 3 " tree view
|