summaryrefslogtreecommitdiff
path: root/nvimrc
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-06-07 23:38:36 +0100
committerUrbain Vaes <urbain@vaes.uk>2015-06-07 23:38:36 +0100
commit6be2e5fbbb2991723a0c56f92a4a83b8860e7562 (patch)
tree9e7f082e8d556e1823bd3c068f202e5793302424 /nvimrc
parentc53aa7ade263a59aab221c83ebcd297aa628c2dd (diff)
Sort repositories in install.sh
Diffstat (limited to 'nvimrc')
-rw-r--r--nvimrc17
1 files changed, 13 insertions, 4 deletions
diff --git a/nvimrc b/nvimrc
index e087bbc..a94c9ad 100644
--- a/nvimrc
+++ b/nvimrc
@@ -39,6 +39,7 @@ Plug 'ton/vim-bufsurf'
Plug 'tpope/vim-abolish', { 'for' : 'tex' }
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-fugitive'
+Plug 'tpope/vim-git'
Plug 'tpope/vim-obsession'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-sensible'
@@ -185,7 +186,7 @@ set hidden
silent! colo seoul256
highlight Comment cterm=italic
set t_ZH=
-set t_ZR=[23m
+set t_ZR=
"" Maps
@@ -239,9 +240,6 @@ nnoremap <Return> o<Esc>
nnoremap <s-Return> O<Esc>
nnoremap >f :FZF ~ <cr>
-" Substitute shadowed by vim-sneak
-nnoremap _ s
-
" Git
nnoremap <Leader>gs :Gstatus<cr>
nnoremap <Leader>gr :Gread<cr>
@@ -283,6 +281,17 @@ augroup nvimrc
\ endif
augroup END
+"" Taken from Junegunn Chong
+nnoremap <silent> <Leader>C :call fzf#run({
+\ 'source':
+\ map(split(globpath(&rtp, "colors/*.vim"), "\n"),
+\ "substitute(fnamemodify(v:val, ':t'), '\\..\\{-}$', '', '')"),
+\ 'sink': 'colo',
+\ 'options': '+m',
+\ 'left': 30,
+\ 'launcher': 'iterm2-launcher 20 30 %s'
+\ })<CR>
+
"" Experimental
let g:notes_directories = ['~/dotfiles/notes']
" Idea: instant download colorscheme