Created
August 25, 2010 09:46
-
-
Save hotoo/549200 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" [count]<Space> key in normal model. | |
nmap <space> :<C-U>call NormalSpace()<cr> | |
function! NormalSpace() | |
let col=col(".")-1 | |
let text=getline(".") | |
call setline(line("."), strpart(text,0,col).repeat(" ", v:count1).strpart(text,col)) | |
exec "normal ".v:count1."l" | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
普通模式: [count]<Space> 在光标所在位置插入 count 个空格。