better default C-k in vim

This commit is contained in:
Barak Michener 2020-11-04 21:35:21 +00:00
parent 28a0928b83
commit c59e88722c

7
.vimrc
View file

@ -132,7 +132,7 @@ Plug 'sjbach/lusty'
Plug 'mhinz/vim-signify' Plug 'mhinz/vim-signify'
Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes' Plug 'vim-airline/vim-airline-themes'
Plug 'junegunn/fzf' Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim' Plug 'junegunn/fzf.vim'
Plug 'bling/vim-bufferline' Plug 'bling/vim-bufferline'
Plug 'majutsushi/tagbar' Plug 'majutsushi/tagbar'
@ -813,14 +813,13 @@ call denite#custom#var('grep', {
nnoremap <silent> <Leader>g :<C-u>Denite -buffer-name=search-buffer grep<CR> nnoremap <silent> <Leader>g :<C-u>Denite -buffer-name=search-buffer grep<CR>
nnoremap <silent> <Leader>aa :<C-u>RipGrep!<CR> nnoremap <silent> <Leader>aa :<C-u>RipGrep!<CR>
"nnoremap <C-l> :<C-u>Files! `git rev-parse --show-toplevel`<CR> "nnoremap <C-l> :<C-u>Files! `git rev-parse --show-toplevel`<CR>
nnoremap <C-l> :<C-u>GFiles<CR> nnoremap <C-k> :<C-u>GFiles<CR>
nnoremap <C-k> :<C-u>Buffers<CR>
" For C++ -- A is a great plugin which allows you to jump from the c file to the " For C++ -- A is a great plugin which allows you to jump from the c file to the
" header and vice-versa. Mneumonic here is headerheader. " header and vice-versa. Mneumonic here is headerheader.
nnoremap <Leader>hh :A<CR> nnoremap <Leader>hh :A<CR>
" CommandT is useful, but if I'm juggling lots of buffers, limit it to another " CommandT is useful, but if I'm juggling lots of buffers, limit it to another
" one I have open (instead of standard <Leader>t). " one I have open (instead of standard <Leader>t).
nnoremap <silent> <Leader>o :CtrlPBuffer<CR> nnoremap <silent> <Leader>o :<C-u>Buffers<CR>
"nnoremap <Leader>j <C-^> "nnoremap <Leader>j <C-^>
"nnoremap <Leader>p :PTW "nnoremap <Leader>p :PTW
nnoremap <Leader>p :LustyJugglePrevious<CR> nnoremap <Leader>p :LustyJugglePrevious<CR>