Skip to content

Instantly share code, notes, and snippets.

@mrmechko
Created October 31, 2018 21:02
Show Gist options
  • Save mrmechko/50090812cc3db3f52134d938f309c380 to your computer and use it in GitHub Desktop.
Save mrmechko/50090812cc3db3f52134d938f309c380 to your computer and use it in GitHub Desktop.
" ensure that plug is installed
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin()
" Plug 'https://gist.github.com/952560a43601cd9898f1.git',
" \ { 'as': 'xxx', 'do': 'mkdir -p plugin; cp -f *.vim plugin/' }
" Language
Plug 'vim-syntastic/syntastic'
Plug 'bfredl/nvim-ipy'
" Interface
Plug 'powerline/fonts'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
" Plug 'flazz/vim-colorschemes'
" Plug 'airblade/vim-gitgutter'
" Formatting
Plug 'nathanaelkane/vim-indent-guides'
" Functions
Plug 'tpope/vim-eunuch'
Plug 'tpope/vim-fugitive'
Plug 'andrewradev/splitjoin.vim'
Plug 'scrooloose/nerdtree'
Plug 'tpope/vim-sensible'
Plug 'ryanoasis/vim-devicons'
call plug#end()
" settings
set encoding=UTF-8
set t_Co=256
let g:airline_powerline_fonts = 1
let g:airline_theme='violet'
" colorscheme molokai
set hidden
set nocompatible
let g:CtrlSpaceStatuslineFunction = "airline#extensions#ctrlspace#statusline()"
let g:jedi#completions_command = "√"
" Swapfiles out of the way
set backupdir=~/.vim/backup//
set directory=~/.vim/swap//
set undodir=~/.vim/undo//
set noswapfile
" IPy bindings
let g:nvim_ipy_perform_mappings = 0
nmap <silent> <c-s> <Plug>(IPy-Run)
vmap <silent> <c-s> <Plug>(IPy-Run)
nmap <silent> <tab> <Plug>(IPy-RunCell)
nmap <silent> <leader><tab> <Plug>(IPy-RunAll)
map <silent> <c-c> <Plug>(IPy-Interrupt)
imap <c-f> <Plug>(IPy-Complete)
map <silent> <leader>? <Plug>(IPy-WordObjInfo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment