diff --git a/.vimrc b/.vimrc index 555b0f7c21d7a8c1280fee92d90188c9097280c0..fcf7b1110820bc53e139eb911e1e1954e4a40840 100644 --- a/.vimrc +++ b/.vimrc @@ -275,7 +275,7 @@ if exists('g:vscode') else " ordinary neovim " Grammatical checking - Plug 'rhysd/vim-grammarous' + "Plug 'rhysd/vim-grammarous' " Rust-lang support Plug 'rust-lang/rust.vim' @@ -1260,28 +1260,6 @@ imap <c-x><c-l> <plug>(fzf-complete-line) if has('conceal') set conceallevel=2 concealcursor=niv endif -" -" -" Grammarous remaps -" -"This above sample, when present in your .vimrc will create five handy additional normal-mode commands namely -"gn (next error), gp (previous error), gr (ignore the error), gf (fix automatically with suggested correction), -"gR (ignore all errors with same rule). These are available only to the current buffer and only when -":GrammarousCheck is active, and will disappear as soon as :GrammarousReset is used. -let g:grammarous#hooks = {} -function! g:grammarous#hooks.on_check(errs) abort - nmap <buffer>gn <Plug>(grammarous-move-to-next-error) - nmap <buffer>gp <Plug>(grammarous-move-to-previous-error) - nmap <buffer>gr <Plug>(grammarous-move-to-info-window)r - nmap <buffer>gas f <Plug>(grammarous-move-to-info-window)f - nmap <buffer>gR <Plug>(grammarous-move-to-info-window)R -endfunction -function! g:grammarous#hooks.on_reset(errs) abort - nunmap <buffer>gn - nunmap <buffer>gp - nunmap <buffer>gr - nunmap <buffer>gf - nunmap <buffer>gR endfunction