Set spelling locally, set autoread

Set spell locally for .md files and set json locally for .ipynb files -
instead of globally for each.

Set autoread to reload files when changed (e.g. cronjobs or git)

Add .swp files to .gitignore
This commit is contained in:
Edward Litherland-Smith 2021-01-07 08:59:23 +00:00
parent bcebc3f79e
commit 5f326d48bd
2 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
.netrwhist .netrwhist
*.swp

5
vimrc
View file

@ -9,9 +9,10 @@ set listchars=trail:.,tab:>_
set list set list
set wrap set wrap
set linebreak set linebreak
set autoread
au BufRead,BufNewFile *.ipynb set filetype=json au BufRead,BufNewFile *.ipynb setlocal filetype=json
au BufRead,BufNewFile *.md set spell au BufRead,BufNewFile *.md setlocal spell
syntax on syntax on
if &diff if &diff
syntax off syntax off