init.vim

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
set encoding=utf-8
scriptencoding utf-8

call plug#begin()
Plug 'scrooloose/nerdtree'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'itchyny/lightline.vim'
Plug 'tpope/vim-vividchalk'
Plug 'drowsysaturn/vivid.vim'
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'hynek/vim-python-pep8-indent'
Plug 'mhinz/vim-startify'
call plug#end()

set guifont=Hack
set clipboard=unnamedplus
set noshowmode
set colorcolumn=120
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.pyc,*.pyo,*/build/*,*egg-info*
set tw=0

colorscheme vividchalk
syntax on

let g:lightline = {
    \ 'colorscheme': 'jellybeans',
    \ 'component': {
    \   'filename': '%f',
    \   'readonly': '%{&filetype=="help"?"":&readonly?"":""}',
    \   'modified': '%{&filetype=="help"?"":&modified?"*":&modifiable?"":"-"}'
    \ },
    \ 'component_visible_condition': {
    \   'readonly': '(&filetype!="help"&& &readonly)',
    \   'modified': '(&filetype!="help"&&(&modified||!&modifiable))'
    \ },
    \ 'separator': { 'left': '', 'right': '' },
    \ 'subseparator': { 'left': '', 'right': '' }
    \ }

let g:ctrlp_cmd = 'CtrlPMixed'
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn|bzr)$,build'

let g:startify_change_to_vcs_root = 1
let g:startify_change_to_dir = 0
let g:startify_bookmarks = [ {'v': '~/.config/nvim/init.vim'}, {'z': '~/.zshrc'}, {'t': '~/.tmux.conf'} ]
let g:startify_list_order = [
    \ ['   Recent Project Files'],
    \ 'dir',
    \ ['   Recent Files'],
    \ 'files',
    \ ['   Bookmarks'],
    \ 'bookmarks',
    \ ['   Other'],
    \ ]

let mapleader = ","
map <Leader><space> :noh<return>