From ef0707e965fc64557acb68c98fb2d8e23689e588 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Wed, 27 Dec 2017 23:56:27 -0500 Subject: [PATCH] Remove more unused vim keybindings --- dotfiles/.vim/keybindings.vim | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/dotfiles/.vim/keybindings.vim b/dotfiles/.vim/keybindings.vim index c8cbfa0c..fa40cb53 100644 --- a/dotfiles/.vim/keybindings.vim +++ b/dotfiles/.vim/keybindings.vim @@ -2,9 +2,7 @@ let mapleader = ' ' " ================== Top row -"nnoremap nnoremap q :Files -nnoremap w :Commits nnoremap e :set nu! nnoremap r :call matchadd('OverLength', '\%101v', 100) nnoremap t :OverCommandLine%s/ @@ -13,47 +11,31 @@ nnoremap u w nnoremap i nnoremap o nnoremap p -" Easily show all git diffs -nnoremap [ :GFiles? -" Easily show all git files -nnoremap ] :GFiles -" Easily go through all the commits for a specific file -nnoremap \ :BCommits " ================== Middle row nnoremap a :NERDTreeToggle -"nnoremap s nnoremap d :TagbarToggle nnoremap f :VimFiler nnoremap g :set hlsearch! -nnoremap h :Buffers " Easily jump between lines in all open files nnoremap j :Lines -" Easily jump between lines in the same file -nnoremap k :BLines -" Easily search for any line in all files in the project -nnoremap l :Ag +nnoremap k :Buffers " Easily open new files in horizontal and vertical splits nnoremap ; :split w :Files nnoremap ' :vsplit w :Files " ================== Bottom row -" Note that I personally don't use + z/x/c/n/m/,/. nnoremap v :Ack! "\b\b" -"nnoremap b nnoremap n o nnoremap m O " Bind the right beautify function based on what file is open -autocmd FileType javascript map b :call JsBeautify() -autocmd FileType json map b :call JsonBeautify() -autocmd FileType jsx map b :call JsxBeautify() -autocmd FileType html map b :call HtmlBeautify() -autocmd FileType css map b :call CSSBeautify() +autocmd FileType javascript nnoremap b :call JsBeautify() +autocmd FileType json nnoremap b :call JsonBeautify() +autocmd FileType jsx nnoremap b :call JsxBeautify() +autocmd FileType html nnoremap b :call HtmlBeautify() +autocmd FileType css nnoremap b :call CSSBeautify() " Easily enter 'zen mode' with Goyo and Pencil " We have to explicitly set vertsplit again since Goyo resets it for some reason nnoremap 2 :PencilSoft:Goyo:hi vertsplit ctermfg=8 ctermbg=none nnoremap 3 :mksession! ~/.vim_session nnoremap 4 :source ~/.vim_session -nnoremap 8 :15winc - -nnoremap 9 :15winc + -nnoremap 0 :winc =