nvim: formatting (tabs to spaces)
This commit is contained in:
parent
90001bef15
commit
61fee7bacd
1 changed files with 10 additions and 10 deletions
|
@ -148,16 +148,16 @@ vim.cmd [[
|
||||||
-- Edit *.bin files as binaries rather than text files (if your file isn't a .bin,
|
-- Edit *.bin files as binaries rather than text files (if your file isn't a .bin,
|
||||||
-- make a symlink that points to it with the .bin extension and edit the symlink ;)
|
-- make a symlink that points to it with the .bin extension and edit the symlink ;)
|
||||||
vim.cmd [[
|
vim.cmd [[
|
||||||
augroup Binary
|
augroup Binary
|
||||||
au!
|
au!
|
||||||
au BufReadPre *.bin let &bin=1
|
au BufReadPre *.bin let &bin=1
|
||||||
au BufReadPost *.bin if &bin | %!xxd
|
au BufReadPost *.bin if &bin | %!xxd
|
||||||
au BufReadPost *.bin set ft=xxd | endif
|
au BufReadPost *.bin set ft=xxd | endif
|
||||||
au BufWritePre *.bin if &bin | %!xxd -r
|
au BufWritePre *.bin if &bin | %!xxd -r
|
||||||
au BufWritePre *.bin endif
|
au BufWritePre *.bin endif
|
||||||
au BufWritePost *.bin if &bin | %!xxd
|
au BufWritePost *.bin if &bin | %!xxd
|
||||||
au BufWritePost *.bin set nomod | endif
|
au BufWritePost *.bin set nomod | endif
|
||||||
augroup END
|
augroup END
|
||||||
]]
|
]]
|
||||||
|
|
||||||
-- 'Visual At' plugin (https://github.com/stoeffel/.dotfiles/blob/master/vim/visual-at.vim)
|
-- 'Visual At' plugin (https://github.com/stoeffel/.dotfiles/blob/master/vim/visual-at.vim)
|
||||||
|
|
Loading…
Add table
Reference in a new issue