Skip to content

Commit

Permalink
Adding vim config files
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikrustagi committed Feb 3, 2012
0 parents commit 4bb3297
Show file tree
Hide file tree
Showing 5 changed files with 303 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
*~
.*.swp
99 changes: 99 additions & 0 deletions vim/colors/blackboard.vim
@@ -0,0 +1,99 @@
" Vim color scheme
"
" Name: blackboard.vim
" Maintainer: Ben Wyrosdick <ben.wyrosdick@gmail.com>
" Last Change: 20 August 2009
" License: public domain
" Version: 1.4

set background=dark
hi clear
if exists("syntax_on")
syntax reset
endif

let g:colors_name = "blackboard"

" Colours in use
" --------------
" #FF5600 bright orange
" #FFDE00 yolk yellow
" #D8FA3C lemon yellow
" #61CE3C green
" #84A7C1 light blue
" #AEAEAE medium grey

" if has("gui_running")
"GUI Colors
highlight Normal guifg=White guibg=#0B1022
highlight Cursor guifg=Black guibg=Yellow
highlight CursorLine guibg=#191E2F
highlight LineNr guibg=#323232 guifg=#888888
highlight Folded guifg=#1d2652 guibg=#070a15
highlight Pmenu guibg=#84A7C1
highlight Visual guibg=#283A76

"General Colors
highlight Comment guifg=#AEAEAE
highlight Constant guifg=#D8FA3C
highlight Keyword guifg=#FFDE00
highlight String guifg=#61CE3C
highlight Type guifg=#84A7C1
highlight Identifier guifg=#61CE3C gui=NONE
highlight Function guifg=#FF5600 gui=NONE
highlight clear Search
highlight Search guibg=#1C3B79
highlight PreProc guifg=#FF5600

" StatusLine
highlight StatusLine guifg=#000000 guibg=#ffffaf gui=italic
highlight StatusLineNC guifg=#000000 guibg=#ffffff gui=NONE

"Invisible character colors
highlight NonText guifg=#4a4a59
highlight SpecialKey guifg=#4a4a59

"HTML Colors
highlight link htmlTag Type
highlight link htmlEndTag htmlTag
highlight link htmlTagName htmlTag

"Ruby Colors
highlight link rubyClass Keyword
highlight link rubyDefine Keyword
highlight link rubyConstant Type
highlight link rubySymbol Constant
highlight link rubyStringDelimiter rubyString
highlight link rubyInclude Keyword
highlight link rubyAttribute Keyword
highlight link rubyInstanceVariable Normal

"Rails Colors
highlight link railsMethod Type

"Sass colors
highlight link sassMixin Keyword
highlight link sassMixing Constant

"Outliner colors
highlight OL1 guifg=#FF5600
highlight OL2 guifg=#61CE3C
highlight OL3 guifg=#84A7C1
highlight OL4 guifg=#D8FA3C
highlight BT1 guifg=#AEAEAE
highlight link BT2 BT1
highlight link BT3 BT1
highlight link BT4 BT1

"Markdown colors
highlight markdownCode guifg=#61CE3C guibg=#070a15
highlight link markdownCodeBlock markdownCode

"Git colors
highlight gitcommitSelectedFile guifg=#61CE3C
highlight gitcommitDiscardedFile guifg=#C23621
highlight gitcommitWarning guifg=#C23621
highlight gitcommitBranch guifg=#FFDE00
highlight gitcommitHeader guifg=#84A7C1

"end
49 changes: 49 additions & 0 deletions vim/colors/wombat.vim
@@ -0,0 +1,49 @@
" Maintainer: Lars H. Nielsen (dengmao@gmail.com)
" Last Change: January 22 2007
"
set background=dark

hi clear

if exists("syntax_on")
syntax reset
endif

let colors_name = "wombat"


" " Vim >= 7.0 specific colors
if version >= 700
hi CursorLine guibg=#2d2d2d
hi CursorColumn guibg=#2d2d2d
hi MatchParen guifg=#f6f3e8 guibg=#857b6f gui=bold
hi Pmenu guifg=#f6f3e8 guibg=#444444
hi PmenuSel guifg=#000000 guibg=#cae682
endif

" " General colors
hi Cursor guifg=NONE guibg=#656565 gui=none
hi Normal guifg=#f6f3e8 guibg=#242424 gui=none
hi NonText guifg=#808080 guibg=#303030 gui=none
hi LineNr guifg=#857b6f guibg=#000000 gui=none
hi StatusLine guifg=#f6f3e8 guibg=#444444 gui=italic
hi StatusLineNC guifg=#857b6f guibg=#444444 gui=none
hi VertSplit guifg=#444444 guibg=#444444 gui=none
hi Folded guibg=#384048 guifg=#a0a8b0 gui=none
hi Title guifg=#f6f3e8 guibg=NONE gui=bold
hi Visual guifg=#f6f3e8 guibg=#444444 gui=none
hi SpecialKey guifg=#808080 guibg=#343434 gui=none

" " Syntax highlighting
hi Comment guifg=#99968b gui=italic
hi Todo guifg=#8f8f8f gui=italic
hi Constant guifg=#e5786d gui=none
hi String guifg=#95e454 gui=italic
hi Identifier guifg=#cae682 gui=none
hi Function guifg=#cae682 gui=none
hi Type guifg=#cae682 gui=none
hi Statement guifg=#8ac6f2 gui=none
hi Keyword guifg=#8ac6f2 gui=none
hi PreProc guifg=#e5786d gui=none
hi Number guifg=#e5786d gui=none
hi Special guifg=#e7f6da gui=none
62 changes: 62 additions & 0 deletions vim/gvimrc
@@ -0,0 +1,62 @@
" An example for a gvimrc file.
" The commands in this are executed when the GUI is started.
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last change: 2001 Sep 02
"
" To use it, copy it to
" for Unix and OS/2: ~/.gvimrc
" for Amiga: s:.gvimrc
" for MS-DOS and Win32: $VIM\_gvimrc
" for OpenVMS: sys$login:.gvimrc

" Make gvim start without top toolbar
set guioptions-=T

" Make external commands work through a pipe instead of a pseudo-tty
"set noguipty

" set the X11 font to use
" set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1

set ch=2 " Make command line two lines high

set mousehide " Hide the mouse when typing text

" Make shift-insert work like in Xterm
map <S-Insert> <MiddleMouse>
map! <S-Insert> <MiddleMouse>
colorscheme wombat
" Only do this for Vim version 5.0 and later.
if version >= 500

" I like highlighting strings inside C comments
let c_comment_strings=1

" Switch on syntax highlighting if it wasn't on yet.
if !exists("syntax_on")
syntax on
endif

" Switch on search pattern highlighting.
" set hlsearch

" For Win32 version, have "K" lookup the keyword in a help file
"if has("win32")
" let winhelpfile='windows.hlp'
" map K :execute "!start winhlp32 -k <cword> " . winhelpfile <CR>
"endif

" Set nice colors
" background for normal text is light grey
" Text below the last line is darker grey
" Cursor is green, Cyan when ":lmap" mappings are active
" Constants are not underlined but have a slightly lighter background
" highlight Normal guibg=grey90
" highlight Cursor guibg=Green guifg=NONE
" highlight lCursor guibg=Cyan guifg=NONE
" highlight NonText guibg=grey80
" highlight Constant gui=NONE guibg=grey95
" highlight Special gui=NONE guibg=grey95

endif
91 changes: 91 additions & 0 deletions vim/vimrc
@@ -0,0 +1,91 @@
" All system-wide defaults are set in $VIMRUNTIME/debian.vim (usually just
" /usr/share/vim/vimcurrent/debian.vim) and sourced by the call to :runtime
" you can find below. If you wish to change any of those settings, you should
" do it in this file (/etc/vim/vimrc), since debian.vim will be overwritten
" everytime an upgrade of the vim packages is performed. It is recommended to
" make changes after sourcing debian.vim since it alters the value of the
" 'compatible' option.

" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages available in Debian.
runtime! debian.vim

" Uncomment the next line to make Vim more Vi-compatible
" NOTE: debian.vim sets 'nocompatible'. Setting 'compatible' changes numerous
" options, so any other options should be set AFTER setting 'compatible'.
"set compatible

" Vim5 and later versions support syntax highlighting. Uncommenting the
" following enables syntax highlighting by default.
if has("syntax")
syntax on
endif

" If using a dark background within the editing area and syntax highlighting
" turn on this option as well
" set background=dark

" Uncomment the following to have Vim jump to the last position when
" reopening a file
"if has("autocmd")
" au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
"endif

" Uncomment the following to have Vim load indentation rules and plugins
" according to the detected filetype.
if has("autocmd")
filetype plugin indent on
endif


" To show hidden characters http://vimcasts.org/episodes/show-invisibles/
" Shortcut to readily toggle 'set list'
nmap <leader>l :set list!<CR>
" Use the same symbols as TextMate for tabstops and EOLs
set listchars=tab:▸\ ,eol



" WHITE CHARACTERS RELATED SETTINGS : http://vimcasts.org/episodes/tabs-and-spaces/

" To convert all tabs to spaces
set expandtab

" Width of TAB character
set tabstop=4

" whitespace to be deleted when using backspace : when expandtab is enabled. softtabstop takes precedence over tabstop
set softtabstop=4

" whitespace to be inserted during indentation in normal mode: when expand tab is enabled
set shiftwidth=4

" Informing vim about the colorscheme of the terminal
" set t_Co=256

"Colorscheme
colorscheme wombat

"To allow vim to be more liberal with hidden buffers
set hidden

set autochdir
set clipboard+=unnamed
set nocompatible
set number
" The following are commented out as they cause vim to behave a lot
" differently from regular Vi. They are highly recommended though.
set showcmd " Show (partial) command in status line.
set showmatch " Show matching brackets.
set ignorecase " Do case insensitive matching
"set smartcase " Do smart case matching
set incsearch " Incremental search
"set autowrite " Automatically save before commands like :next and :make
"set hidden " Hide buffers when they are abandoned
set mouse=a " Enable mouse usage (all modes)

" Source a global configuration file if available
if filereadable("/etc/vim/vimrc.local")
source /etc/vim/vimrc.local
endif

0 comments on commit 4bb3297

Please sign in to comment.