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
|
.netrwhist
|
||||||
|
*.swp
|
||||||
|
|
5
vimrc
5
vimrc
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue