Skip to content

Commit d19667c

Browse files
committed
Squashed commit of the following:
commit 27ad0d0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Mar 2 16:02:27 2020 -0300 Bump rake in /sources_non_forked/vim-multiple-cursors (amix#565) Bumps [rake](https://github.com/ruby/rake) from 10.4.2 to 12.3.3. - [Release notes](https://github.com/ruby/rake/releases) - [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc) - [Commits](ruby/rake@v10.4.2...v12.3.3) Signed-off-by: dependabot[bot] <support@github.com> commit dbcdace Author: Amir <amix@doist.com> Date: Tue Jan 28 23:07:36 2020 -0300 Updated plugins commit 46195e4 Author: Amir <amix@doist.com> Date: Tue Jan 7 13:45:07 2020 +0100 Updated plugins commit b56966e Author: amix <amix@doist.com> Date: Mon Dec 30 14:28:38 2019 +0100 Updated plugins commit cb57890 Author: amix <amix@doist.com> Date: Thu Dec 12 23:01:41 2019 +0100 Updated plugins commit 901655e Author: amix <amix@doist.com> Date: Sun Dec 1 20:19:59 2019 +0100 Removed the Python 3 refernce, should just be the default Python commit f951c24 Merge: cf9b500 18d9698 Author: amix <amix@doist.com> Date: Sun Dec 1 20:19:24 2019 +0100 Merge branch 'master' of github.com:amix/vimrc commit 18d9698 Author: Dessalines <dessalines@users.noreply.github.com> Date: Sun Dec 1 11:19:19 2019 -0800 Adding update plugins to update section of readme. (amix#549) commit cf9b500 Author: amix <amix@doist.com> Date: Sun Dec 1 20:18:45 2019 +0100 Updated plugins commit 010fe68 Author: amix <amix@doist.com> Date: Sat Nov 30 21:00:26 2019 +0100 Fixed the path of vim-markdown in the readme file commit 5d11b23 Author: amix <amix@doist.com> Date: Sat Nov 30 18:51:57 2019 +0100 Fix amix#453 commit e4b4276 Author: amix <amix@doist.com> Date: Sat Nov 30 18:47:48 2019 +0100 Disable folding for Markdown It's not super useful. Ref: amix#445 commit 9c54d95 Author: amix <amix@doist.com> Date: Sat Nov 30 13:06:56 2019 +0100 Updated plugins commit 57ba28a Merge: 44bc76b c37e4c8 Author: amix <amix@doist.com> Date: Sat Nov 30 13:02:27 2019 +0100 Merge branch 'master' of github.com:amix/vimrc commit 44bc76b Author: amix <amix@doist.com> Date: Sat Nov 30 13:01:31 2019 +0100 Removed snipmate-snippets It's redundant as vim-snippets is already included. Fixes amix#489 commit c37e4c8 Author: Ma Chao <814640709@qq.com> Date: Sat Nov 30 19:57:52 2019 +0800 feat(:W):avoid warning such as the buffer was changed (amix#547) commit 9234352 Author: amix <amix@doist.com> Date: Sat Nov 30 12:54:13 2019 +0100 Improved the mappings documentation Especially for plugins. Fixes amix#493 commit c30a27a Author: Amir Salihefendic <amix@doist.com> Date: Mon Nov 18 09:42:59 2019 +0100 Removed comfortable-motion.vim It's isn't worth the hacks and issues. Ref: amix#470 commit fe5d99f Author: Amir Salihefendic <amix@doist.com> Date: Sun Nov 17 19:33:08 2019 +0100 Fixed amix#496 commit 8c6f4bd Author: Amir Salihefendic <amix@doist.com> Date: Sun Nov 17 16:45:35 2019 +0100 Removed vim-go commit 3b7a7de Author: Amir Salihefendic <amix@doist.com> Date: Sat Nov 16 20:49:59 2019 +0100 Fixed: amix#518 commit b58d3ab Author: Amir Salihefendic <amix@doist.com> Date: Sat Nov 16 20:26:13 2019 +0100 Remove vim-go It's too heavy and it also seems to have some issues. Gophers that use Go can manually install it Fixed amix#537 commit 2f70f3a Author: Amir Salihefendic <amix@doist.com> Date: Sat Nov 16 20:22:13 2019 +0100 Fixed amix#541 commit 966965a Author: Amir Salihefendic <amix@doist.com> Date: Sat Nov 16 20:16:20 2019 +0100 Fixed amix#546 This is done by removing custom FileType indent options, and using `vim-python-pep8-indent` plugin. commit 97e3db7 Author: Amir Salihefendic <amix@doist.com> Date: Sat Nov 16 18:43:18 2019 +0100 Added and updated some plugins Added: vim-ruby, typescript-vim, vim-javascript Updated: rust-vim commit ff0ede6 Merge: 01890d8 d8d4f89 Author: Amir Salihefendic <amix@doist.com> Date: Sat Nov 16 18:41:26 2019 +0100 Merge branch 'master' of github.com:amix/vimrc commit 01890d8 Author: Amir Salihefendic <amix@doist.com> Date: Sat Nov 16 18:40:53 2019 +0100 Added gist-vim commit d8d4f89 Author: maxb <max-b@users.noreply.github.com> Date: Sat Nov 16 08:14:34 2019 -0800 Update rust.vim from deprecated repo to rust-lang repo and add to update_plugins.py (amix#410) commit e1a383d Author: William17 <superbill2012@qq.com> Date: Sun Nov 17 00:13:30 2019 +0800 fix(basic.vim): change `command W` to `command! W` (amix#412) `source $MYVIMRC` will fail since command `W` exists. Add `!` so the command would be redefined commit b7f5078 Author: alphaCTzo7G <29691914+alphaCTzo7G@users.noreply.github.com> Date: Sat Nov 16 08:11:12 2019 -0800 Updates README to add comfortable motion plugin (amix#432) commit f33d38b Merge: 7d78cd9 ce77db5 Author: Amir Salihefendic <amix@doist.com> Date: Sat Nov 16 17:08:30 2019 +0100 Merge branch 'master' of github.com:amix/vimrc commit ce77db5 Author: Rahuλ Dé <lispyclouds@users.noreply.github.com> Date: Sat Nov 16 17:08:22 2019 +0100 Fix autoreload file from external change. (amix#451) - Adds au FocusGained,BufEnter * checktime to actually trigger the reload. - set autoread on its own isnt enough. commit 600b709 Author: forevernull <forevernull@163.com> Date: Sun Nov 17 00:06:47 2019 +0800 ALE commands not working (amix#463) ALE requires NeoVim >= 0.2.0 or Vim 8 with +timers +job +channel. commit 316f2f8 Author: Jakub Rozenbajger <thequetran@outlook.com> Date: Sat Nov 16 17:06:23 2019 +0100 Change permission of install scripts to execute (amix#468) commit 7d78cd9 Author: Amir Salihefendic <amix@doist.com> Date: Sat Nov 16 17:02:45 2019 +0100 Removed vim-isort commit b2c3dd0 Author: Luigi Perotti <perottilds@gmail.com> Date: Sat Nov 16 13:00:14 2019 -0300 Fixes typo (amix#507) commit 8f7be9b Author: Geezus42 <Geezuslucifer@gmail.com> Date: Sat Nov 16 09:59:55 2019 -0600 removed dupe Lightline setting (amix#509) The Lightline colorscheme setting was being set twice. commit e620d9d Author: demokn <demo.knyang@gmail.com> Date: Sat Nov 16 23:57:25 2019 +0800 Fix guifont config format in gtk2 & linux, see also amix#436 (amix#511) commit 538ee9c Author: 1una <1una@pm.me> Date: Sat Nov 16 23:30:52 2019 +0800 fixed a spelling mistake in basic.vim (amix#523) replaced `et.c` with `etc.` in line 166. commit d551d7b Author: aquiire <aquire@outlook.com> Date: Sat Nov 16 20:59:12 2019 +0530 remove additional height (amix#540) why? May be there's a reason anyway in case you missed it. commit 72bdaba Author: Amir Salihefendic <amix@doist.com> Date: Sat Nov 16 16:28:42 2019 +0100 Updated plugins commit 96e10ed Author: Amir Salihefendic <amix@doist.com> Date: Fri Aug 23 10:02:26 2019 +0200 Added vim-lastplace commit 3aefdbd Author: Amir Salihefendic <amix@doist.com> Date: Thu Aug 22 17:36:17 2019 +0200 Updated plugins commit 6711ae6 Author: Amir Salihefendic <amix@doist.com> Date: Thu Aug 22 17:34:32 2019 +0200 Make sure that enter is never overriden in the quickfix window commit 5439d30 Merge: fae0b73 95d2b08 Author: Amir Salihefendic <amix@doist.com> Date: Mon May 20 11:54:03 2019 +0200 Merge branch 'master' of github.com:amix/vimrc commit fae0b73 Author: Amir Salihefendic <amix@doist.com> Date: Fri May 17 16:09:13 2019 +0200 Updated plugins commit 95d2b08 Author: Amir Salihefendic <amix@doist.com> Date: Fri Apr 19 10:55:47 2019 +0200 Typo fix Thanks @rchrdchn commit a224edb Author: Amir Salihefendic <amix@doist.com> Date: Fri Apr 19 10:33:56 2019 +0200 Added a small note about Doist commit 5a2572d Author: Amir Salihefendic <amix@doist.com> Date: Wed Mar 27 16:08:56 2019 +0100 Updated plugins commit bf7b598 Author: Amir Salihefendic <amix@doist.com> Date: Mon Mar 11 17:39:30 2019 -0300 Added missing commits commit f50b214 Author: Amir Salihefendic <amix@doist.com> Date: Fri Mar 8 08:04:56 2019 -0300 Updated plugins
1 parent 6ad3c5e commit d19667c

File tree

1,678 files changed

+41547
-32907
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,678 files changed

+41547
-32907
lines changed

README.md

Lines changed: 80 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ Just do a git rebase!
6464

6565
cd ~/.vim_runtime
6666
git pull --rebase
67+
python update_plugins.py
6768

6869

6970
## Some screenshots
@@ -97,14 +98,15 @@ I recommend reading the docs of these plugins to understand them better. Each pl
9798
* [open_file_under_cursor.vim](https://github.com/amix/open_file_under_cursor.vim): Open file under cursor when pressing `gf`
9899
* [pathogen.vim](https://github.com/tpope/vim-pathogen): Manage your vim runtimepath
99100
* [snipmate.vim](https://github.com/garbas/vim-snipmate): snipmate.vim aims to be a concise vim script that implements some of TextMate's snippets features in Vim
100-
* [ale](https://github.com/w0rp/ale): Syntax and lint checking for vim (async)
101+
* [ale](https://github.com/w0rp/ale): Syntax and lint checking for vim (ALE requires NeoVim >= 0.2.0 or Vim 8 with +timers +job +channel)
101102
* [vim-commentary](https://github.com/tpope/vim-commentary): Comment stuff out. Use `gcc` to comment out a line (takes a count), `gc` to comment out the target of a motion. `gcu` uncomments a set of adjacent commented lines.
102103
* [vim-expand-region](https://github.com/terryma/vim-expand-region): Allows you to visually select increasingly larger regions of text using the same key combination
103104
* [vim-fugitive](https://github.com/tpope/vim-fugitive): A Git wrapper so awesome, it should be illegal
104105
* [vim-indent-object](https://github.com/michaeljsmith/vim-indent-object): Defines a new text object representing lines of code at the same indent level. Useful for python/vim scripts
105106
* [vim-multiple-cursors](https://github.com/terryma/vim-multiple-cursors): Sublime Text style multiple selections for Vim, CTRL+N is remapped to CTRL+S (due to YankRing)
106107
* [vim-yankstack](https://github.com/maxbrunsfeld/vim-yankstack): Maintains a history of previous yanks, changes and deletes
107108
* [vim-zenroom2](https://github.com/amix/vim-zenroom2) Remove all clutter and focus only on the essential. Similar to iA Writer or Write Room
109+
* [gist-vim](https://github.com/mattn/gist-vim) Easily create gists from Vim using the `:Gist` command
108110

109111

110112
## Included color schemes
@@ -121,9 +123,13 @@ I recommend reading the docs of these plugins to understand them better. Each pl
121123
* [vim-coffee-script](https://github.com/kchmck/vim-coffee-script)
122124
* [vim-less](https://github.com/groenewege/vim-less)
123125
* [vim-bundle-mako](https://github.com/sophacles/vim-bundle-mako)
124-
* [vim-markdown](https://github.com/tpope/vim-markdown)
126+
* [vim-markdown](https://github.com/plasticboy/vim-markdown)
125127
* [nginx.vim](https://github.com/vim-scripts/nginx.vim): Highlights configuration files for nginx
126-
* [vim-go](https://github.com/fatih/vim-go)
128+
* [rust.vim](https://github.com/rust-lang/rust.vim)
129+
* [vim-ruby](https://github.com/vim-ruby/vim-ruby)
130+
* [typescript-vim](https://github.com/leafgarland/typescript-vim)
131+
* [vim-javascript](https://github.com/pangloss/vim-javascript)
132+
* [vim-python-pep8-indent](https://github.com/Vimjas/vim-python-pep8-indent)
127133

128134

129135
## How to include your own stuff?
@@ -145,31 +151,6 @@ You can also install your plugins, for instance, via pathogen you can install [v
145151
The [leader](http://learnvimscriptthehardway.stevelosh.com/chapters/06.html#leader) is `,`, so whenever you see `<leader>` it means `,`.
146152

147153

148-
### Plugin related mappings
149-
150-
Open [bufexplorer](https://github.com/vim-scripts/bufexplorer.zip) to see and manage the current buffers (`<leader>o`):
151-
152-
map <leader>o :BufExplorer<cr>
153-
154-
Open [MRU.vim](https://github.com/vim-scripts/mru.vim) to see the recently open files (`<leader>f`):
155-
156-
map <leader>f :MRU<CR>
157-
158-
Open [ctrlp.vim](https://github.com/kien/ctrlp.vim) plugin to quickly find a file or a buffer (`<leader>j` or `<ctrl>f`):
159-
160-
let g:ctrlp_map = '<c-f>'
161-
162-
[NERD Tree](https://github.com/scrooloose/nerdtree) mappings:
163-
164-
map <leader>nn :NERDTreeToggle<cr>
165-
map <leader>nb :NERDTreeFromBookmark
166-
map <leader>nf :NERDTreeFind<cr>
167-
168-
[goyo.vim](https://github.com/junegunn/goyo.vim) and [vim-zenroom2](https://github.com/amix/vim-zenroom2) lets you only focus on one thing at a time. It removes all the distractions and centers the content. It has a special look when editing Markdown, reStructuredText and textfiles. It only has one mapping. (`<leader>z`)
169-
170-
map <leader>z :Goyo<cr>
171-
172-
173154
### Normal mode mappings
174155

175156
Fast saving of a buffer (`<leader>w`):
@@ -179,7 +160,7 @@ Fast saving of a buffer (`<leader>w`):
179160
Map `<Space>` to `/` (search) and `<Ctrl>+<Space>` to `?` (backwards search):
180161

181162
map <space> /
182-
map <c-space> ?
163+
map <C-space> ?
183164
map <silent> <leader><cr> :noh<cr>
184165

185166
Disable highlights when you press `<leader><cr>`:
@@ -210,7 +191,7 @@ Useful mappings for managing tabs:
210191

211192
" Opens a new tab with the current buffer's path
212193
" Super useful when editing files in the same directory
213-
map <leader>te :tabedit <c-r>=expand("%:p:h")<cr>/
194+
map <leader>te :tabedit <C-r>=expand("%:p:h")<cr>/
214195

215196
Switch [CWD](http://vim.wikia.com/wiki/Set_working_directory_to_the_current_file) to the directory of the open buffer:
216197

@@ -268,7 +249,7 @@ Quickly insert parenthesis/brackets/etc.:
268249

269250
Insert the current date and time (useful for timestamps):
270251

271-
iab xdate <c-r>=strftime("%d/%m/%y %H:%M:%S")<cr>
252+
iab xdate <C-r>=strftime("%d/%m/%y %H:%M:%S")<cr>
272253

273254

274255
### Command line mappings
@@ -291,6 +272,67 @@ Write the file as sudo (works only on Unix). Super useful when you open a file a
291272
:W
292273

293274

275+
### Plugin related mappings
276+
277+
Open [bufexplorer](https://github.com/vim-scripts/bufexplorer.zip) to see and manage the current buffers (`<leader>o`):
278+
279+
map <leader>o :BufExplorer<cr>
280+
281+
Open [MRU.vim](https://github.com/vim-scripts/mru.vim) to see the recently open files (`<leader>f`):
282+
283+
map <leader>f :MRU<CR>
284+
285+
Open [ctrlp.vim](https://github.com/kien/ctrlp.vim) plugin to quickly find a file or a buffer (`<leader>j` or `<ctrl>f`):
286+
287+
let g:ctrlp_map = '<C-f>'
288+
289+
[NERD Tree](https://github.com/scrooloose/nerdtree) mappings:
290+
291+
map <leader>nn :NERDTreeToggle<cr>
292+
map <leader>nb :NERDTreeFromBookmark
293+
map <leader>nf :NERDTreeFind<cr>
294+
295+
[goyo.vim](https://github.com/junegunn/goyo.vim) and [vim-zenroom2](https://github.com/amix/vim-zenroom2) lets you only focus on one thing at a time. It removes all the distractions and centers the content. It has a special look when editing Markdown, reStructuredText and textfiles. It only has one mapping. (`<leader>z`)
296+
297+
map <leader>z :Goyo<cr>
298+
299+
[vim-multiple-cursors](https://github.com/terryma/vim-multiple-cursors) mappings to manage multiple cursors at once:
300+
301+
let g:multi_cursor_start_word_key = '<C-s>'
302+
let g:multi_cursor_select_all_word_key = '<A-s>'
303+
let g:multi_cursor_start_key = 'g<C-s>'
304+
let g:multi_cursor_select_all_key = 'g<A-s>'
305+
let g:multi_cursor_next_key = '<C-s>'
306+
let g:multi_cursor_prev_key = '<C-p>'
307+
let g:multi_cursor_skip_key = '<C-x>'
308+
let g:multi_cursor_quit_key = '<Esc>'
309+
310+
[vim-yankstack](https://github.com/maxbrunsfeld/vim-yankstack) mappings to manage the kill-ring (clipboard):
311+
312+
nmap <C-p> <Plug>yankstack_substitute_older_paste
313+
nmap <C-n> <Plug>yankstack_substitute_newer_paste
314+
315+
[ctrl-p](https://github.com/ctrlpvim/ctrlp.vim) mappings to easily find and open a file, buffer, etc.:
316+
317+
let g:ctrlp_map = '<C-f>'
318+
map <leader>j :CtrlP<cr>
319+
map <C-b> :CtrlPBuffer<cr>
320+
321+
[vim-snipmate](https://github.com/garbas/vim-snipmate) mappings to autocomplete via snippets:
322+
323+
ino <C-j> <C-r>=snipMate#TriggerSnippet()<cr>
324+
snor <C-j> <esc>i<right><C-r>=snipMate#TriggerSnippet()<cr>
325+
326+
[vim-surround](https://github.com/tpope/vim-surround) mappings to easily surround a string with `_()` gettext annotation:
327+
328+
vmap Si S(i_<esc>f)
329+
au FileType mako vmap Si S"i${ _(<esc>2f"a) }<esc>
330+
331+
[ale](https://github.com/dense-analysis/ale) to easily go to the next Ale syntax/lint error:
332+
333+
nmap <silent> <leader>a <Plug>(ale_next_wrap)
334+
335+
294336
### Spell checking
295337
Pressing `<leader>ss` will toggle spell checking:
296338

@@ -328,3 +370,10 @@ Cope mappings:
328370
Just do following:
329371
* Remove `~/.vim_runtime`
330372
* Remove any lines that reference `.vim_runtime` in your `~/.vimrc`
373+
374+
375+
## Doist
376+
377+
Maintaining this Vim configuration isn't my day job. Daily I am the founder of [Doist](https://doist.com/). You could come and help us build the workplace of the future while living a balanced life (anywhere in the world 🌍🌎🌏).
378+
379+
PS: Using Vim isn't a requirement 😄

sources_forked/peaksea/colors/peaksea.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ elseif &background=='dark'
281281
hi ModeMsg guifg=fg guibg=#000080 gui=NONE
282282
hi VisualNOS guifg=fg guibg=#000080 gui=NONE
283283
hi SpecialKey guifg=#b0d0f0 guibg=NONE gui=NONE
284-
hi NonText guifg=#202020 guibg=#202020 gui=NONE
284+
hi NonText guifg=#6080f0 guibg=#101010 gui=NONE
285285
hi Directory guifg=#80c0e0 guibg=NONE gui=NONE
286286
hi ErrorMsg guifg=#d0d090 guibg=#800000 gui=NONE
287287
hi MoreMsg guifg=#c0e080 guibg=NONE gui=NONE

sources_non_forked/ale/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2016-2018, w0rp <devw0rp@gmail.com>
1+
Copyright (c) 2016-2019, w0rp <devw0rp@gmail.com>
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

sources_non_forked/ale/ale_linters/ada/gcc.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function! ale_linters#ada#gcc#GetCommand(buffer) abort
1212
" the .ali file may be created even if no code generation is attempted.
1313
" The output file name must match the source file name (except for the
1414
" extension), so here we cannot use the null file as output.
15-
let l:tmp_dir = fnamemodify(ale#engine#CreateDirectory(a:buffer), ':p')
15+
let l:tmp_dir = fnamemodify(ale#command#CreateDirectory(a:buffer), ':p')
1616
let l:out_file = l:tmp_dir . fnamemodify(bufname(a:buffer), ':t:r') . '.o'
1717

1818
" -gnatc: Check syntax and semantics only (no code generation attempted)
@@ -48,7 +48,7 @@ endfunction
4848
call ale#linter#Define('ada', {
4949
\ 'name': 'gcc',
5050
\ 'output_stream': 'stderr',
51-
\ 'executable_callback': ale#VarFunc('ada_gcc_executable'),
52-
\ 'command_callback': 'ale_linters#ada#gcc#GetCommand',
51+
\ 'executable': {b -> ale#Var(b, 'ada_gcc_executable')},
52+
\ 'command': function('ale_linters#ada#gcc#GetCommand'),
5353
\ 'callback': 'ale_linters#ada#gcc#Handle',
5454
\})

sources_non_forked/ale/ale_linters/ansible/ansible_lint.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ endfunction
5050
call ale#linter#Define('ansible', {
5151
\ 'name': 'ansible_lint',
5252
\ 'aliases': ['ansible', 'ansible-lint'],
53-
\ 'executable_callback': 'ale_linters#ansible#ansible_lint#GetExecutable',
53+
\ 'executable': function('ale_linters#ansible#ansible_lint#GetExecutable'),
5454
\ 'command': '%e -p %t',
5555
\ 'callback': 'ale_linters#ansible#ansible_lint#Handle',
5656
\})
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
" Author: Johannes Wienke <languitar@semipol.de>
22
" Description: alex for asciidoc files
33

4-
call ale#linter#Define('help', {
5-
\ 'name': 'alex',
6-
\ 'executable': 'alex',
7-
\ 'command': 'alex %s -t',
8-
\ 'output_stream': 'stderr',
9-
\ 'callback': 'ale#handlers#alex#Handle',
10-
\ 'lint_file': 1,
11-
\})
4+
call ale#handlers#alex#DefineLinter('asciidoc', '--text')
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
" Author: TANIGUCHI Masaya <ta2gch@gmail.com>
2+
" Description: textlint for AsciiDoc files
3+
4+
call ale#linter#Define('asciidoc', {
5+
\ 'name': 'textlint',
6+
\ 'executable': function('ale#handlers#textlint#GetExecutable'),
7+
\ 'command': function('ale#handlers#textlint#GetCommand'),
8+
\ 'callback': 'ale#handlers#textlint#HandleTextlintOutput',
9+
\})

sources_non_forked/ale/ale_linters/asm/gcc.vim

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ call ale#Set('asm_gcc_executable', 'gcc')
55
call ale#Set('asm_gcc_options', '-Wall')
66

77
function! ale_linters#asm#gcc#GetCommand(buffer) abort
8-
return '%e -x assembler -fsyntax-only '
8+
" `-o /dev/null` or `-o null` is needed to catch all errors,
9+
" -fsyntax-only doesn't catch everything.
10+
return '%e -x assembler'
11+
\ . ' -o ' . g:ale#util#nul_file
912
\ . '-iquote ' . ale#Escape(fnamemodify(bufname(a:buffer), ':p:h'))
1013
\ . ' ' . ale#Var(a:buffer, 'asm_gcc_options') . ' -'
1114
endfunction
@@ -28,7 +31,7 @@ endfunction
2831
call ale#linter#Define('asm', {
2932
\ 'name': 'gcc',
3033
\ 'output_stream': 'stderr',
31-
\ 'executable_callback': ale#VarFunc('asm_gcc_executable'),
32-
\ 'command_callback': 'ale_linters#asm#gcc#GetCommand',
34+
\ 'executable': {b -> ale#Var(b, 'asm_gcc_executable')},
35+
\ 'command': function('ale_linters#asm#gcc#GetCommand'),
3336
\ 'callback': 'ale_linters#asm#gcc#Handle',
3437
\})

sources_non_forked/ale/ale_linters/awk/gawk.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ endfunction
1515

1616
call ale#linter#Define('awk', {
1717
\ 'name': 'gawk',
18-
\ 'executable_callback': ale#VarFunc('awk_gawk_executable'),
19-
\ 'command_callback': 'ale_linters#awk#gawk#GetCommand',
18+
\ 'executable': {b -> ale#Var(b, 'awk_gawk_executable')},
19+
\ 'command': function('ale_linters#awk#gawk#GetCommand'),
2020
\ 'callback': 'ale#handlers#gawk#HandleGawkFormat',
2121
\ 'output_stream': 'both'
2222
\})

sources_non_forked/ale/ale_linters/bib/bibclean.vim

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ endfunction
1111

1212
function! ale_linters#bib#bibclean#get_type(str) abort
1313
if a:str is# '??'
14-
return 'E'
14+
return 'E'
1515
else
16-
return 'W'
16+
return 'W'
1717
endif
1818
endfunction
1919

@@ -36,39 +36,40 @@ function! ale_linters#bib#bibclean#Handle(buffer, lines) abort
3636
let l:msg = ''
3737

3838
for l:line in a:lines
39-
if empty(l:msg)
40-
let l:mlist = ale_linters#bib#bibclean#match_msg(l:line)
39+
if empty(l:msg)
40+
let l:mlist = ale_linters#bib#bibclean#match_msg(l:line)
4141

42-
if !empty(l:mlist)
43-
let l:msg = l:mlist[3]
44-
let l:type = ale_linters#bib#bibclean#get_type(l:mlist[1])
45-
endif
46-
else
47-
if l:type is# 'E'
48-
let l:mlist = ale_linters#bib#bibclean#match_entry(l:line)
49-
else
50-
let l:mlist = ale_linters#bib#bibclean#match_value(l:line)
51-
endif
42+
if !empty(l:mlist)
43+
let l:msg = l:mlist[3]
44+
let l:type = ale_linters#bib#bibclean#get_type(l:mlist[1])
45+
endif
46+
else
47+
if l:type is# 'E'
48+
let l:mlist = ale_linters#bib#bibclean#match_entry(l:line)
49+
else
50+
let l:mlist = ale_linters#bib#bibclean#match_value(l:line)
51+
endif
5252

53-
if !empty(l:mlist)
54-
call add(l:output, {
55-
\ 'lnum': l:mlist[1],
56-
\ 'col': l:mlist[2],
57-
\ 'text': l:msg,
58-
\ 'type': l:type
59-
\})
60-
let l:msg = ''
61-
endif
62-
endif
53+
if !empty(l:mlist)
54+
call add(l:output, {
55+
\ 'lnum': l:mlist[1],
56+
\ 'col': l:mlist[2],
57+
\ 'text': l:msg,
58+
\ 'type': l:type
59+
\})
60+
61+
let l:msg = ''
62+
endif
63+
endif
6364
endfor
6465

6566
return l:output
6667
endfunction
6768

6869
call ale#linter#Define('bib', {
6970
\ 'name': 'bibclean',
70-
\ 'executable_callback': ale#VarFunc('bib_bibclean_executable'),
71-
\ 'command_callback': 'ale_linters#bib#bibclean#GetCommand',
71+
\ 'executable': {b -> ale#Var(b, 'bib_bibclean_executable')},
72+
\ 'command': function('ale_linters#bib#bibclean#GetCommand'),
7273
\ 'output_stream': 'stderr',
7374
\ 'callback': 'ale_linters#bib#bibclean#Handle',
7475
\})

0 commit comments

Comments
 (0)