diff --git a/Dotfiles/vimrc b/Dotfiles/vimrc index 65390d5..3f3e1ab 100644 --- a/Dotfiles/vimrc +++ b/Dotfiles/vimrc @@ -60,7 +60,6 @@ syntax on let g:use_own_merlin = v:false let g:use_languageclient = v:false - " `vim-plug` installation & package-loading if empty(glob('~/.vim/autoload/plug.vim')) silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs @@ -70,7 +69,6 @@ endif source ~/.vim/packages.vim - " ### Variable declarations if !exists('g:lightline') | let g:lightline = {} | endif if !exists('g:LanguageClient_serverCommands') | let g:LanguageClient_serverCommands = {} | endif @@ -126,7 +124,6 @@ else call togglebg#("dark") endif - " Command-line tab completion set wildmode=list:longest,list:full set wildignore+=*.o,*.obj,.git,*.class,.svn @@ -358,7 +355,6 @@ map z# (asterisk-z#)(searchhi-update) map gz* (asterisk-gz*)(searchhi-update) map gz# (asterisk-gz#)(searchhi-update) - " The global is the spacebar. This primarily covers the EasyMotion invocations, but also " includes some other global-plugin features. let mapleader = " " @@ -377,7 +373,6 @@ nmap F (easymotion-Fl)|xmap F (easymotion-Fl)|omap F (easymoti nmap t (easymotion-tl)|xmap t (easymotion-tl)|omap t (easymotion-tl) nmap T (easymotion-Tl)|xmap T (easymotion-Tl)|omap T (easymotion-Tl) - " Since the within-line searches are handled by non-prefixed mappings above, I use the - " prefixed mappings for bidirectional/overwin-mode: " mnemonic: 'sneak' @@ -410,7 +405,6 @@ let g:leader_key_map.w = 'motion-word' map (easymotion-lineanywhere) let g:leader_key_map[' '] = 'motion-anywhere' - nmap n (easymotion-bd-n) xmap n (easymotion-bd-n) omap n (easymotion-bd-n) @@ -421,7 +415,6 @@ augroup easymotion-keymap | au! au VimEnter * EMCommandLineNoreMap augroup END - "noremap :NERDTreeTabsToggle "inoremap :NERDTreeTabsToggle "vnoremap :NERDTreeTabsToggle @@ -485,15 +478,15 @@ function! s:cocActionsOpenFromSelected(type) abort endfunction xnoremap a :execute 'CocCommand actions.open ' . visualmode() noremap a :set operatorfunc=cocActionsOpenFromSelectedg@ +let g:leader_key_map.a = 'coc-do-action' nnoremap y :CocList -A --normal yank let g:leader_key_map.y = 'show-coc-yank' nnoremap / :Denite grep:. -search -nnoremap 8 :DeniteCursorWord grep:. -search nnoremap * :DeniteCursorWord grep:. -search let g:leader_key_map['/'] = 'find-files' -let g:leader_key_map['8'] = 'find-cursor-word' +let g:leader_key_map['*'] = 'find-cursor-word' nnoremap ff :DeniteBufferDir file/rec "nnoremap ss :DeniteBufferDir buffer @@ -517,13 +510,15 @@ let g:leader_key_map.f = { \ } let g:windowswap_map_keys = 0 -nmap ww :call WindowSwap#EasyWindowSwap() -nmap wb ToggleBackground +nmap WW :call WindowSwap#EasyWindowSwap() +nmap Wb ToggleBackground +nmap Wc :tcd %:h -let g:leader_key_map.w = { +let g:leader_key_map.W = { \ 'name': '+window' - \ , 'g': 'toggle-background' - \ , 'w': 'window-swap' + \ , 'b': 'toggle-background' + \ , 'W': 'window-swap' + \ , 'c': 'update-tab-cwd' \ } " NOTE: Lots of other textobj-mappings, see `packages.vim` @@ -608,12 +603,6 @@ let g:leader_key_map.h = { \ , 'u': 'unstage-hunk' \ } -nmap wc :tcd %:h -let g:leader_key_map.w = { - \ 'name': '+win' - \ , 'c': 'update-tab-cwd' - \ } - " Mappings in Denite modals autocmd FileType denite call s:denite_my_settings() function! s:denite_my_settings() abort @@ -875,7 +864,6 @@ call denite#custom#var('file/rec/git', 'command', ['git', 'ls-files', '-co', '-- call denite#custom#source('grep', 'args', ['', '', '!']) - " Disable the vim-devicons plugin, as it's rather broken: let g:webdevicons_enable_denite = 0 @@ -997,7 +985,6 @@ let g:lightline.component_visible_condition = { \ 'filetype': '!IsWeirdBuffer() && winwidth(0) >=# g:lightline_thin_width', \ } - let g:lightline_wide_width = 100 let g:lightline_thin_width = 80