GithubHelp home page GithubHelp logo

Comments (4)

myusuf3 avatar myusuf3 commented on September 26, 2024

That is the purpose of the plugin. It will always keep you in those modes when you are switching between insert and normal modes.

That being said you can always toggle whenever you need to but when you switch again it will go back to what line numbering should be for that state. If you simple just want a ToggleCommand just add this your .vimrc

" use Ctrl+L to toggle the line number counting method
    function! g:ToggleNuMode()
            if(&rnu == 1)
                set nu
        else
            set rnu
        endif
    endfunc
    nnoremap <C-L> :call g:ToggleNuMode()<cr>

Intent of the plugin is to ease code movement in normal mode by providing relative numbers and insert mode to allow ease line identification for use in stack traces and collaboration.

from numbers.vim.

panozzaj avatar panozzaj commented on September 26, 2024

OK, I misunderstood. Thanks for clarifying how it should work!

from numbers.vim.

N4M3Z avatar N4M3Z commented on September 26, 2024

I have the opposite problem in neovim, it does not go back to relative when I return from insert mode to normal mode. Is this expected?

from numbers.vim.

N4M3Z avatar N4M3Z commented on September 26, 2024

Still an issue but only limited to neovim. Is it not supported?

from numbers.vim.

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.