From 4a78a5e9fa82297915181ef028e76131428ac5a8 Mon Sep 17 00:00:00 2001 From: MorganGeek Date: Thu, 23 Jul 2020 10:50:07 +0200 Subject: [PATCH] Vim: enable spellchec, synced w/ aspell dictionary --- dot_aspell.en.pws | 8 ++++++++ dot_scripts/symbolic_links.sh | 3 +++ dot_scripts/vimdeps.sh | 2 ++ dot_vimrc | 2 ++ 4 files changed, 15 insertions(+) diff --git a/dot_aspell.en.pws b/dot_aspell.en.pws index 1d11aaa..71f3307 100644 --- a/dot_aspell.en.pws +++ b/dot_aspell.en.pws @@ -273,3 +273,11 @@ yamllint yml zsh zshrc +POWERLEVEL9K +dir +robbyrussell +Powerlevel10k +#ithub +#ithub/! +#ithub +github/! diff --git a/dot_scripts/symbolic_links.sh b/dot_scripts/symbolic_links.sh index a02cc3b..157beee 100755 --- a/dot_scripts/symbolic_links.sh +++ b/dot_scripts/symbolic_links.sh @@ -43,6 +43,9 @@ ln -snf "$HOME/Code/dotfiles/dot_aspell.en.pws" "$HOME/.aspell.en.pws" ln -snf "$HOME/Code/dotfiles/dot_aspell.fr.prepl" "$HOME/.aspell.fr.prepl" ln -snf "$HOME/Code/dotfiles/dot_aspell.fr.pws" "$HOME/.aspell.fr.pws" +# Vim spellcheck will be based on aspell :-) +ln -snf "$HOME/Code/dotfiles/dot_aspell.en.pws" "$HOME/.vim/spell/en.utf-8.add" + # Other symbolic links + Install Docker Desktop for Mac case "$(uname -s)" in Darwin) diff --git a/dot_scripts/vimdeps.sh b/dot_scripts/vimdeps.sh index c9f6906..9ef30e5 100755 --- a/dot_scripts/vimdeps.sh +++ b/dot_scripts/vimdeps.sh @@ -5,5 +5,7 @@ vim +PluginInstall +qall >/dev/null #https://github.com/ycm-core/YouCompleteMe/blob/master/README.md#installation cd "$HOME/.vim/bundle/YouCompleteMe" || exit ./install.py --all +mkdir -p "$HOME/.vim/spell" + cd "$HOME" || exit git clone https://github.com/dbeniamine/cheat.sh-vim.git ~/.vim/cheat.sh-vim diff --git a/dot_vimrc b/dot_vimrc index b1892a7..52850ed 100644 --- a/dot_vimrc +++ b/dot_vimrc @@ -180,6 +180,8 @@ set tabstop=4 set shiftwidth=4 " On pressing tab, insert 4 spaces set expandtab +" Enable spell checking +set spell " Default colors for highlighting search result hi Search ctermfg=White