My .vimrc

syntax on
set wrap                       "wrap long lines
set expandtab                  "expand tab into spaces
set noautoindent               "auto indent text
set nocin                      "no c-auto indent
set ruler                      "show cursor coordinates
set backspace=indent,eol,start "backspacing over auto indent, line breaks, start of insert
set incsearch                  "incremental search
set hlsearch                   "highlight search
set tabstop=4                  "set num characters for a tab
set softtabstop=4              "Number of spaces that a <Tab> counts for while editing
set shiftwidth=4               "num spaces with reindent operations (<< and >>) and C-style indentation.
set ignorecase                 "ignore case in searches
set sm                         "show matching braces/parenthesis
set noerrorbells               "disable error bell
set winminheight=0             "set minimum window height
set winminwidth=0              "set minimum window width
set nu                         "show line numbers


" Remove trailing blanks upon saving
autocmd BufWritePre * :%s/\s\+$//e

colorscheme darkblue

"move to top tab
map <C-J> <C-W>j<C-W>

"move to bottom tab
map <C-K> <C-W>k<C-W>

"move to left tab
map <C-H> <C-W>h<C-W>

"move to right tab
map <C-L> <C-W>l<C-W>

"vsplit
map <C-O> <C-W>v<C-W>

"resize horizontal splits
map - <C-W>-
map = <C-W>+

"resize vertical splits
map <c-n> <c-w><
map <c-m> <c-w>>

"Toggle hlsearch with F5
map <F5> :set hls!<bar>set hls?<CR>

Display full path in Finder

Having recently switched from Windows to Mac OSX, I was surprised to find features missing that I thought were standard in any modern operating system.  For example, in Snow Leopard you could only resize windows using the bottom right corner of the window…why?  Thankfully this has been fixed in Lion.

Finder also only shows the current directory in the title, instead of the full path.  Here is how you can display the full path in 10.5 and above.  Run this from the terminal and restart Finder afterwards:

defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

To disable the feature, run

defaults write com.apple.finder _FXShowPosixPathInTitle -bool NO

Another attempt

I’ve lost track of how many times I’ve tried to start a blog, but here goes again…

Follow

Get every new post delivered to your Inbox.