From ec918b4096c91b9316e4e1c94c16b1f953ff703c Mon Sep 17 00:00:00 2001 From: Mehdi Kabab Date: Mon, 12 Sep 2011 00:54:03 +0200 Subject: [PATCH] Initial commit. --- README.md | 0 vim/autoload/pathogen.vim | 233 ++++++++++++++++++++++++++++++ vim/colors/neolao_colors.vim | 69 +++++++++ vim/colors/twilight_pioupioum.vim | 103 +++++++++++++ vim/gvimrc | 7 + vim/vimrc | 107 ++++++++++++++ 6 files changed, 519 insertions(+) create mode 100644 README.md create mode 100644 vim/autoload/pathogen.vim create mode 100644 vim/colors/neolao_colors.vim create mode 100644 vim/colors/twilight_pioupioum.vim create mode 100644 vim/gvimrc create mode 100644 vim/vimrc diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/vim/autoload/pathogen.vim b/vim/autoload/pathogen.vim new file mode 100644 index 0000000..718a114 --- /dev/null +++ b/vim/autoload/pathogen.vim @@ -0,0 +1,233 @@ +" pathogen.vim - path option manipulation +" Maintainer: Tim Pope +" Version: 2.0 + +" Install in ~/.vim/autoload (or ~\vimfiles\autoload). +" +" For management of individually installed plugins in ~/.vim/bundle (or +" ~\vimfiles\bundle), adding `call pathogen#infect()` to your .vimrc +" prior to `fileype plugin indent on` is the only other setup necessary. +" +" The API is documented inline below. For maximum ease of reading, +" :set foldmethod=marker + +if exists("g:loaded_pathogen") || &cp + finish +endif +let g:loaded_pathogen = 1 + +" Point of entry for basic default usage. Give a directory name to invoke +" pathogen#runtime_append_all_bundles() (defaults to "bundle"), or a full path +" to invoke pathogen#runtime_prepend_subdirectories(). Afterwards, +" pathogen#cycle_filetype() is invoked. +function! pathogen#infect(...) abort " {{{1 + let source_path = a:0 ? a:1 : 'bundle' + if source_path =~# '[\\/]' + call pathogen#runtime_prepend_subdirectories(source_path) + else + call pathogen#runtime_append_all_bundles(source_path) + endif + call pathogen#cycle_filetype() +endfunction " }}}1 + +" Split a path into a list. +function! pathogen#split(path) abort " {{{1 + if type(a:path) == type([]) | return a:path | endif + let split = split(a:path,'\\\@,'edit',,0) +command! -bar -bang -count=1 -nargs=1 -complete=customlist,s:Findcomplete Vedit :execute s:find(,'edit',,0) +command! -bar -bang -count=1 -nargs=1 -complete=customlist,s:Findcomplete Vopen :execute s:find(,'edit',,1) +command! -bar -bang -count=1 -nargs=1 -complete=customlist,s:Findcomplete Vsplit :execute s:find(,'split',,1) +command! -bar -bang -count=1 -nargs=1 -complete=customlist,s:Findcomplete Vvsplit :execute s:find(,'vsplit',,1) +command! -bar -bang -count=1 -nargs=1 -complete=customlist,s:Findcomplete Vtabedit :execute s:find(,'tabedit',,1) +command! -bar -bang -count=1 -nargs=1 -complete=customlist,s:Findcomplete Vpedit :execute s:find(,'pedit',,1) +command! -bar -bang -count=1 -nargs=1 -complete=customlist,s:Findcomplete Vread :execute s:find(,'read',,1) + +" vim:set ft=vim ts=8 sw=2 sts=2: diff --git a/vim/colors/neolao_colors.vim b/vim/colors/neolao_colors.vim new file mode 100644 index 0000000..5850d39 --- /dev/null +++ b/vim/colors/neolao_colors.vim @@ -0,0 +1,69 @@ +set background=dark + +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "neolao_colors" + +" Default Colors +hi Normal guifg=#eeeeec guibg=#000000 +hi NonText guifg=#555753 guibg=#000000 gui=none +hi NonText ctermfg=darkgray +hi Cursor guibg=#d3d7cf +hi lCursor guibg=#d3d7cf + +" Search +hi Search guifg=#eeeeec guibg=#c4a000 +hi Search cterm=none ctermfg=grey ctermbg=blue +hi IncSearch guibg=#eeeeec guifg=#729fcf +hi IncSearch cterm=none ctermfg=yellow ctermbg=green + +" Window Elements +hi StatusLine guifg=#eeeeec guibg=#4e9a06 gui=bold +hi StatusLine ctermfg=white ctermbg=green cterm=bold +hi StatusLineNC guifg=#d3d7df guibg=#4e9a06 +hi StatusLineNC ctermfg=lightgray ctermbg=darkgreen +hi VertSplit guifg=#eeeeec guibg=#eeeeec +hi Folded guifg=#eeeeec guibg=#75507b +hi Folded ctermfg=white ctermbg=magenta +hi Visual guifg=#d3d7cf guibg=#4e9a06 +hi Visual ctermbg=white ctermfg=lightgreen cterm=reverse + +" Specials +hi Todo guifg=#8ae234 guibg=#4e9a06 gui=bold +hi Todo ctermfg=white ctermbg=green +hi Title guifg=#eeeeec gui=bold +hi Title ctermfg=white cterm=bold + +" Syntax +hi Constant guifg=#c4a000 +hi Constant ctermfg=darkyellow +hi Number guifg=#729fcf +hi Number ctermfg=darkblue +hi Statement guifg=#4e9a06 gui=bold +hi Statement ctermfg=green +hi Identifier guifg=#8ae234 +hi Identifier ctermfg=darkgreen +hi PreProc guifg=#cc0000 +hi PreProc ctermfg=darkred +hi Comment guifg=#06989a gui=italic +hi Comment ctermfg=cyan cterm=none +hi Type guifg=#d3d7cf gui=bold +hi Type ctermfg=gray cterm=bold +hi Special guifg=#75507b +hi Special ctermfg=magenta cterm=none +hi Error guifg=#eeeeec guibg=#ef2929 +hi Error ctermfg=white ctermbg=red + +" Diff +hi DiffAdd guifg=fg guibg=#3465a4 gui=none +hi DiffAdd ctermfg=gray ctermbg=blue cterm=none +hi DiffChange guifg=fg guibg=#555753 gui=none +hi DiffChange ctermfg=gray ctermbg=darkgray cterm=none +hi DiffDelete guibg=bg +hi DiffDelete ctermfg=gray ctermbg=none cterm=none +hi DiffText guifg=fg guibg=#c4a000 gui=none +hi DiffText ctermfg=gray ctermbg=yellow cterm=none + diff --git a/vim/colors/twilight_pioupioum.vim b/vim/colors/twilight_pioupioum.vim new file mode 100644 index 0000000..933ae31 --- /dev/null +++ b/vim/colors/twilight_pioupioum.vim @@ -0,0 +1,103 @@ +" Vim color file +" Converted from Textmate theme Twilight piouPiouM using Coloration v0.2.5 (http://github.com/sickill/coloration) + +set background=dark +highlight clear + +if exists("syntax_on") + syntax reset +endif + +let g:colors_name = "Twilight piouPiouM" + +hi Cursor guifg=NONE guibg=#a7a7a7 gui=NONE +hi Visual guifg=NONE guibg=#3e141c gui=NONE +hi CursorLine guifg=NONE guibg=#202020 gui=NONE +hi CursorColumn guifg=NONE guibg=#202020 gui=NONE +hi LineNr guifg=#8a8a8a guibg=#141414 gui=NONE +hi VertSplit guifg=#414141 guibg=#414141 gui=NONE +hi MatchParen guifg=#cda869 guibg=NONE gui=NONE +hi StatusLine guifg=#ffffff guibg=#414141 gui=bold +hi StatusLineNC guifg=#ffffff guibg=#414141 gui=NONE +hi Pmenu guifg=#9b703f guibg=NONE gui=NONE +hi PmenuSel guifg=NONE guibg=#3e141c gui=NONE +hi IncSearch guifg=NONE guibg=#343a44 gui=NONE +hi Search guifg=NONE guibg=#343a44 gui=NONE +hi Directory guifg=#cf6a4c guibg=NONE gui=NONE +hi Folded guifg=#5f5a60 guibg=#141414 gui=NONE + +hi Normal guifg=#ffffff guibg=#141414 gui=NONE +hi Boolean guifg=#cf6a4c guibg=NONE gui=NONE +hi Character guifg=#cf6a4c guibg=NONE gui=NONE +hi Comment guifg=#5f5a60 guibg=NONE gui=italic +hi Conditional guifg=#cda869 guibg=NONE gui=NONE +hi Constant guifg=#cf6a4c guibg=NONE gui=NONE +hi Define guifg=#cda869 guibg=NONE gui=NONE +hi ErrorMsg guifg=NONE guibg=NONE gui=NONE +hi WarningMsg guifg=NONE guibg=NONE gui=NONE +hi Float guifg=#f352ff guibg=NONE gui=NONE +hi Function guifg=#9b703f guibg=NONE gui=NONE +hi Identifier guifg=#f9ee98 guibg=NONE gui=NONE +hi Keyword guifg=#cda869 guibg=NONE gui=NONE +hi Label guifg=#8f9d6a guibg=NONE gui=NONE +hi NonText guifg=#4f4f4f guibg=#202020 gui=NONE +hi Number guifg=#f352ff guibg=NONE gui=NONE +hi Operator guifg=#cda869 guibg=NONE gui=NONE +hi PreProc guifg=#cda869 guibg=NONE gui=NONE +hi Special guifg=#ffffff guibg=NONE gui=NONE +hi SpecialKey guifg=#4f4f4f guibg=#202020 gui=NONE +hi Statement guifg=#cda869 guibg=NONE gui=NONE +hi StorageClass guifg=#f9ee98 guibg=NONE gui=NONE +hi String guifg=#8f9d6a guibg=NONE gui=NONE +hi Tag guifg=#9b703f guibg=NONE gui=NONE +hi Title guifg=#ffffff guibg=NONE gui=bold +hi Todo guifg=#5f5a60 guibg=NONE gui=inverse,bold,italic +hi Type guifg=#9b703f guibg=NONE gui=NONE +hi Underlined guifg=NONE guibg=NONE gui=underline +hi rubyClass guifg=#cda869 guibg=NONE gui=NONE +hi rubyFunction guifg=#9b703f guibg=NONE gui=NONE +hi rubyInterpolationDelimiter guifg=NONE guibg=NONE gui=NONE +hi rubySymbol guifg=#cf6a4c guibg=NONE gui=NONE +hi rubyConstant guifg=#9b859d guibg=NONE gui=NONE +hi rubyStringDelimiter guifg=#8f9d6a guibg=NONE gui=NONE +hi rubyBlockParameter guifg=#7587a6 guibg=NONE gui=NONE +hi rubyInstanceVariable guifg=#7587a6 guibg=NONE gui=NONE +hi rubyInclude guifg=#cda869 guibg=NONE gui=NONE +hi rubyGlobalVariable guifg=#7587a6 guibg=NONE gui=NONE +hi rubyRegexp guifg=#e9c062 guibg=NONE gui=NONE +hi rubyRegexpDelimiter guifg=#e9c062 guibg=NONE gui=NONE +hi rubyEscape guifg=#cf6a4c guibg=NONE gui=NONE +hi rubyControl guifg=#cda869 guibg=NONE gui=NONE +hi rubyClassVariable guifg=#7587a6 guibg=NONE gui=NONE +hi rubyOperator guifg=#cda869 guibg=NONE gui=NONE +hi rubyException guifg=#cda869 guibg=NONE gui=NONE +hi rubyPseudoVariable guifg=#7587a6 guibg=NONE gui=NONE +hi rubyRailsUserClass guifg=#9b859d guibg=NONE gui=NONE +hi rubyRailsARAssociationMethod guifg=#dad085 guibg=NONE gui=NONE +hi rubyRailsARMethod guifg=#dad085 guibg=NONE gui=NONE +hi rubyRailsRenderMethod guifg=#dad085 guibg=NONE gui=NONE +hi rubyRailsMethod guifg=#dad085 guibg=NONE gui=NONE +hi erubyDelimiter guifg=NONE guibg=NONE gui=NONE +hi erubyComment guifg=#5f5a60 guibg=NONE gui=italic +hi erubyRailsMethod guifg=#dad085 guibg=NONE gui=NONE +hi htmlTag guifg=#ac885b guibg=NONE gui=NONE +hi htmlEndTag guifg=#ac885b guibg=NONE gui=NONE +hi htmlTagName guifg=#ac885b guibg=NONE gui=NONE +hi htmlArg guifg=#ac885b guibg=NONE gui=NONE +hi htmlSpecialChar guifg=#cf6a4c guibg=NONE gui=NONE +hi javaScriptFunction guifg=#f9ee98 guibg=NONE gui=NONE +hi javaScriptRailsFunction guifg=#dad085 guibg=NONE gui=NONE +hi javaScriptBraces guifg=NONE guibg=NONE gui=NONE +hi yamlKey guifg=#9b703f guibg=NONE gui=NONE +hi yamlAnchor guifg=#7587a6 guibg=NONE gui=NONE +hi yamlAlias guifg=#7587a6 guibg=NONE gui=NONE +hi yamlDocumentHeader guifg=#8f9d6a guibg=NONE gui=NONE +hi cssURL guifg=#7587a6 guibg=NONE gui=NONE +hi cssFunctionName guifg=#dad085 guibg=NONE gui=NONE +hi cssColor guifg=#cf6a4c guibg=NONE gui=NONE +hi cssPseudoClassId guifg=#9b703f guibg=NONE gui=NONE +hi cssClassName guifg=#9b703f guibg=NONE gui=NONE +hi cssValueLength guifg=#f352ff guibg=NONE gui=NONE +hi cssCommonAttr guifg=#cf6a4c guibg=NONE gui=NONE +hi cssBraces guifg=NONE guibg=NONE gui=NONE + diff --git a/vim/gvimrc b/vim/gvimrc new file mode 100644 index 0000000..cafcb4c --- /dev/null +++ b/vim/gvimrc @@ -0,0 +1,7 @@ +" .gvimrc +" Author: Mehdi Kabab + +" Masquer le superflu de MacVim +set guioptions=aAce +set transparency=10 + diff --git a/vim/vimrc b/vim/vimrc new file mode 100644 index 0000000..f2da62b --- /dev/null +++ b/vim/vimrc @@ -0,0 +1,107 @@ +set nocompatible + +" activate Pathogen +filetype off +call pathogen#runtime_append_all_bundles() +call pathogen#helptags() + +" load ftplugins and indent files +filetype plugin indent on + +" turn on syntax highlighting +syntax on + +scriptencoding utf-8 +set encoding=utf-8 +set fileencoding=utf-8 +set modelines=0 +set ttyfast + +" store lots of :cmdline history +set history=300 + +" Set to auto read when a file is changed from the outside +set autoread + +" show matching brackets/parenthesis +set showmatch + +" Whitespace stuff + +set nowrap +set tabstop=2 +set shiftwidth=2 +set softtabstop=2 +set expandtab +set autoindent + +" UI stuff + +set showmode " display the current mode +set number +silent! set relativenumber + +color desert +set cursorline " highlight current line +set colorcolumn=120 " display wrap column +hi cursorline guibg=#333333 " highlight bg color of current line +hi cursorcolumn guibg=#333333 " highlight cursor + +if has('cmdline_info') + set ruler " show the ruler + set rulerformat=%30(%=\:b%n%y%m%r%w\ %l,%c%V\ %P%) " a ruler on steroids + set showcmd " show partial commands in status line and + " selected characters/lines in visual mode +endif + +set list +set listchars=tab:▸\ ,eol:¬,extends:❯,precedes:❮ +set showbreak=↪ + +set wildmenu +set wildmode=list:longest +set visualbell + + +"Directories for swp files + +set backupdir=~/.vim/backup +set directory=~/.vim/backup + +" Search + +set ignorecase " Ignore case when searching +set smartcase " except if it's an uppercase search +set hlsearch " Highlight search things +set incsearch " Make search act like search in modern browsers +set magic " Set magic on, for regular expressions +set gdefault " Apply global substitutions + + +" statusline setup +set statusline=%f " Path. +set statusline+=%m " Modified flag. +set statusline+=%r " Readonly flag. +set statusline+=%w " Preview window flag. + +set statusline+=\ " Space. + +"set statusline+=%#redbar# " Highlight the following as a warning. +"set statusline+=%{SyntasticStatuslineFlag()} " Syntastic errors. +"set statusline+=%* " Reset highlighting. + +set statusline+=%= " Right align. + +" File format, encoding and type. Ex: "(unix/utf-8/python)" +set statusline+=( +set statusline+=%{&ff} " Format (unix/DOS). +set statusline+=/ +set statusline+=%{strlen(&fenc)?&fenc:&enc} " Encoding (utf-8). +set statusline+=/ +set statusline+=%{&ft} " Type (python). +set statusline+=) + +" Line and column position and counts. +set statusline+=\ (line\ %l\/%L,\ col\ %03c) +set laststatus=2 +