Source

dotfiles / vimrc.sh


filetype off 
call pathogen#runtime_append_all_bundles("bundles")
call pathogen#helptags()

if has("python")
  set rtp^=~/.vim/feature_python/
  let twitvim_enable_python = 1
endif

set grepprg=ack-grep
set grepformat=%f:%l:%m
augroup mkd
  autocmd BufRead *.mkd  set ai formatoptions=tcroqn2 comments=n:>
augroup END


filetype plugin on
filetype indent on
set showtabline=2

if v:version >= 703
  set relativenumber
  set colorcolumn=81		" highlight column 81
end

set nowrap

" turns numbering on or off
map ,n :set number<CR>
map ,N :set nonumber<CR>

" my macros
noremap <silent><Leader>s :vertical resize 30<CR>
noremap <silent><Leader>m :vertical resize 75<CR>
noremap <silent><Leader>t :FriendsTwitter<CR>
noremap <silent><Leader>T :MentionsTwitter<CR>
noremap <silent><Leader>n :PosttoTwitter<CR>
noremap <silent><Leader>p :vsplit<CR>

let twitvim_count = 50

" Turns off fancy arrows to avoid potential UTF-8 BS
" See <http://stackoverflow.com/questions/9927217/vim-nerdtree-suddenly-broke>
let g:NERDTreeDirArrows=0