Created
October 13, 2011 13:33
-
-
Save thefotios/1284227 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
set smartindent | |
set number | |
set sw=2 | |
set ts=2 | |
set sts=2 | |
set et | |
syntax on | |
filetype plugin indent on | |
colorscheme darkblue | |
call pathogen#infect() | |
call pathogen#helptags() | |
let g:gist_detect_filetype = 1 | |
set statusline="%{fugitive#statusline()} %F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]" | |
let Tlist_Auto_Open = 1 | |
let Tlist_Compact_Format = 1 | |
let Tlist_Enable_Fold_Column = 1 | |
let Tlist_Exit_OnlyWindow = 1 | |
let Tlist_Inc_Winwidth = 0 | |
let Tlist_Use_Right_Window = 1 | |
let Tlist_Display_Tag_Scope = 0 | |
map <F3> :Tlist<CR> | |
au BufNewFile,BufReadPost *.coffee setl foldmethod=indent | |
au BufNewFile,BufReadPost *.rb setl foldmethod=indent | |
au BufNewFile,BufReadPost *.tex setl spell | |
autocmd WinEnter * call s:CloseIfOnlyNerdTreeLeft() | |
" Close all open buffers on entering a window if the only | |
" buffer that's left is the NERDTree buffer | |
function! s:CloseIfOnlyNerdTreeLeft() | |
if exists("t:NERDTreeBufName") | |
if bufwinnr(t:NERDTreeBufName) != -1 | |
if winnr("$") == 1 | |
q | |
endif | |
endif | |
endif | |
endfunction | |
nnoremap <F2> :set invpaste paste?<CR> | |
set pastetoggle=<F2> | |
set showmode | |
" Installed plugins: | |
" | |
" Gist.vim | |
" nerdtree | |
" taglist.vim | |
" vim-coffee-script | |
" vim-fugitive | |
" vim-rails | |
" vim-surround |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment