Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kflorence committed May 4, 2011
0 parents commit 4f5cbd5
Show file tree
Hide file tree
Showing 4 changed files with 219 additions and 0 deletions.
1 change: 1 addition & 0 deletions readme.textile
@@ -0,0 +1 @@
Configuration storage receptacle
105 changes: 105 additions & 0 deletions vim/.vimrc
@@ -0,0 +1,105 @@
" This must be first, because it changes other options as side effect
set nocompatible

" enable mouse support in vim
set mouse=a
" don't wrap lines
set nowrap
" ignore case in search unless search has capital
set ignorecase
" ignore case if search pattern is all lowercase
set smartcase
" indenting tabs according to shiftwidth, not tabstop
set smarttab
" show search matches as you type
set incsearch
" highlight search terms
set hlsearch
" always set autoindent
set autoindent
" copy the previous indentation on autoindenting
set copyindent
" allow bs over everything in insert mode
set backspace=indent,eol,start
" indent is 2 columns
set shiftwidth=2
" use multiple of shiftwidth when indenting with '<' and '>'
set shiftround
" tab is 2 columns
set tabstop=2
" expand tabs into spaces
set expandtab
" set show matching parenthesis
set showmatch
" open at 120 columns
set columns=120
" set out max expanded
set lines=62
" cursor row, column, file percentage in bottom of vim
set ruler
" show line numbers
set number
" set cross-hairs on cursor
set cursorcolumn cursorline

" syntax folding unless overridden by filetype setting
set foldmethod=syntax

" no more backup files!
set nobackup
set noswapfile

" highlight whitespaces
set list
set listchars=tab-,trail:·,extends:#,nbsp:·

" enable the tab completion menu
set wildmenu
" on tab, complete to fullest autocompletion, list out remaining completions
set wildmode=list:longest,list

" prevent autoformatting during paste:
set pastetoggle=<F2>

" enable per-directory .vimrc files and disable unsafe commands in those files
set exrc
set secure

" file tabs
map <leader>tn :tabnew %<cr>
map <leader>tc :tabclose<cr>
map <leader>tm :tabmove
map <leader>te :tabedit
map <leader>tf :tabfind
map <C-Tab> :tabnext<cr>
map <C-S-Tab> :tabprev<cr>
imap <C-Tab> <esc>:tabnext<cr>
imap <C-S-Tab> <esc>:tabprev<cr>
" Tired of clearing highlighted searches by searching for “ldsfhjkhgakjks”?
" Use this to clear search buffer when you press ,/
nmap <silent> ,/ :nohlsearch<CR>
" makes j and k work the way you expect instead of working in some archaic
" 'movement by file line instead of screen line' fashion
nnoremap j gj
nnoremap k gk
" Next, get rid of that stupid goddamned help key that you will invaribly hit
" constantly while aiming for escape:
inoremap <F1> <ESC>
nnoremap <F1> <ESC>
vnoremap <F1> <ESC>
" colorscheme: wombat
set t_Co=256
colors wombat256

" detect the type of file, load applicable .vim files
filetype plugin indent on

" switch syntax highlighting on
syntax on

" makefile settings
autocmd BufEnter ?akefile* set noet ts=8 sw=8 nocindent
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
64 changes: 64 additions & 0 deletions vim/colors/wombat256.vim
@@ -0,0 +1,64 @@
" Vim color file
" Original Maintainer: Lars H. Nielsen (dengmao@gmail.com)
" Last Change: 2010-07-23
"
" Converting for 256-color terminals by
" Danila Bespalov (danila.bespalov@gmail.com)
" with great help of tool by Wolfgang Frisch (xororand@frexx.de)
" inspired by David Liang's version (bmdavll@gmail.com)

set background=dark

hi clear

if exists("syntax_on")
syntax reset
endif

let colors_name = "wombat256"


" General colors
hi Normal ctermfg=254 ctermbg=234 cterm=none guifg=#f6f3e8 guibg=#242424 gui=none
hi Cursor ctermfg=none ctermbg=241 cterm=none guifg=NONE guibg=#656565 gui=none
hi Visual ctermfg=7 ctermbg=238 cterm=none guifg=#f6f3e8 guibg=#444444 gui=none
" hi VisualNOS
" hi Search
hi Folded ctermfg=103 ctermbg=238 cterm=none guifg=#a0a8b0 guibg=#384048 gui=none
hi Title ctermfg=7 ctermbg=none cterm=bold guifg=#f6f3e8 guibg=NONE gui=bold
hi StatusLine ctermfg=7 ctermbg=238 cterm=none guifg=#f6f3e8 guibg=#444444 gui=italic
hi VertSplit ctermfg=238 ctermbg=238 cterm=none guifg=#444444 guibg=#444444 gui=none
hi StatusLineNC ctermfg=243 ctermbg=238 cterm=none guifg=#857b6f guibg=#444444 gui=none
hi LineNr ctermfg=243 ctermbg=0 cterm=none guifg=#857b6f guibg=#000000 gui=none
hi SpecialKey ctermfg=244 ctermbg=236 cterm=none guifg=#808080 guibg=#343434 gui=none
hi NonText ctermfg=244 ctermbg=236 cterm=none guifg=#808080 guibg=#303030 gui=none

" Vim >= 7.0 specific colors
if version >= 700
hi CursorLine ctermbg=236 cterm=none guibg=#2d2d2d
hi MatchParen ctermfg=7 ctermbg=243 cterm=bold guifg=#f6f3e8 guibg=#857b6f gui=bold
hi Pmenu ctermfg=7 ctermbg=238 guifg=#f6f3e8 guibg=#444444
hi PmenuSel ctermfg=0 ctermbg=192 guifg=#000000 guibg=#cae682
endif


" Syntax highlighting
hi Keyword ctermfg=111 cterm=none guifg=#8ac6f2 gui=none
hi Statement ctermfg=111 cterm=none guifg=#8ac6f2 gui=none
hi Constant ctermfg=173 cterm=none guifg=#e5786d gui=none
hi Number ctermfg=173 cterm=none guifg=#e5786d gui=none
hi PreProc ctermfg=173 cterm=none guifg=#e5786d gui=none
hi Function ctermfg=192 cterm=none guifg=#cae682 gui=none
hi Identifier ctermfg=192 cterm=none guifg=#cae682 gui=none
hi Type ctermfg=192 cterm=none guifg=#cae682 gui=none
hi Special ctermfg=194 cterm=none guifg=#e7f6da gui=none
hi String ctermfg=113 cterm=none guifg=#95e454 gui=italic
hi Comment ctermfg=246 cterm=none guifg=#99968b gui=italic
hi Todo ctermfg=245 cterm=none guifg=#8f8f8f gui=italic


" Links
hi! link FoldColumn Folded
hi! link CursorColumn CursorLine

" vim:set ts=4 sw=4 noet:

0 comments on commit 4f5cbd5

Please sign in to comment.