configuring pine to read newsgroups

Go to: Setup -> Configure

Scroll down to the line with nntp-server and hit the enter key. It will prompt you for a replacement value.

Type in “news.berkeley.edu” and hit enter.

Continue scrolling down the setup options list using your space key.

Scroll down to the “sort-key” section, it was about 6 screens down on the options list.

Select “Reverse Arrival” from the sort-key list. This will put the most recent posts to the newgroup at the top of the list, making them easiest to find.

Press “e” to exit the setup.

Press “y” to replace the settings. You should now be back at the main page for pine.

Press “l” to go to your folders.

Select “News on news.berkeley.edu/nntp”.

Press “a” to add a newsgroup from the berkeley servers.

You’re done!

yes! no!

Really cool unix command:

yes foo

This will result in a stream of foo. Pipe this into another command or the execution of a script to fully automate certain tasks that require you to repeatedly type "yes" or "no".

But not both.

buffer management in vim

:bn – goto next buffer
:bp – goto previous buffer
:wn – save file and move to next (super)
:wp – save file and move to previous
:bd – remove file from buffer list (super)
:bun – Buffer unload (remove window but not from list)
:b <num> – go to buffer <num>
:b <str> – go to buffer with <str> in name

grep

-w
Whole words
-c
Count lines
-i
Ignore case
-r
Recurse
-n
line Number
-v
inVert (non-matching lines)

my .vimrc file

” Turns on syntax highlighting
syntax enable

” Turns on autoindent (this is actually pretty annoying when copy and pasting)
set autoindent

” To cause TAB characters to not be used in the file for compression
set expandtab

” Causes tabs to be displayed as tabstop number of spaces
set tabstop=2

” Causes a shiftwidth number of spaces to be inserted when you hit TAB
set shiftwidth=4

” Tab is rounded to a multiple of shiftwidth
set shiftround

” Ignores case when given a lowercase query
set ignorecase

” Case sensitive when given a non-lowercase query
set smartcase

” Jumps to search word as you type
set incsearch

” Highlights all occurrences of your search
set hlsearch

” Tab complete now ignores these
set wildignore=*.o,*.obj,*.bak,*.exe

” Required for the taglist plugin
filetype on

” Shortcut to toggle the taglist
nnoremap <F8> :TlistToggle<CR>

” Shortcut to add files to the taglist (recursive)
nnoremap <C-T> :TlistAddFilesRecursive . *<CR>