Added my crystal defaults

This commit is contained in:
Serĉanto de Scio 2020-01-22 01:12:26 +10:00
parent e45674d60a
commit c2981fd319
Signed by: sercanto
GPG key ID: A4122FF3971B6865

View file

@ -74,9 +74,6 @@ vim_configurable.customize {
autocmd BufWritePost,FileWritePost *.gpg u autocmd BufWritePost,FileWritePost *.gpg u
augroup END augroup END
" Add files ending in md to the list of files recognised as markdown:
autocmd BufNewFile,BufFilePre,BufRead *.md set filetype=markdown
" My Markdown environment " My Markdown environment
function! MarkdownSettings() function! MarkdownSettings()
set textwidth=79 set textwidth=79
@ -119,6 +116,16 @@ vim_configurable.customize {
endfunction endfunction
autocmd BufNewFile,BufFilePre,BufRead *.nix :call NixSettings() autocmd BufNewFile,BufFilePre,BufRead *.nix :call NixSettings()
" Settings for my Crystal environment:
function! CrystalSettings()
set tabstop=2
set shiftwidth=2
set expandtab
set textwidth=79
set filetype=crystal
endfunction
autocmd BufNewFile,BufFilePre,BufRead *.cr :call CrystalSettings()
" Settings for my Golang environment: " Settings for my Golang environment:
function! GoSettings() function! GoSettings()
set tabstop=7 set tabstop=7