Created
June 2, 2017 07:29
-
-
Save XayOn/36790eaea8f3fd9128e28e2814fe128f to your computer and use it in GitHub Desktop.
My VIM8 configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Bundle Plugins | |
set nocompatible | |
set hidden | |
set encoding=utf-8 | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
set rtp+=~/.fzf | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
" VCS | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'airblade/vim-gitgutter' | |
" Grep and FZF | |
Plugin 'mhinz/vim-grepper' | |
Plugin 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | |
" Python | |
Plugin 'w0rp/ale' | |
Plugin 'davidhalter/jedi-vim' | |
Plugin 'ivanov/vim-ipython' | |
Plugin 'jmcantrell/vim-virtualenv' | |
" Nerdtree + git + tabs | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'Xuyuanp/nerdtree-git-plugin' | |
Plugin 'jistr/vim-nerdtree-tabs' | |
" Tagbar | |
Plugin 'majutsushi/tagbar' | |
" Vim test + vimux as dependency | |
Plugin 'janko-m/vim-test' | |
Plugin 'benmills/vimux' | |
Plugin 'edkolev/tmuxline.vim' | |
" Distraction free | |
Plugin 'junegunn/goyo.vim' | |
" Theme | |
Plugin 'jdkanani/vim-material-theme' | |
Plugin 'kristijanhusak/vim-hybrid-material' | |
" Lightline | |
Plugin 'itchyny/lightline.vim' | |
call vundle#end() | |
let g:lightline = { | |
\ 'colorscheme': 'jellybeans', | |
\ 'component': { | |
\ 'readonly': '%{&readonly?"":""}', | |
\ }, | |
\ 'separator': { 'left': '', 'right': '' }, | |
\ 'subseparator': { 'left': '', 'right': '' } | |
\ } | |
filetype plugin indent on | |
" Theme config | |
let g:enable_bold_font = 1 | |
set laststatus=2 | |
set bg=dark | |
colorscheme hybrid_material | |
" Basic vim configuration | |
set mouse=a | |
set expandtab | |
set wrap | |
set linebreak | |
set showbreak=>\ \ \ | |
let mapleader="," | |
set syntax=auto | |
syntax on | |
" Remove extra spaces | |
autocmd BufWritePre * :%s/\s\+$//e | |
" Standard python configuration | |
autocmd FileType python set ts=4 | |
highlight OverLength ctermbg=red ctermfg=white guibg=#592929 | |
autocmd FileType python match OverLength /\%79v.\+/ | |
autocmd FileType python autocmd BufWritePre * :%s/\s\+$//e | |
" Useful when working with big cucumber files. | |
autocmd FileType cucumber match none | |
autocmd FileType cucumber set nowrap | |
" Basic mappings | |
nmap <F5> :NERDTreeTabsToggle<CR> " f5 Nerdtree | |
nmap <F8> :TagbarToggle<CR> " f8 for tagbar | |
" vim test, set bindings, configure to use tmux and pytest + vagrant | |
nmap <silent> <leader>t :TestNearest<CR> | |
nmap <silent> <leader>T :TestFile<CR> | |
nmap <silent> <leader>a :TestSuite<CR> | |
nmap <silent> <leader>l :TestLast<CR> | |
nmap <silent> <leader>g :TestVisit<CR> | |
let test#strategy = "vimux" | |
let test#python#runner = 'pytest' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment