dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit 14b9c6c366bbf494145100f8cba8cb8131f50330
parent abdb17f0f32eb2958cc03d660a02e5e78dc2d827
Author: Chris Bracken <chris@bracken.jp>
Date:   Tue, 14 May 2024 23:41:27 -0700

vim: make python indent non-conditional

Previously this was buried in with colour scheme settings behind an
`if &t_Co > 2` check, but has nothing to do with colour schemes.

Diffstat:
M.config/nvim/init.vim | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim @@ -65,6 +65,9 @@ set shiftwidth=2 " Number of spaces for each step of autoindent. set softtabstop=2 " Number of spaces per tab when editing. set expandtab " Insert spaces in place of tabs. +" Fix python's indent overrides. +au FileType python setl ts=2 sw=2 sts=2 et + " Configure tag file locations. set tags+=~/.local/tags/system.tags set tags+=~/.local/tags/cxx.tags @@ -98,9 +101,6 @@ if &t_Co > 2 au BufEnter,InsertLeave *.txt,*.md,*.wiki set textwidth=80 au BufEnter,InsertLeave *.java,*.m,*.mm set colorcolumn=100 au BufEnter,InsertLeave *.java,*.m,*.mm set textwidth=100 - - " Fix python's indent overrides. - au FileType python setl ts=2 sw=2 sts=2 et endif """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""