dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 8cf398f1028b2028b94e7cf260ea3b01a1fba669
parent f4ca0d6fb3a35228d0d1df9a45693c9e1b890466
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sun, 21 Apr 2019 12:27:39 +0200

Remove unused keybinds

Diffstat:
M.vim/plugin/keybinds.vim | 75---------------------------------------------------------------------------
1 file changed, 0 insertions(+), 75 deletions(-)

diff --git a/.vim/plugin/keybinds.vim b/.vim/plugin/keybinds.vim @@ -1,19 +1,11 @@ """ Keyboard shortcuts -" Save with ZX -nnoremap ZX :w<CR> - " use space instead of \ as leader let mapleader="\<Space>" " Shortcut to reload .vimrc and ~/.vim/plugin/*.vim nnoremap <leader>R :source $MYVIMRC<CR>:runtime! plugin/*.vim<CR>:echo "Configuration reloaded"<CR> -" toggle distraction-free editing -nnoremap <leader>y :set nolist<CR>:Goyo<CR> -nnoremap <leader>Y :set nolist<CR>:Goyo!<CR>:source $MYVIMRC<CR> -"nmap <leader>Y :set nolist<CR>:Goyo!<CR>:source $MYVIMRC<CR> - nnoremap <Leader>w :w<CR> nnoremap <Leader>W :wa<CR> nnoremap <Leader>q :q<CR> @@ -32,9 +24,6 @@ nnoremap <leader>N :set number!<CR> " toggle relative line numbering nnoremap <leader>n :set relativenumber!<CR> -" toggle cursorline/column -"nnoremap <leader>c :set cursorline!<CR>:set cursorcolumn!<CR> - " netrw nnoremap <leader>d :Lex<CR> nnoremap <leader>h :Hex<CR> @@ -70,10 +59,6 @@ nnoremap <leader>c :Copen<CR> " toggle x mark in checklist fields nnoremap <leader>X :s/\[[x ]\]/\=submatch(0) == '[x]' ? '[ ]': '[x]'/<CR>:noh<CR> -" toggle view of completed items in todo (using vim-foldsearch) -nnoremap <leader>u :Fp ^- \[ \]<CR> -nnoremap <leader>U :Fe<CR> - if exists(':tnoremap') " escape from terminal mode tnoremap <Esc> <C-\><C-n> @@ -90,7 +75,6 @@ if exists(':tnoremap') end " launch terminal in current window -"nnoremap <leader><CR> :terminal bash<CR> nnoremap <leader><CR> :terminal<CR> " bindings to fugitive @@ -105,33 +89,6 @@ nnoremap <leader>gP :Gpull<CR> " Use home row keys as Esc inoremap jk <Esc> -inoremap lkj <Esc>:write<CR> - -" Disable arrow keys -noremap <Left> <Nop> -noremap <Right> <Nop> -noremap <Up> <Nop> -noremap <Down> <Nop> -inoremap <Left> <Nop> -inoremap <Right> <Nop> -inoremap <Up> <Nop> -inoremap <Down> <Nop> - -" Update ctags -"nnoremap <leader>c :Start ctags -R --python-kinds=-i --langmap=c++:.cu,c++:.cuh .<CR> - -" file search -if executable("rg") - command! -bang -nargs=* Rg - \ call fzf#vim#grep( - \ 'rg --column --line-number --no-heading --color=always --ignore-case '.shellescape(<q-args>), 1, - \ <bang>0 ? fzf#vim#with_preview('up:60%') - \ : fzf#vim#with_preview('right:50%:hidden', '?'), - \ <bang>0) - nnoremap <Leader>a :Rg<CR> -elseif executable("ag") - nnoremap <Leader>a :Ag<CR> -end nnoremap , :ls<CR>:buffer<Space> " using fzf.vim @@ -147,14 +104,6 @@ augroup FzfBinds \ endif augroup end -" Copy and paste to system clipboard with <Space>v and <Space>y -xnoremap <Leader>y "+y -xnoremap <Leader>d "+d -nnoremap <Leader>p "+p -nnoremap <Leader>P "+P -xnoremap <Leader>v "+p -xnoremap <Leader>V "+P - " align things into columns interactively xnoremap <silent> <Enter> :EasyAlign<cr> " Start interactive EasyAlign in visual mode (e.g. vipga) @@ -162,14 +111,6 @@ xnoremap ga <Plug>(EasyAlign) " Start interactive EasyAlign for a motion/text object (e.g. gaip) nnoremap ga <Plug>(EasyAlign) -nnoremap <leader>S :Startify<cr> -let g:startify_custom_header = - \ map(split(system('fortune -s | cowthink'), '\n'), '" ".v:val') - \ + ['',''] - -" lookup word under cursor, dismiss results with q -nnoremap <leader>J :OnlineThesaurusCurrentWord<CR> - " ALE navigation nnoremap <silent> [W :ALEFirst<cr> nnoremap <silent> [w :ALEPreviousWrap<cr> @@ -180,10 +121,6 @@ nnoremap <silent> ]W :ALELast<cr> nnoremap <silent> ]c :cnext<cr> nnoremap <silent> [c :cprevious<cr> -" cycle through Wordy's writing dictionaries -nnoremap <silent> ]d :NextWordy<cr> -nnoremap <silent> [d :PrevWordy<cr> - " Add completion bindings (cycle with C-n, C-p), see :h ins-completion " <C-x><C-l>: while line " <C-x><C-n>: keywords in current file @@ -199,15 +136,3 @@ nnoremap <silent> [d :PrevWordy<cr> " Other: " <C-x><C-u>: emoji " <C-x><C-z>: unicode - -" janko-m/vim-test -" in a test file run tests nearest to the cursor otherwise the last nearest test -nnoremap <silent> t<C-n> :TestNearest<CR> -" in a test file run all tests -nnoremap <silent> t<C-f> :TestFile<CR> -" run entire test suite -nnoremap <silent> t<C-s> :TestSuite<CR> -" run last test -nnoremap <silent> t<C-l> :TestLast<CR> -" visit the test file from the last test -nnoremap <silent> t<C-g> :TestVisit<CR>