From 81102c13a889a265c8eb6844503c1ebe257ce516 Mon Sep 17 00:00:00 2001 From: Tuowen Zhao Date: Sat, 3 Sep 2016 10:45:51 -0600 Subject: add grammarous --- .gitmodules | 6 ++++++ bundle/grammarous | 1 + bundle/unite | 1 + config/grammarous.vim | 10 ++++++++++ 4 files changed, 18 insertions(+) create mode 160000 bundle/grammarous create mode 160000 bundle/unite create mode 100644 config/grammarous.vim diff --git a/.gitmodules b/.gitmodules index 5d45ce7..f90e52b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -25,3 +25,9 @@ [submodule "bundle/clang"] path = bundle/clang url = https://github.com/Rip-Rip/clang_complete.git +[submodule "bundle/grammarous"] + path = bundle/grammarous + url = https://github.com/rhysd/vim-grammarous.git +[submodule "bundle/unite"] + path = bundle/unite + url = https://github.com/Shougo/unite.vim.git diff --git a/bundle/grammarous b/bundle/grammarous new file mode 160000 index 0000000..ba20e8c --- /dev/null +++ b/bundle/grammarous @@ -0,0 +1 @@ +Subproject commit ba20e8c8a77a140e79481664c8581b568585c903 diff --git a/bundle/unite b/bundle/unite new file mode 160000 index 0000000..db619c2 --- /dev/null +++ b/bundle/unite @@ -0,0 +1 @@ +Subproject commit db619c208bd0f75f0e5ee3db2ed029cd52020585 diff --git a/config/grammarous.vim b/config/grammarous.vim new file mode 100644 index 0000000..ef23119 --- /dev/null +++ b/config/grammarous.vim @@ -0,0 +1,10 @@ +" Search only in comment section for certain filestypes +let g:grammarous#default_comments_only_filetypes = { + \ '*' : 1, 'help' : 0, 'markdown' : 0, + \ } + +" Disable some troublesome error types +let g:grammarous#disabled_rules = { + \ '*' : ['WHITESPACE_RULE', 'EN_QUOTES'], + \ 'help' : ['WHITESPACE_RULE', 'EN_QUOTES', 'SENTENCE_WHITESPACE', 'UPPERCASE_SENTENCE_START'], + \ } -- cgit v1.2.3-70-g09d2