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:
parent
bcebc3f79e
commit
5f326d48bd
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
.netrwhist
|
||||
*.swp
|
||||
|
|
5
vimrc
5
vimrc
|
@ -9,9 +9,10 @@ set listchars=trail:.,tab:>_
|
|||
set list
|
||||
set wrap
|
||||
set linebreak
|
||||
set autoread
|
||||
|
||||
au BufRead,BufNewFile *.ipynb set filetype=json
|
||||
au BufRead,BufNewFile *.md set spell
|
||||
au BufRead,BufNewFile *.ipynb setlocal filetype=json
|
||||
au BufRead,BufNewFile *.md setlocal spell
|
||||
syntax on
|
||||
if &diff
|
||||
syntax off
|
||||
|
|
Loading…
Reference in a new issue