When I use an editor, I don't want eight extra KILOBYTES of worthless help screens and cursor positioning code! I just want an EDitor!! Not a "viitor". Not a "emacsitor". Those aren't even WORDS!!!! ED! ED! ED IS THE STANDARD!!!
Name:
Anonymous2010-11-08 21:44
set scrolloff=9999
to get autoscrolling
imap <C-C> &^OBconst ^Of&<RIGHT>
to turn ``faggot'' into ``const Faggot&''
au BufNewFile,BufRead *.cpp abbr null NULL
au BufNewFile,BufRead *.c abbr null NULL
No need to press shift for typing NULL.
imap <F2> <C-O>:wa!<CR>
imap <F10> <C-O>:wqa
Commands, norton style
function MyStatText()
return strftime("%H:%M:%S| ")
endfunction
set statusline=%{MyStatText()}%<%f\ %h%m%r%=%-14.(%l,%c%V%)%B\ %P
put these in your .vimrc:
lets you use semicolon instead of colon eg. ;wq instead of :wq: nnoremap ; :
leader key in a saner place: let mapleader = ","
use these plugins: pathogen
nerdtree
snipmate
Just spend an hour and look through vimtips wiki and take shit you like. That and when you find stuff that you think can be optimised, try and google for it.
Name:
Anonymous2010-11-09 8:22
map ESC to jj in insert mode, ctrl to caps lock, gj to j and gk to k when working with lines word wrapped lines.
Name:
Anonymous2010-11-09 8:23
Are there plugins to make vim more like an IDE with integrated debugger and build automation?
Put the arrow keys on w-a-s-d. Coding will feel like gaymen.
Name:
Anonymous2010-11-09 14:43
Of course, on the system I administrate, vi is symlinked to ed. Emacs has been replaced by a shell script which 1) Generates a syslog message at level LOG_EMERG; 2) reduces the user's disk quota by 100K; and 3) RUNS ED!!!!!!
Name:
Anonymous2010-11-09 14:51
>>3
What if he runs that when he's not in his $HOME directory?
Solution: Replace ".bashrc" with "~/.bashrc"
What if he doesn't use bash?
Solution: ___________________________