78 lines
2.2 KiB
VimL
78 lines
2.2 KiB
VimL
unlet! skip_defaults_vim
|
|
source $VIMRUNTIME/defaults.vim
|
|
|
|
colorscheme slate
|
|
set laststatus=2
|
|
|
|
set number
|
|
set listchars=trail:.,tab:>_
|
|
set list
|
|
set wrap
|
|
set linebreak
|
|
set autoread
|
|
|
|
au BufRead,BufNewFile *.ipynb setlocal filetype=json
|
|
au BufRead,BufNewFile *.md setlocal spell
|
|
syntax on
|
|
if &diff
|
|
syntax off
|
|
endif
|
|
|
|
set expandtab
|
|
set autoindent
|
|
set smartindent
|
|
filetype plugin indent on
|
|
|
|
imap jk <Esc>
|
|
command Bd b# | bd #
|
|
command! BufOnly silent! execute "%bd|e#|bd#"
|
|
|
|
set splitbelow
|
|
set splitright
|
|
|
|
let g:netrw_list_hide= '\(^\|\s\s\)\zs\.\S\+'
|
|
|
|
let g:python_highlight_all = 1
|
|
|
|
let g:ale_completion_enabled = 1
|
|
set omnifunc=ale#completion#OmniFunc
|
|
|
|
let g:lightline = {}
|
|
|
|
let g:lightline.component_expand = {
|
|
\ 'linter_checking': 'lightline#ale#checking',
|
|
\ 'linter_infos': 'lightline#ale#infos',
|
|
\ 'linter_warnings': 'lightline#ale#warnings',
|
|
\ 'linter_errors': 'lightline#ale#errors',
|
|
\ 'linter_ok': 'lightline#ale#ok',
|
|
\ }
|
|
|
|
let g:lightline.component_type = {
|
|
\ 'linter_checking': 'right',
|
|
\ 'linter_infos': 'right',
|
|
\ 'linter_warnings': 'warning',
|
|
\ 'linter_errors': 'error',
|
|
\ 'linter_ok': 'right',
|
|
\ }
|
|
|
|
let g:lightline.component_function = {
|
|
\ 'gitbranch': 'FugitiveHead'
|
|
\ }
|
|
|
|
|
|
let g:lightline.active = {
|
|
\ 'left': [ [ 'mode', 'paste' ],
|
|
\ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ],
|
|
\ 'right': [ [ 'linter_checking', 'linter_errors', 'linter_warnings', 'linter_infos', 'linter_ok', 'lineinfo' ],
|
|
\ [ 'percent' ],
|
|
\ [ 'fileformat', 'fileencoding', 'filetype' ] ]
|
|
\ }
|
|
set noshowmode
|
|
|
|
" Load all plugins now.
|
|
" Plugins need to be added to runtimepath before helptags can be generated.
|
|
packloadall
|
|
" Load all of the helptags now, after plugins have been loaded.
|
|
" All messages and errors will be ignored.
|
|
silent! helptags ALL
|