2010-05-14 07:54:29 +00:00
|
|
|
|
" vim config
|
|
|
|
|
" Ryan Cavicchioni
|
|
|
|
|
|
2010-04-08 19:06:46 +00:00
|
|
|
|
if $MONO != "yes"
|
|
|
|
|
set t_Co=256 " Set to 256 color mode.
|
|
|
|
|
syntax on " Enable syntax highlighting.
|
|
|
|
|
colorscheme darkburn " Set color scheme.
|
2010-04-09 20:23:16 +00:00
|
|
|
|
set nonumber " Enable line numbering.
|
|
|
|
|
else
|
2010-04-09 20:28:57 +00:00
|
|
|
|
" makes the autocmd's work when in MONO mode.
|
2010-04-09 20:23:16 +00:00
|
|
|
|
filetype on
|
2010-04-08 19:06:46 +00:00
|
|
|
|
endif
|
2010-04-09 18:52:34 +00:00
|
|
|
|
if has("gui_running")
|
2010-05-11 21:47:15 +00:00
|
|
|
|
if has("win32")
|
2010-05-17 21:52:48 +00:00
|
|
|
|
set guifont=Droid_Sans_Mono:h9:cANSI
|
2010-05-11 21:47:15 +00:00
|
|
|
|
elseif has("mac")
|
|
|
|
|
"set guifont=Menlo\ Bold
|
|
|
|
|
"set guifont=Bitstream\ Vera\ Sans\ Mono\ Bold
|
|
|
|
|
set guifont=DejaVu\ Sans\ Mono\ Bold
|
|
|
|
|
endif
|
2010-05-14 07:51:39 +00:00
|
|
|
|
|
2010-05-12 01:22:13 +00:00
|
|
|
|
" general gui settings
|
2010-05-17 21:51:10 +00:00
|
|
|
|
set guioptions=egt
|
2010-05-12 01:22:13 +00:00
|
|
|
|
colorscheme tesla
|
|
|
|
|
syntax on
|
2010-04-09 18:52:34 +00:00
|
|
|
|
endif
|
2010-04-08 19:06:46 +00:00
|
|
|
|
set nowrap " Disable word wrap.
|
|
|
|
|
set tabstop=4 " Set tab to 4 characters.
|
|
|
|
|
set smartindent " Enable smart indent.
|
2010-04-06 13:06:12 +00:00
|
|
|
|
set autoindent
|
2010-04-08 19:06:46 +00:00
|
|
|
|
set shiftwidth=4 " Set smartindent width to 4 characters.
|
|
|
|
|
set hlsearch " Highlight search and increment search.
|
2010-04-06 13:06:12 +00:00
|
|
|
|
set incsearch
|
2010-04-08 19:06:46 +00:00
|
|
|
|
set showmatch " Show matching brackets.
|
|
|
|
|
set nomodeline " Disable modeline support.
|
2010-04-06 13:06:12 +00:00
|
|
|
|
set softtabstop=4
|
2010-04-08 19:06:46 +00:00
|
|
|
|
set showcmd " Show partial command in status line.
|
|
|
|
|
set ignorecase " Case insensitive searching.
|
|
|
|
|
set smartcase " Smart case matching.
|
|
|
|
|
set autowrite " Save before switching buffers.
|
2010-04-14 21:16:42 +00:00
|
|
|
|
set number
|
2010-04-28 16:13:16 +00:00
|
|
|
|
set smarttab
|
2010-05-14 12:56:42 +00:00
|
|
|
|
set listchars=tab:<3A>\ ,eol:$
|
2010-04-06 13:06:12 +00:00
|
|
|
|
|
2010-04-08 19:06:46 +00:00
|
|
|
|
au BufNewFile,BufRead *.txt set ft=text
|
|
|
|
|
au FileType text set tw=72 spell spelllang=en_us nonumber
|
2010-04-06 13:06:12 +00:00
|
|
|
|
|
|
|
|
|
au FileType mail set tw=72 spell spelllang=en_us nonumber
|
|
|
|
|
au FileType gitcommit set tw=72 spell spelllang=en_us nonumber
|
2010-07-06 04:59:57 +00:00
|
|
|
|
au FileType html set tabstop=2 shiftwidth=2
|
2010-05-13 17:42:33 +00:00
|
|
|
|
|
|
|
|
|
" keyboard shortcuts
|
|
|
|
|
nmap <leader>l :set list!<CR>
|