每当我按两次空格时就会响铃

时间:2019-10-16 11:47:58

标签: vim

vim的新手,我试图设置空间作为我的领导者钥匙。但是,每当我尝试双击以使其轻松运动时,它都会响起警报。有什么好的方法可以诊断导致问题的原因?谢谢。

"-----------------------
" Vim-plug auto download
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
"---------------------:
"Vim plug plugins
call plug#begin('~/.vim/plugged')

Plug 'easymotion/vim-easymotion'

call plug#end()

"---------------------------------------------------
set nocompatible " be iMproved, required
filetype off " required

"-------------------------------------------
" Automatic reloading of .vimrc
autocmd! bufwritepost .vimrc source %

syntax on "turns on the inbuilt syntax highlighting

" Better copy and paste
set pastetoggle =<F2>
"set clipboard = unnamed

set mouse=a "enables mouse scroll in vim
set bs=2 "normal backspace

set incsearch "enables partial searches

"Rebind leader key
nnoremap <Space> <nop>
let mapleader =" "
"map <Space> <Leader>

"quicker to use vim commands
nnoremap ; :

"faster navigation
nnoremap H ^
nnoremap L $
nnoremap J 5j
nnoremap K 5k

"add back join lines
nnoremap <leader>j J

"Fast Esc for insert mode
:inoremap jk <Esc>
:inoremap kj <Esc>

"Better window navigation
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-h> <C-w>h
nnoremap <C-l> <C-w>l


"----------------
"backups (double slash at end makes vim avoid name collisions)
"set backupdir=~/.vim/backup//
"set directory=~/.vim/swap//
"set undodir=~/.vim/undo//

1 个答案:

答案 0 :(得分:4)

使用以下方式将您的领导者钥匙映射到空间

$rootFolder = 'D:\test' Get-ChildItem -Path $rootFolder -File -Recurse | ForEach-Object { $folder = $_.Directory.Name if (!($_.Name.StartsWith($folder))) { $_ | Rename-Item -NewName ('{0} - {1}' -f $folder, $_.Name) } }