mirror of
https://github.com/notwa/rc
synced 2025-02-05 07:43:22 -08:00
add autocmds for oldschool forth "screen" files
This commit is contained in:
parent
44af28ca58
commit
831fd91862
1 changed files with 8 additions and 0 deletions
|
@ -216,6 +216,14 @@ if has('autocmd')
|
||||||
au FileType * setlocal fo-=c fo-=r fo-=o
|
au FileType * setlocal fo-=c fo-=r fo-=o
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
|
augroup forth
|
||||||
|
au!
|
||||||
|
" insert a newline every 64 bytes when reading
|
||||||
|
au! BufReadCmd blkfs,*.scr call setline('1', split(join(readfile(expand('<afile>')), ''), '\%65c\zs'))
|
||||||
|
" remove newlines when writing
|
||||||
|
au! BufWriteCmd blkfs,*.scr call writefile([join(getline('^', '$'), '')], expand('<afile>'))
|
||||||
|
augroup end
|
||||||
|
|
||||||
augroup nobells " good lord vim you are archaic
|
augroup nobells " good lord vim you are archaic
|
||||||
au!
|
au!
|
||||||
au GUIEnter * set vb t_vb=
|
au GUIEnter * set vb t_vb=
|
||||||
|
|
Loading…
Add table
Reference in a new issue