Created
August 13, 2012 04:31
-
-
Save gnuwilliam/3336987 to your computer and use it in GitHub Desktop.
My .vimrc file
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
syntax on | |
call pathogen#infect() | |
call pathogen#runtime_append_all_bundles() | |
set guifont=Monaco:h14 | |
set t_Co=256 | |
au BufNewFile,BufRead *.newtype set filetype=newtype | |
au BufRead,BufNewFile *.js set ft=javascript syntax=javascript | |
au BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn} set filetype=mkd | |
filetype plugin indent on | |
set title | |
set number | |
au Syntax c,cpp,vim,xml,html,xhtml,javascript,python,php,mkd setlocal foldmethod=syntax | |
au Syntax c,cpp,vim,xml,html,xhtml,perl,mkd normal zR | |
set wildmenu | |
set wildmode=list:longest | |
set wildignore+=*.DS_Store " OSX bullshit | |
set wildignore+=.hg,.git,.svn " Version control | |
set wildignore+=*.sw?,*.un? " vim | |
set wildignore+=*.aux,*.out,*.toc " LaTeX intermediate files | |
set wildignore+=*.jpg,*.bmp,*.gif,*.png,*.jpeg " binary images | |
set wildignore+=*.o,*.obj,*.exe,*.dll,*.manifest " compiled object files | |
set wildignore+=*.spl " compiled spelling word lists | |
set wildignore+=*.class " Java | |
set wildignore+=*.pyc " Python | |
set backspace=indent,eol,start | |
set shiftround | |
set history=10000 | |
set expandtab | |
set tabstop=4 | |
set shiftwidth=4 | |
set softtabstop=4 | |
set autoindent | |
set cursorline | |
:colorscheme wombat256mod | |
if has("gui_running") | |
:colorscheme twilight | |
endif | |
set cursorline! | |
set so=7 | |
set ai | |
set si | |
set wrap | |
set laststatus=2 | |
set showmatch | |
set incsearch | |
set hlsearch | |
set laststatus=2 | |
:set statusline=%<%f\ (%{&ft})\ %-4(%m%)%=%-19(%3l,%02c%03V%) | |
nnoremap <S-P> :exec 'CommandTFlush' <Bar> CommandT<CR> | |
nnoremap <silent> <leader>t :CommandT<CR> | |
nnoremap <silent> <leader>b :CommandTBuffer<CR> | |
let g:CommandTAcceptSelectionMap = '<C-t>' | |
let g:CommandTAcceptSelectionTabMap = '<CR>' | |
let php = "~/.vim/syntax/php.vim" | |
function! SuperCleverTab() | |
if strpart(getline('.'), 0, col('.') - 1) =~ '^\s*$' | |
return "\<Tab>" | |
else | |
if &omnifunc != '' | |
return "\<C-X>\<C-O>" | |
elseif &dictionary != '' | |
return "\<C-K>" | |
else | |
return "\<C-N>" | |
endif | |
endif | |
endfunction | |
inoremap <Tab> <C-R>=SuperCleverTab()<cr> | |
set guicursor=n-v-c-i:block-Cursor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A little messed up, but works perfect to me. I use VIM most than other text editors. I just switch from him when I have to work with html or css.