Skip to content

Instantly share code, notes, and snippets.

@jecs
Last active November 13, 2023 16:43
Show Gist options
  • Save jecs/34ed41274919ceca77533d112ca065e9 to your computer and use it in GitHub Desktop.
Save jecs/34ed41274919ceca77533d112ca065e9 to your computer and use it in GitHub Desktop.
Disable tab-to-spaces when using julia-vim

Option

The option that lets you achieve this is let g:julia_set_indentation=0. You can place this in your .vimrc. You can find this option using :h julia-vim at the very bottom of the help page. Note that this goes against the Julia community's style guidelines.

Sample .vimrc

I use vim-plug to manage my addons. If you use another addon manager, then you might have to edit the beginning to suit your needs.

call plug#begin()
Plug 'JuliaEditorSupport/julia-vim'
call plug#end()

let g:julia_set_indentation=0
set autoindent
set noexpandtab
set tabstop=4
set shiftwidth=4
set softtabstop=4 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment