Skip to content

Commit

Permalink
more vimrc tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
gabehollombe committed Jan 4, 2013
1 parent bc2511f commit 111f517
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ set hidden " allow unsaved buffers
set smartindent
set autoindent

" Auto change working directory to current file
autocmd BufEnter * silent! lcd %:p:h


filetype plugin indent on " Automatically detect file types.
syntax on " syntax highlighting
Expand Down Expand Up @@ -184,8 +187,6 @@ au! BufRead,BufNewFile *.haml setfiletype haml
" No Help, please
nmap <F1> <Esc>
" Display extra whitespace
set list listchars=tab:»·,trail:·

" Local config
if filereadable(".vimrc.local")
Expand Down Expand Up @@ -216,7 +217,7 @@ set complete=.,t
set ignorecase
set smartcase

set guifont=Source\ Code\ Pro\ ExtraLight:h14,Andale\ Mono\ Regular:h16,Menlo\ Regular:h15,Consolas\ Regular:h16,Courier\ New\ Regular:h18
set guifont=Source\ Code\ Pro\ Light:h14,Andale\ Mono\ Regular:h16,Menlo\ Regular:h15,Consolas\ Regular:h16,Courier\ New\ Regular:h18
set noantialias

let g:browser = 'open'
Expand Down Expand Up @@ -288,6 +289,10 @@ map <Leader>= <C-w>=
" and ask which one to jump to
nmap <Leader>ff [I:let nr = input("Which one: ")<Bar>exe "normal " . nr ."[\t"<CR>
" Make Leader+8 (think * but with leader instead of shift) Ack for word
" under cursor
nmap <Leader>8 :Ack! <cword><cr>


" add in matchit.vim built in plugin
Expand Down Expand Up @@ -394,12 +399,12 @@ nmap <leader>f9 :set foldlevel=9<CR>
" let NERDTreeShowBookmarks=1
let NERDTreeIgnore=['\.pyc', '\~$', '\.swo$', '\.swp$', '\.git', '\.hg', '\.svn', '\.bzr']
let NERDTreeChDirMode=0
" let NERDTreeChDirMode=0
let NERDTreeQuitOnOpen=1
let NERDTreeMouseMode=2
let NERDTreeShowHidden=1
let NERDTreeKeepTreeInNewTab=1
let g:nerdtree_tabs_open_on_gui_startup=0
" let g:nerdtree_tabs_open_on_gui_startup=0
" }

" Tabularize {
Expand Down

0 comments on commit 111f517

Please sign in to comment.