aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--plugin/vim-options.vim8
2 files changed, 7 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index ce3ed24..b335ce1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
.vimcache
+.mypy_cache
diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim
index 1bdf36d..69853d0 100644
--- a/plugin/vim-options.vim
+++ b/plugin/vim-options.vim
@@ -205,6 +205,9 @@ noremap <Up> <C-w>k
noremap <Down> <C-w>j
noremap <Left> <C-w>h
noremap <Right> <C-w>l
+" Faster next functions
+nnoremap [q :cprev<CR>
+nnoremap ]q :cnext<CR>
"-----------------------------------------------------------------------------------------------------------------------
@@ -430,8 +433,9 @@ endif
if !empty(glob($EditorDir.'plugged/ranger.vim/plugin/ranger.vim'))
let g:ranger_map_keys = 0
nnoremap <leader>n :Ranger<CR>
- nnoremap [q :cprev<CR>
- nnoremap ]q :cnext<CR>
+ " Ranger plugin disables relative numbering
+ " (https://github.com/francoiscabrol/ranger.vim/issues/29)
+ nnoremap <leader>ds :set rnu<CR>
endif
"-----------------------------------------------------------------------------------------------------------------------