Vim Tips - yszheda/wiki GitHub Wiki
- Vim Reference
- Vim resources
- 所需即所获:像 IDE 一样使用 vim
- Learn Vim the Smart Way
- Learn Vimscript the Hard Way
- https://jovica.org/
- http://vim.wikia.com/wiki/Indenting_source_code#Methods_for_automatic_indentation
- http://stackoverflow.com/questions/7053550/disable-all-auto-indentation-in-vim
- http://stackoverflow.com/questions/2514445/turning-off-auto-indent-when-pasting-text-into-vim
- http://stackoverflow.com/questions/5052079/move-cursor-to-its-last-position
- http://vim.wikia.com/wiki/Jumping_to_previously_visited_locations
:%s/\s\+$//e
- How can I repeat last substitution and with the same flags
- How to repeat a command with substitution in Vim?
:&&
- https://github.com/Homebrew/legacy-homebrew/issues/13654
- https://github.com/Valloric/YouCompleteMe/issues/18
- http://stackoverflow.com/questions/11148403/homebrew-macvim-with-python2-7-3-support-not-working/
- http://bbs.pku.edu.cn/fox/bbs/bbstcon.php?board=Apple&threadid=15511527
:%!python -m json.tool
- http://stackoverflow.com/questions/6264012/vim-delete-html-tag-but-not-content
- http://superuser.com/questions/182355/how-can-i-select-an-html-tags-content-in-vim
- How can I use Vim as a hex editor?
- VimTip: Hex dump
- How to edit binary files with Vim?
- Display file in binary format
:%!xxd
:terminal
in vim8
" open .vimrc in vim
:so %
xnoremap * :<C-u>call <SID>VSetSearch()<CR>/<C-R>=@/<CR><CR>
xnoremap # :<C-u>call <SID>VSetSearch()<CR>?<C-R>=@/<CR><CR>
function! s:VSetSearch()
let temp = @s
norm! gv"sy
let @/ = '\V' . substitute(escape(@s, '/\'), '\n', '\\n', 'g')
let @s = temp
endfunction
- Visual selection basics
- Search for visually selected text
- Search from Visual Select in VIM?
- Search for visually selected text
:set binary
:set noeof
~/.tmux.conf
:
set -g default-terminal "xterm"