Permalink
Browse files

Updated vim theme and gvim

  • Loading branch information...
1 parent 690a835 commit b352cc78578800afcb9963a6fe2e9db2f9d3cc07 George Tsafas committed Mar 1, 2012
Showing with 21 additions and 26 deletions.
  1. +19 −24 .gvimrc
  2. +2 −2 .vim/colors/molokai.vim
View
@@ -1,9 +1,7 @@
+call pathogen#infect()
syntax on
-colorscheme wombat256mod
-set list
-set listchars=tab:•\ ,eol:¬,trail:.
-"set listchars=tab:\|\
-"hi SpecialKey ctermbg=232 guifg=#282828
+colorscheme molokai
+set listchars=tab:•\ ,eol:¬,trail:~
set guioptions-=T
set noerrorbells
set visualbell
@@ -31,7 +29,7 @@ set ignorecase
set smartcase
" Line Wrapping
-set wrap
+set nowrap
set textwidth=79
set formatoptions=qrn1
set linebreak " Wrap at wo
@@ -42,26 +40,26 @@ function! Tabstyle_tabs()
" Using 4 column tabs
set softtabstop=4
set shiftwidth=4
-" set tabstop=4
+ "set tabstop=4
set noexpandtab
endfunction
function! Tabstyle_spaces()
" Use 2 spaces
set softtabstop=4
set shiftwidth=4
-" set tabstop=4
+ set tabstop=4
set expandtab
endfunction
-
+
function! Tabstyle_makefile()
" Using 4 column tabs
set noexpandtab
set softtabstop=4
set shiftwidth=4
set tabstop=8
endfunction
-
+
call Tabstyle_spaces()
" Ctrl-C is copy (linewise if nothing is selected)
@@ -85,7 +83,7 @@ map <leader>[ :TlistToggle<CR>
map <leader><leader> :tabn<CR>
map <leader>/ :noh<CR>
-map <F12> <C>w=<CR>
+map <F12> <c-w>=<CR>
nnoremap <Down> gj
nnoremap <Up> gk
@@ -99,27 +97,24 @@ vnoremap <leader>pt :!perltidy -pbp<CR>
vmap <F2> y :new \| :e `pmpath <C-r>"`<CR>
nnoremap gf :sp<CR>gf
+
autocmd FileType perl setlocal equalprg=perltidy
autocmd BufNewFile,BufRead *.p? compiler perl
autocmd BufNewFile,BufRead *.conf, set ft=apache
-
autocmd BufNewFile,BufRead makefile, call Tabstyle_makefile()
autocmd BufNewFile,BufRead Makefile, call Tabstyle_makefile()
"set guifont=Envy\ Code\ R\ 8
-"set guifont=Monospace\ 8
-set guifont=Consolas\ 10
+set guifont=Monospace\ 8
let g:dbext_default_profile_cloud = 'type=MySQL:user=:passwd=:host='
let g:dbext_default_profile = 'cloud'
-"--------------------------------------------------
-" if has("gui_macvim") "Use Experimental Renderer option must be enabled for transparencY
-" set transparency=15
-" set guifont=Monaco:h10
-" set noantialias " I like my Monaco this way ;D
-" " Swipe to move between bufers :D
-" map <SwipeLeft> :bprev<CR>
-" map <SwipeRight> :bnext<CR>
-" endif
-"--------------------------------------------------
+"powerline
+set laststatus=2
+
+"Relative Numbers
+"autocmd InsertEnter * :set number
+"autocmd InsertLeave * :set relativenumber
+"autocmd FocusLost * :set number
+"autocmd FocusGained * :set relativenumber
@@ -177,10 +177,10 @@ if &t_Co > 255
hi Search ctermfg=253 ctermbg=66
" marks column
- hi SignColumn ctermfg=118 ctermbg=235
+ hi SignColumn ctermfg=118
hi SpecialChar ctermfg=161 cterm=bold
hi SpecialComment ctermfg=245 cterm=bold
- hi Special ctermfg=81 ctermbg=232
+ hi Special ctermfg=81
hi SpecialKey ctermfg=245
hi Statement ctermfg=161 cterm=bold

0 comments on commit b352cc7

Please sign in to comment.