Skip to content

Instantly share code, notes, and snippets.

@XayOn
Created December 13, 2011 11:48
Show Gist options
  • Save XayOn/1471849 to your computer and use it in GitHub Desktop.
Save XayOn/1471849 to your computer and use it in GitHub Desktop.
My new Vimrc made from scratch
call pathogen#infect()
" Clever Tab from VIM Help
function! CleverTab()
if strpart(getline("."), 0, col('.')-1) =~ '^\s*$'
return "\<TAB>"
else
return "\<C-N>"
endfunction
set syntax=auto
set bg=dark
set number
set ts=4
set expandtab
syntax on
filetype plugin on
set statusline+=%{fugitive#statusline()}
let g:local_vimrc=".vimrc"
let g:proj_flags="imstvcg"
let g:ragtag_global_maps = 1
let Tlist_Use_Right_Window = 1
let Tlist_WinWidth = 40
map <f5> :TlistToggle<cr>
inoremap <TAB> <C-R>=CleverTab()<CR>
map <f10> :set paste<cr>
map <f11> :set nopaste<cr>
map <f4> \be
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment