2020-12-16 11:59:29 +00:00
|
|
|
unlet! skip_defaults_vim
|
|
|
|
source $VIMRUNTIME/defaults.vim
|
|
|
|
|
2020-12-16 08:18:32 +00:00
|
|
|
colorscheme slate
|
2020-12-15 21:12:08 +00:00
|
|
|
set laststatus=2
|
|
|
|
|
2020-12-15 21:01:32 +00:00
|
|
|
set number
|
2020-12-18 09:18:50 +00:00
|
|
|
set listchars=trail:.,tab:>_
|
2020-12-16 09:04:07 +00:00
|
|
|
set list
|
2020-12-21 08:52:45 +00:00
|
|
|
set wrap
|
|
|
|
set linebreak
|
2021-01-07 08:59:23 +00:00
|
|
|
set autoread
|
2020-12-15 21:01:32 +00:00
|
|
|
|
2021-01-07 08:59:23 +00:00
|
|
|
au BufRead,BufNewFile *.ipynb setlocal filetype=json
|
|
|
|
au BufRead,BufNewFile *.md setlocal spell
|
2020-12-15 21:01:32 +00:00
|
|
|
syntax on
|
|
|
|
if &diff
|
2020-12-16 16:32:50 +00:00
|
|
|
syntax off
|
2020-12-15 21:01:32 +00:00
|
|
|
endif
|
|
|
|
|
2020-12-16 16:32:50 +00:00
|
|
|
set expandtab
|
2020-12-15 21:01:32 +00:00
|
|
|
set autoindent
|
|
|
|
set smartindent
|
2020-12-16 16:32:50 +00:00
|
|
|
filetype plugin indent on
|
2020-12-15 21:01:32 +00:00
|
|
|
|
|
|
|
noremap <C-J> <C-W><C-J>
|
|
|
|
noremap <C-K> <C-W><C-K>
|
|
|
|
noremap <C-L> <C-W><C-L>
|
|
|
|
noremap <C-H> <C-W><C-H>
|
|
|
|
|
2021-01-04 09:08:22 +00:00
|
|
|
imap jk <Esc>
|
|
|
|
|
2020-12-15 21:01:32 +00:00
|
|
|
set splitbelow
|
|
|
|
set splitright
|
2020-12-18 10:38:50 +00:00
|
|
|
|
|
|
|
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
|