I have a 10 year old laptop that can’t handle X, so it boots into text-only mode. That’s why I started working with Vim. Now, I’m enrolled in College to finish my CS degree, so I’m glad I took the time to learn the basics of Vim.
UPDATE: My wife bought me O’Reilly’s Learning the vi and Vim editors for my birthday!
“”"”"”"”"”"”"”"”"”"”"”"”"”"”"”
” Environment ”
“”"”"”"”"”"”"”"”"”"”"”"”"”"”"”
“Display, or not display line numbers
set number
“Auto indents
set autoindent
“Smart Indents
set smartindent
“Turn off the annoying beep (so my wife doesn’t throw something at me)
set noerrorbells
“”"”"”"”"”"”"”"”"”"”"”"”"”"”"”
” Mapping ”
“”"”"”"”"”"”"”"”"”"”"”"”"”"”"”
“Save and Quit
map <F2> :wq<CR>
map! <silent> <F2> <Esc>:wq<CR>
“Save
map <F3> :w<CR>
map! <silent> <F3> <Esc>:w<CR>a
“Force Quit
map <F12> :q!<CR>
map! <silent> <F12> <Esc>:q!<CR>
“”"”"”"”"”"”"”"”"”"”"”"”"”"”"”
” Abbreviations ”
“”"”"”"”"”"”"”"”"”"”"”"”"”"”"”
ab teh the
ab Teh The
