summaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-05-09 13:17:01 +0200
committerFlorian Pritz <bluewind@xinu.at>2018-05-09 13:17:01 +0200
commit0d0810e84dbab21fa55a8d2a947eb63d1352f873 (patch)
tree03d0a285b19eb33c9af4ce4b1143a8464b490e7b /.vimrc
parentbe0d9059f77799720891481975b9124e5de2992c (diff)
downloaddotfiles-0d0810e84dbab21fa55a8d2a947eb63d1352f873.tar.gz
dotfiles-0d0810e84dbab21fa55a8d2a947eb63d1352f873.tar.xz
vim: Add vim-grammarous
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc17
1 files changed, 17 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index fb044b7..62f2ba6 100644
--- a/.vimrc
+++ b/.vimrc
@@ -113,6 +113,8 @@ Plugin 'editorconfig/editorconfig-vim'
Plugin 'thaerkh/vim-workspace'
+Plugin 'rhysd/vim-grammarous'
+
call vundle#end()
syntax on
filetype plugin indent on
@@ -242,6 +244,21 @@ let g:phpqa_codesniffer_autorun = 0
let g:phpqa_codecoverage_autorun = 0
let g:phpqa_codecoverage_file = "code-coverage-report.xml"
+" vim-grammarous
+let g:grammarous#languagetool_cmd = 'languagetool'
+let g:grammarous#show_first_error = 1
+
+let g:grammarous#hooks = {}
+function! g:grammarous#hooks.on_check(errs) abort
+ nmap <buffer><C-n> <Plug>(grammarous-move-to-next-error)
+ nmap <buffer><C-p> <Plug>(grammarous-move-to-previous-error)
+endfunction
+
+function! g:grammarous#hooks.on_reset(errs) abort
+ nunmap <buffer><C-n>
+ nunmap <buffer><C-p>
+endfunction
+
" unite
let g:unite_source_history_yank_enable = 1
call unite#filters#matcher_default#use(['matcher_fuzzy'])