Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

VIM commands

Name: Anonymous 2010-11-08 17:57

Do you have some useful tips for VIM? Anything accapted ;)

Name: Anonymous 2010-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


Display current time in status line

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List