Contenu connexe Similaire à Vim สั่งได้ดั่งใจ #bcbk4 Similaire à Vim สั่งได้ดั่งใจ #bcbk4 (20) Vim สั่งได้ดั่งใจ #bcbk42. Me
• Thai Pangsakulyanont
• Software and Knowledge Engineering
Undergraduate Student,
Kasetsart University
• @dtinth
• http://dt.in.th/
Sunday, September 22, 13
4. Outline
• A Quick Demonstration
• Built-In Features
• Shortcut, Tips & Trick, Settings
• Vundle
• Plugins
• More Resources
Sunday, September 22, 13
8. Disable Arrow Keys
in Insert Mode
• inoremap <Up> <NOP>
• inoremap <Down> <NOP>
• inoremap <Left> <NOP>
• inoremap <Right> <NOP>
Sunday, September 22, 13
9. &
--NORMAL--
o O
• Begin a new line (below/above) the
cursor and insert text.
Open Below Open Above
Sunday, September 22, 13
11. &
• Insert text before the first non-blank
in the line.
• Append text at the end of the line.
--NORMAL--
I A
INSERT APPEND
Sunday, September 22, 13
13. • Repeat last change
--NORMAL--
.
Repeat
Sunday, September 22, 13
15. • Replace the character under the cursor
without entering the insert mode.
--NORMAL--
r
Replace
Sunday, September 22, 13
16. &
• Add to the number.
• Subtract from the number.
--NORMAL--
^a ^x
Add Subtract
Sunday, September 22, 13
18. • Next match / previous match.
• Keyword Completion.
--INSERT--
&^n ^p
Next Previous
Sunday, September 22, 13
19. • File Name Completion.
--INSERT--
^x ^f ^f ^f
Complete File (next) (next)
Sunday, September 22, 13
20. • Omni Completion (context-sensitive).
--INSERT--
^x ^o ^o ^o
Complete Omni (next) (next)
Sunday, September 22, 13
23. iw aw
i( a(
i{ a{
i[ a[
i< a<
i" a"
i' a'
it at
Sunday, September 22, 13
45. Arpeggio inoremap sd <Backspace>
Arpeggio inoremap kl <Backspace>
Arpeggio nnoremap sdf ciw
Arpeggio nnoremap jkl ciw
Sunday, September 22, 13
56. • http://usevim.com/
A Vim Blog (← Recommended!)
• http://vim.wikia.com/
Vim Tips Wiki
• http://www.vim.org/scripts/
Official Script Repository
• http://vim-scripts.org/
Git Mirror of the above
Sunday, September 22, 13