Skip to content

Commit f0f1f03

Browse files
committed
Merge branch 'release/2020.06.19'
2 parents 78a681f + 25b75da commit f0f1f03

File tree

3 files changed

+38
-28
lines changed

3 files changed

+38
-28
lines changed

.vimrc

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Plugin 'itchyny/lightline.vim'
2020
" git integration
2121
Plugin 'tpope/vim-fugitive'
2222
" syntax check
23-
Plugin 'vim-syntastic/syntastic'
23+
Plugin 'dense-analysis/ale'
2424
" auto generates surround pairs
2525
Plugin 'jiangmiao/auto-pairs'
2626

@@ -51,10 +51,7 @@ set shiftwidth=4 " shift lines by 4 spaces for indent
5151
set showmatch " show the matching part of the pair for [] {} & ()
5252
set softtabstop=4 " for easier backspacing the soft tabs
5353
set tabstop=4 " set tabs to have 4 spaces
54-
set tws=20x0 " set terminal windows size
55-
56-
highlight cursorcolumn cterm=NONE ctermbg=darkgrey ctermfg=white
57-
\ guibg=darkgrey guifg=white
54+
set tws=15x0 " set terminal windows size
5855

5956
" split layout
6057
set splitbelow
@@ -72,13 +69,25 @@ set foldlevel=99
7269
" enable folding with spacebar
7370
nnoremap <space> za
7471
72+
" highlight unneccessary whitespaces
73+
highlight BadWhitespace ctermbg=yellow guibg=yellow
74+
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match
75+
\ BadWhitespace /\s\+$/
76+
77+
" hide colorcolumn in non-editor windows
78+
au FileType fugitive,help,qf setlocal nonumber colorcolumn=
79+
au BufEnter * if &ft == '' | setlocal nonumber colorcolumn= | endif
80+
81+
" enable all Python syntax highlighting features
82+
let python_highlight_all=1
83+
7584
" plugin settings - NERDTree
7685
map <C-\> :NERDTreeToggle<CR>
7786
" open NERDTree automatically when vim starts up with no file specified
7887
autocmd StdinReadPre * let s:std_in=1
7988
autocmd VimEnter * if argc() == 0 && ! exists("s:std_in") | NERDTree | endif
8089
" close vim if the only window left open is NERDTree
81-
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree")
90+
autocmd BufEnter * if (winnr("$") == 1 && exists("b:NERDTree")
8291
\ && b:NERDTree.isTabTree()) | q | endif
8392
let NERDTreeShowHidden=1 " show hidden file by default
8493
let NERDTreeIgnore=['.git$[[dir]]', '.swp', '.DS_Store']
@@ -103,22 +112,8 @@ endif
103112
let g:ycm_semantic_triggers={ 'python': [ 're!\w{1}' ] }
104113
let g:ycm_autoclose_preview_window_after_completion=1
105114

106-
" plugin settings - syntasatic
107-
set statusline+=%#warningmsg#
108-
set statusline+=%{SyntasticStatuslineFlag()}
109-
set statusline+=%*
110-
111-
let g:syntastic_always_populate_loc_list=1
112-
let g:syntastic_auto_loc_list=1
113-
let g:syntastic_check_on_open=1
114-
let g:syntastic_check_on_wq=0
115-
let g:syntastic_python_checkers=['pylint']
116-
117-
" enable all Python syntax highlighting features
118-
let python_highlight_all=1
119-
120-
" highlight unneccessary whitespaces
121-
highlight BadWhitespace ctermbg=yellow guibg=yellow
122-
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match
123-
\ BadWhitespace /\s\+$/
124-
115+
" plugin settings - ale
116+
let g:ale_linters={ 'python': ['pylint'] }
117+
let g:ale_fixers={ 'python': ['yapf'] }
118+
let g:ale_open_list=1
119+
let g:ale_linters_explicit=1

CHANGELOG.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

66
## [Unreleased]
77

8+
## [2020.06.19]
9+
### Added
10+
- Vim plugin `dense-analysis/ale` (a.k.a. ALE) for much faster linting.
11+
- Auto hide `colorcolumn` and line numbers on quick fix, help, fugitive, and
12+
YouCompleeteMe windows.
13+
14+
### Changed
15+
- Color of vim `cursorcolumn` to use the colour defined in `colorscheme`.
16+
- Terminal size in vim reduced to `15x0`.
17+
18+
### Removed
19+
- Vim plugin `syntasic` as it slows down the save/load time to seconds even on
20+
a top spec 16" MacBook Pro.
21+
822
## [2020.06.18]
923
### Added
1024
- `iputils-ping` package in dockerfiles to allow ping.
@@ -24,6 +38,7 @@ found` by pinning the `pipenv` version to `2018.11.26`.
2438
- `.vimrc` configured for Python developemnt.
2539
- Ubuntu 20.04 based dockerfiles to build images for Python 3.7 & 3.8 variants.
2640

27-
[Unreleased]: https://github.com/devtography/pyvim/compare/2020.06.18...HEAD
41+
[Unreleased]: https://github.com/devtography/pyvim/compare/2020.06.19...HEAD
42+
[2020.06.19]: https://github.com/devtography/pyvim/compare/2020.06.18...2020.06.19
2843
[2020.06.18]: https://github.com/devtography/pyvim/compare/2020.06.17...2020.06.18
2944
[2020.06.17]: https://github.com/devtography/pyvim/releases/tag/2020.06.17

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Included Vim plugins:
1414
- [SimpylFold] - cold folding for Python
1515
- [lightline.vim] - statusline/tabline
1616
- [fugitive.vim] - git integration
17-
- [syntastic] - syntax check
17+
- [Asynchronous Lint Engine] \(a.k.a. ALE) - linting
1818
- [auto-pairs] - auto generates surround pairs
1919

2020
pyvim is good for remote Python development with iPad via `ssh`/`mosh` as
@@ -57,7 +57,7 @@ pyvim is licensed under the [Apache License, Version 2.0](LICENSE.md).
5757
[SimpylFold]: https://github.com/tmhedberg/SimpylFold
5858
[lightline.vim]: https://github.com/itchyny/lightline.vim
5959
[fugitive.vim]: https://github.com/tpope/vim-fugitive
60-
[syntastic]: https://github.com/vim-syntastic/syntastic
60+
[Asynchronous Lint Engine]: https://github.com/dense-analysis/ale
6161
[auto-pairs]: https://github.com/jiangmiao/auto-pairs
6262
[Blink]: https://blink.sh
6363
[Vundle]: https://github.com/VundleVim/Vundle.vim

0 commit comments

Comments
 (0)