Created
January 4, 2020 06:07
-
-
Save ccolorado/6bd4772a74c8d39738ce22a5872a15dd to your computer and use it in GitHub Desktop.
Minimal .vimrc for vim-note and denite conflict
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
Bundle 'pedrosans/vim-misc' | |
Bundle 'pedrosans/vim-notes' | |
Bundle 'Shougo/denite.nvim' | |
if v:version > 8 | |
Bundle 'roxma/nvim-yarp' | |
Bundle 'roxma/vim-hug-neovim-rpc' | |
endif | |
filetype plugin indent on | |
autocmd FileType denite call s:denite_my_settings() | |
function! s:denite_my_settings() abort | |
nnoremap <silent><buffer><expr> <CR> denite#do_map('do_action') | |
nnoremap <silent><buffer><expr> d denite#do_map('do_action', 'delete') | |
nnoremap <silent><buffer><expr> p denite#do_map('do_action', 'preview') | |
nnoremap <silent><buffer><expr> q denite#do_map('quit') | |
nnoremap <silent><buffer><expr> i denite#do_map('open_filter_buffer') | |
nnoremap <silent><buffer><expr> <Space> denite#do_map('toggle_select').'j' | |
endfunction | |
nmap <space> :Denite -start-filter buffer file/rec<CR> | |
"== vim-notes config | |
"let g:notes_directories = ['~/Notes'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment