mirror of https://github.com/ericonr/dotfiles.git
Change neovim tab width to 3 spaces.
I did this for two reasons: * I will try to use tabs for new code I write, due to a blog post I read regarding the added difficulty for people with sight issues when using files indented with spaces. It's an accessibility thing. * 3 space tab width means it won't be confused with spaces, because no one who indents with spaces should use 3 spaces for that. It's also a pretty comfortable size.
This commit is contained in:
parent
5a1ea835d3
commit
b70d12a94a
|
@ -27,9 +27,21 @@ set smartcase
|
|||
|
||||
" APPEARANCE
|
||||
|
||||
" Tab width
|
||||
set tabstop=3
|
||||
set shiftwidth=3
|
||||
|
||||
" Show relative line numbers
|
||||
set number rnu
|
||||
|
||||
" Pretty color scheme that works well with the one chosen for alacritty
|
||||
colorscheme slate
|
||||
|
||||
|
||||
" FUNCTIONS
|
||||
|
||||
" Sets up the editor for spaces instead of tabs - WIP
|
||||
" https://stackoverflow.com/questions/1878974/redefine-tab-as-4-spaces
|
||||
fu! SpaceTabs()
|
||||
:set tabstop=8 softtabstop=0 expandtab shiftwidth=2 smarttab
|
||||
endfunction
|
||||
|
|
Loading…
Reference in New Issue