From 23a9e72b9ce6fc8016aba5f740a2fff59950e6b1 Mon Sep 17 00:00:00 2001 From: Fabio Gallonetto Date: Tue, 9 Apr 2013 17:23:15 +0100 Subject: [PATCH] Add numbers.vim to vundles.list numbers.vim is a plugin that allows for easy switch between absolute and relative line numbers. A convenient shortcut: ,tn (toggle numbers) is provided to switch between the two modes Fixes #276 --- README.md | 2 ++ vim/plugin/settings/yadr-numbers.vim | 1 + vim/vundles.vim | 1 + 3 files changed, 4 insertions(+) create mode 100644 vim/plugin/settings/yadr-numbers.vim diff --git a/README.md b/README.md index d413593e..a27fe45a 100644 --- a/README.md +++ b/README.md @@ -211,6 +211,8 @@ If you omit the key combo, you'll get a list of all the maps. You can do the sam * `Cmd-j` and `Cmd-k` to move up and down roughly by functions * `Ctrl-o` - Old cursor position - this is a standard mapping but very useful, so included here * `Ctrl-i` - opposite of Ctrl-O (again, this is standard) + * `,tn` - Toggles between absolute and relative line numbers + * `:NumbersEnable` - Enable automatic toggling between absolute (insert mode) and relative (normal mode) line numbers #### LustyJuggler diff --git a/vim/plugin/settings/yadr-numbers.vim b/vim/plugin/settings/yadr-numbers.vim new file mode 100644 index 00000000..396c666e --- /dev/null +++ b/vim/plugin/settings/yadr-numbers.vim @@ -0,0 +1 @@ +:nnoremap ,tn :NumbersToggle diff --git a/vim/vundles.vim b/vim/vundles.vim index 1645067c..7dcaa509 100644 --- a/vim/vundles.vim +++ b/vim/vundles.vim @@ -102,5 +102,6 @@ Bundle "airblade/vim-gitgutter.git" Bundle "bogado/file-line.git" Bundle "tpope/vim-rvm.git" Bundle "nelstrom/vim-visual-star-search" +Bundle "myusuf3/numbers.vim.git" "Filetype plugin indent on is required by vundle filetype plugin indent on