aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2017-11-26 10:18:42 -0700
committerCody Hiar <codyfh@gmail.com>2017-11-26 10:18:42 -0700
commit04ed6196c4463502e929766e3fd7dc7c4a27a5df (patch)
tree3e719d53ba6e625eabeeabe8a4bbb7787c0eaffa
parent9d45016e567ff48148366f47ff993588779025c9 (diff)
Ignore mypy, adding quickfix for ranger rnu issues
-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
"-----------------------------------------------------------------------------------------------------------------------