mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 15:18:01 +00:00
Add Absolute And Relative Line Numbers as a vim til.
This commit is contained in:
@@ -148,6 +148,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
|
||||
|
||||
### vim
|
||||
|
||||
- [Absolute And Relative Line Numbers](vim/absolute-and-relative-line-numbers.md)
|
||||
- [Alternate Files With vim-rails](vim/alternate-files-with-vim-rails.md)
|
||||
- [The Black Hole Register](vim/the-black-hole-register.md)
|
||||
- [Buffer Time Travel](vim/buffer-time-travel.md)
|
||||
|
||||
7
vim/absolute-and-relative-line-numbers.md
Normal file
7
vim/absolute-and-relative-line-numbers.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# Absolute And Relative Line Numbers
|
||||
|
||||
By default, vim uses absolute line numbering. This can be turned off with `set nonumber` or more concisely `set nonu`. Turn it back on with `set nu`. Get more details at `:h number`.
|
||||
|
||||
Vim also supports relative line numbers. If you'd rather use relative line numbers, first turn off absolute line numbers (`set nonu`) and then turn on relative line numbers with `set relativenumber`. Shave off some characters with `set rnu`. As you might expect, you can turn off relative numbering with `set nornu`.
|
||||
|
||||
See `:h relativenumber` for more details.
|
||||
Reference in New Issue
Block a user