Created
February 5, 2018 21:29
-
-
Save polikeiji/4ae440e9d24a5a0b6ed449fde4ffffd0 to your computer and use it in GitHub Desktop.
init.vim
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
set incsearch | |
set hlsearch | |
set ts=4 sw=4 sts=0 | |
set et | |
let mapleader="\<SPACE>" | |
filetype plugin indent on | |
syntax enable | |
set termguicolors | |
set background=dark | |
colorscheme solarized | |
set backspace=indent,eol,start | |
set clipboard+=unnamedplus | |
set number | |
set encoding=utf-8 | |
set fencs=utf-8,iso-2022-jp,sjis,euc-jp | |
let g:python3_host_prog = '/Users/keiji/miniconda2/envs/me/bin/python' | |
au TermOpen * setlocal nonumber norelativenumber | |
tnoremap <silent> <ESC> <C-\><C-n> | |
let g:ale_fixers = { | |
\'javascript': ['eslint'], | |
\} | |
nmap <Leader>f <Plug>(ale_fix) | |
let g:ale_fix_on_save = 1 | |
let g:deoplete#enable_at_startup = 1 | |
function! StrTrim(txt) | |
return substitute(a:txt, '^\n*\s*\(.\{-}\)\n*\s*$', '\1', '') | |
endfunction | |
let g:flow_path = StrTrim(system('PATH=$(npm bin):$PATH && which flow')) | |
if g:flow_path != 'flow not found' | |
let g:deoplete#sources#flow#flow_bin = g:flow_path | |
endif | |
call plug#begin() | |
Plug 'w0rp/ale' | |
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | |
Plug 'steelsojka/deoplete-flow' | |
Plug 'zchee/deoplete-jedi' | |
call plug#end() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment