摘要: http://vim.wikia.com/wiki/VimTip448 ga g8 阅读全文
posted @ 2016-11-29 17:56 cnblogist 阅读(150) 评论(0) 推荐(0) 编辑
摘要: In normal mode, type ga to display the decimal and hex values for the character under the cursor, or type g8 to display the hex bytes for a UTF-8 char 阅读全文
posted @ 2016-11-29 17:55 cnblogist 阅读(139) 评论(0) 推荐(0) 编辑
摘要: http://vim.wikia.com/wiki/VimTip432 command! Copyfile let @*=substitute(expand("%:p"), '/', '\', 'g')command! Copyfile let @+=substitute(expand("%:p") 阅读全文
posted @ 2016-11-29 17:54 cnblogist 阅读(90) 评论(0) 推荐(0) 编辑
摘要: http://vim.wikia.com/wiki/File_format 阅读全文
posted @ 2016-11-29 17:53 cnblogist 阅读(129) 评论(0) 推荐(0) 编辑
摘要: https://www.cs.oberlin.edu/~kuperman/help/vim/windows.html 阅读全文
posted @ 2016-11-29 17:52 cnblogist 阅读(85) 评论(0) 推荐(0) 编辑
摘要: http://vim.wikia.com/wiki/VimTip396 precondition: set hlsearch" Show all tabs:/\t" Show trailing whitespace:/\s\+$" Show trailing whitespace only afte 阅读全文
posted @ 2016-11-29 15:43 cnblogist 阅读(95) 评论(0) 推荐(0) 编辑
摘要: http://vim.wikia.com/wiki/Remove_unwanted_spaces 1. manual commandremove trailing whitespace::%s/\s\+$//eremove heading whitespace::%s/^\s\+//e:%le2. 阅读全文
posted @ 2016-11-29 15:14 cnblogist 阅读(224) 评论(0) 推荐(0) 编辑
摘要: config file location 1. MinGW: C:\MinGW\msys\1.0\share\vim\vimrc 2. Linux: home config file content comment mark: one double quotation mark (") set au 阅读全文
posted @ 2016-11-29 15:13 cnblogist 阅读(131) 评论(0) 推荐(0) 编辑