Giter Site home page Giter Site logo

Tabstop is 8 for LaTeX file about vim-sleuth HOT 4 CLOSED

3nt3 avatar 3nt3 commented on July 19, 2024
Tabstop is 8 for LaTeX file

from vim-sleuth.

Comments (4)

tpope avatar tpope commented on July 19, 2024 1

It works now. The default is customizable. It's not an absolute override if Sleuth detects something else. Try with an empty file.

Check :verbose Sleuth to see more information about why particular options are set.

from vim-sleuth.

tpope avatar tpope commented on July 19, 2024

Normally you can just set tabstop=8 in your vimrc and Sleuth will respect it. The only time it forces 8 is when you have a file that mixes spaces and tabs, for consistency. If this is happening to you, then you can fix the file to only use tabs, or use .editorconfig or a modeline to force it.

There's also an experimental option that may or may not help:

let g:sleuth_tex_defaults = 'tabstop=4'

from vim-sleuth.

Fau818 avatar Fau818 commented on July 19, 2024

I like this experimental option.
In my view, it would be nice if there was an option to customize the default value of tabstop.

But this experimental option doesn't work for me yet. So, when will this option become available?

from vim-sleuth.

3nt3 avatar 3nt3 commented on July 19, 2024
:setlocal noexpandtab           " from %                                                                               
:setlocal shiftwidth=0          " from %                                                           
:setlocal tabstop=8             " from %

when I don't set g:sleuth_tex_defaults, it just displays this.

from vim-sleuth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.