From 516d7d86c50c0c338b98e79588deeff30789690e Mon Sep 17 00:00:00 2001 From: James Dixon Date: Thu, 26 Nov 2020 00:49:25 -0500 Subject: [PATCH] change location of some stuff --- files/vim/.vim/keybinds.vim | 49 ++++++++++++++++++++++++++++ files/vim/.vim/plugins.vim | 65 ++++--------------------------------- 2 files changed, 56 insertions(+), 58 deletions(-) diff --git a/files/vim/.vim/keybinds.vim b/files/vim/.vim/keybinds.vim index 9ee04ff..a387493 100644 --- a/files/vim/.vim/keybinds.vim +++ b/files/vim/.vim/keybinds.vim @@ -40,3 +40,52 @@ nnoremap =j :%!python -m json.tool "abbrevations inoreabbrev #!! "#!/usr/bin/env" "}}} + +"plugin keybinds +"{{{ +"netrw +nnoremap e :call ToggleNetrw() + +"vim-plug +nnoremap pi :source $MYVIMRC :PlugInstall +nnoremap pu :source $MYVIMRC :PlugUpdate +nnoremap pc :source $MYVIMRC :PlugClean + +"openbrowser +nnoremap ob :OpenBrowser +nnoremap obs :OpenBrowserSearch +nmap gx (openbrowser-smart-search) +vmap gx (openbrowser-smart-search) + +"ale +nnoremap at :ALEToggle +nmap af (ale_fix) +nmap aK (ale_hover) +nmap agd (ale_go_to_definition) +nmap agd (ale_go_to_definition) + +"vim-emmet +let g:user_emmet_leader_key = ',' + +"git-gutter +nnoremap ggt :GitGutterToggle + +"vim-fugitive +nnoremap gw :Gwrite +nnoremap gl :Glog +nnoremap gs :Gstatus +nnoremap gd :Gdiffsplit +nnoremap gp :Gpush +nnoremap ga :Git add % +nnoremap ga. :Git add . +nnoremap gcm :Gcommit + +"fzf +nnoremap gf :GitFiles +nnoremap f :Files +nnoremap b :Buffers +nnoremap h :Helptags +nnoremap m :Maps +nnoremap rg :Rg + +"}}} diff --git a/files/vim/.vim/plugins.vim b/files/vim/.vim/plugins.vim index 175b940..1423f3c 100644 --- a/files/vim/.vim/plugins.vim +++ b/files/vim/.vim/plugins.vim @@ -11,29 +11,30 @@ if empty(glob(plugDir)) autocmd VimEnter * PlugInstall --sync | source $MYVIMRC endif +"pre plugin settings + call plug#begin(pluginDir) Plug 'junegunn/vim-plug' + " == quality of life == "normal mode keybinds Plug 'tpope/vim-commentary' Plug 'tpope/vim-surround' Plug 'tpope/vim-unimpaired' - "command mode keybinds Plug 'tpope/vim-rsi' Plug 'tpope/vim-eunuch' Plug 'tpope/vim-repeat' - "git Plug 'tpope/vim-fugitive' Plug 'tpope/vim-rhubarb' Plug 'tpope/vim-dispatch' Plug 'airblade/vim-gitgutter' - "fzf Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'junegunn/fzf.vim' + " == language support == "go Plug 'fatih/vim-go' "html @@ -41,19 +42,16 @@ call plug#begin(pluginDir) "markdown Plug 'plasticboy/vim-markdown' Plug 'godlygeek/tabular' - - "colorpack - Plug 'flazz/vim-colorschemes' - "linting and lsp Plug 'w0rp/ale' - "qol + " == extra == + Plug 'flazz/vim-colorschemes' Plug 'editorconfig/editorconfig-vim' Plug 'tyru/open-browser.vim' call plug#end() -"plugin settings +"post plugin settings "---------------{{{ "netrw let g:netrw_banner = 0 @@ -99,52 +97,3 @@ let g:vim_markdown_frontmatter = 1 let g:user_emmet_install_global = 0 "}}} - -"plugin keybinds -"{{{ -"netrw -nnoremap e :call ToggleNetrw() - -"vim-plug -nnoremap pi :source $MYVIMRC :PlugInstall -nnoremap pu :source $MYVIMRC :PlugUpdate -nnoremap pc :source $MYVIMRC :PlugClean - -"openbrowser -nnoremap ob :OpenBrowser -nnoremap obs :OpenBrowserSearch -nmap gx (openbrowser-smart-search) -vmap gx (openbrowser-smart-search) - -"ale -nnoremap at :ALEToggle -nmap af (ale_fix) -nmap aK (ale_hover) -nmap agd (ale_go_to_definition) -nmap agd (ale_go_to_definition) - -"vim-emmet -let g:user_emmet_leader_key = ',' - -"git-gutter -nnoremap ggt :GitGutterToggle - -"vim-fugitive -nnoremap gw :Gwrite -nnoremap gl :Glog -nnoremap gs :Gstatus -nnoremap gd :Gdiffsplit -nnoremap gp :Gpush -nnoremap ga :Git add % -nnoremap ga. :Git add . -nnoremap gcm :Gcommit - -"fzf -nnoremap gf :GitFiles -nnoremap f :Files -nnoremap b :Buffers -nnoremap h :Helptags -nnoremap m :Maps -nnoremap rg :Rg - -"}}}