Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

g:which_key_hspace Still not well aligned #61

Closed
cnfczn opened this issue Aug 11, 2019 · 1 comment
Closed

g:which_key_hspace Still not well aligned #61

cnfczn opened this issue Aug 11, 2019 · 1 comment

Comments

@cnfczn
Copy link

cnfczn commented Aug 11, 2019

  • OS: Linux
  • NeoVim: 0.3.7
  • Vim:8.1
call plug#begin('~/.vim/plugged')
	Plug 'liuchengxu/vim-which-key'
call plug#end()
let g:mapleader = ";"
let g:maplocalleader = ","
set timeoutlen=300          " 按键响应 延时500毫秒

let g:which_key_hspace = 8
nnoremap <silent> <leader> :WhichKey ';'<CR>
nnoremap <silent> <localleader> :WhichKey ','<CR>

let g:which_key_map = {}

let g:which_key_map.y = ['', '复制']
let g:which_key_map.p = ['', '粘贴']
let g:which_key_map.x = ['', '剪切']
let g:which_key_map.bd = ['', '关闭buffer']
let g:which_key_map.ch = [')', '标尺']
if has("win32")
    let g:which_key_map.mw = ['', '最大化']
    let g:which_key_map.nw = ['', '窗口化']
    let g:which_key_map.sw = ['', 'sw 待测试']
else
    let g:which_key_map.mw = ['', '切换窗口化']
endif

let g:which_key_map.f = ['', '格式化选区']
let g:which_key_map.tt = ['', '翻译']
let g:which_key_map.dt = ['', 'vimwiki 更新日期']
let g:which_key_map.vt = ['', 'vimwiki todo选中']
call which_key#register(';', "g:which_key_map")

Problem Description

你要的最小化 .vimrc文件 @liuchengxu
img

@liuchengxu
Copy link
Owner

It's not a complete minimal vimrc. I'll close this until you provide a complete and reproducible vimrc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants