Vim: enable spellchec, synced w/ aspell dictionary

This commit is contained in:
MorganGeek 2020-07-23 10:50:07 +02:00
parent 27221b850f
commit 4a78a5e9fa
4 changed files with 15 additions and 0 deletions

View File

@ -273,3 +273,11 @@ yamllint
yml yml
zsh zsh
zshrc zshrc
POWERLEVEL9K
dir
robbyrussell
Powerlevel10k
#ithub
#ithub/!
#ithub
github/!

View File

@ -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.prepl" "$HOME/.aspell.fr.prepl"
ln -snf "$HOME/Code/dotfiles/dot_aspell.fr.pws" "$HOME/.aspell.fr.pws" 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 # Other symbolic links + Install Docker Desktop for Mac
case "$(uname -s)" in case "$(uname -s)" in
Darwin) Darwin)

View File

@ -5,5 +5,7 @@ vim +PluginInstall +qall >/dev/null
#https://github.com/ycm-core/YouCompleteMe/blob/master/README.md#installation #https://github.com/ycm-core/YouCompleteMe/blob/master/README.md#installation
cd "$HOME/.vim/bundle/YouCompleteMe" || exit cd "$HOME/.vim/bundle/YouCompleteMe" || exit
./install.py --all ./install.py --all
mkdir -p "$HOME/.vim/spell"
cd "$HOME" || exit cd "$HOME" || exit
git clone https://github.com/dbeniamine/cheat.sh-vim.git ~/.vim/cheat.sh-vim git clone https://github.com/dbeniamine/cheat.sh-vim.git ~/.vim/cheat.sh-vim

View File

@ -180,6 +180,8 @@ set tabstop=4
set shiftwidth=4 set shiftwidth=4
" On pressing tab, insert 4 spaces " On pressing tab, insert 4 spaces
set expandtab set expandtab
" Enable spell checking
set spell
" Default colors for highlighting search result " Default colors for highlighting search result
hi Search ctermfg=White hi Search ctermfg=White