Comments (4)
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.
OK, I misunderstood. Thanks for clarifying how it should work!
from numbers.vim.
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.
Still an issue but only limited to neovim. Is it not supported?
from numbers.vim.
Related Issues (20)
- bad behavior after upgrading vim HOT 11
- Number Toggle on ^o HOT 2
- NERDTree aways show the line numbers HOT 2
- exclude buffergator but don't work
- Caused VIM to use 100% CPU when moving cursor on some files HOT 4
- Leave numbers visible in Insert Mode? HOT 2
- Extreme slowness on large files with Vim 7.4 on Ubuntu HOT 6
- leave a mark upon leaving HOT 3
- g:numbers_exclude not working for easybuffer in Vim 7.4
- NumbersToggle on Vim 7.4 hides numbers rather than toggles HOT 2
- Line number is not correctly showed when nerdtree has been set to 'autofocus'
- can not see what is the diff?
- Toggle in command mode? HOT 2
- NumbersToggle needs to be called twice if g:enable_numbers = 0
- Can't switch to non-relative line numbers
- Slowness still persistent even after regexpengine workaround HOT 5
- Cannot hide number in nvim terminal
- Hide line numbers for the QuickFix and Location windows?
- Toggling Numbers On/Off, Relative vs. Absolute
- Does not play nice in VSCode|VSCodium through the neovim extension
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from numbers.vim.