Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
vim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dotfiles
vim
Commits
93fb88d2
Commit
93fb88d2
authored
2 years ago
by
Henrik Tjäder
Browse files
Options
Downloads
Patches
Plain Diff
Disable and remove grammarous
parent
1b9bae2b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.vimrc
+1
-23
1 addition, 23 deletions
.vimrc
with
1 addition
and
23 deletions
.vimrc
+
1
−
23
View file @
93fb88d2
...
@@ -275,7 +275,7 @@ if exists('g:vscode')
...
@@ -275,7 +275,7 @@ if exists('g:vscode')
else
else
" ordinary neovim
" ordinary neovim
" Grammatical checking
" Grammatical checking
Plug
'rhysd/vim-grammarous'
"
Plug 'rhysd/vim-grammarous'
" Rust-lang support
" Rust-lang support
Plug
'rust-lang/rust.vim'
Plug
'rust-lang/rust.vim'
...
@@ -1260,28 +1260,6 @@ imap <c-x><c-l> <plug>(fzf-complete-line)
...
@@ -1260,28 +1260,6 @@ imap <c-x><c-l> <plug>(fzf-complete-line)
if
has
(
'conceal'
)
if
has
(
'conceal'
)
set
conceallevel
=
2
concealcursor
=
niv
set
conceallevel
=
2
concealcursor
=
niv
endif
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
endfunction
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment