Skip to content

Commit

Permalink
Add distraction free environment for gvim (for writing prose)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjousse committed Oct 27, 2013
1 parent 1b313b5 commit dc2abaf
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 17 deletions.
67 changes: 67 additions & 0 deletions vim/colors/iawriter.vim
@@ -0,0 +1,67 @@
"
" Last Change: 2011/12/11
" Maintainer: Jacek Dominiak <doj (at) ptpbs (dot) com>
"
" Description: Vim color file
"

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

let g:colors_name="iawriter"

hi Cursor guifg=fg guibg=#990000
hi Normal guifg=#424242 guibg=#f5f6f6 ctermfg=black ctermbg=white
hi DiffAdd guibg=#c0ffe0 ctermbg=3
hi DiffDelete guifg=#ff8097 guibg=#ffe0f7 ctermfg=4 ctermbg=5
hi DiffChange guibg=#cfefff ctermbg=9
hi DiffText guibg=#bfdfff gui=NONE ctermbg=6 cterm=NONE
hi NonText guifg=grey50 guibg=grey86 gui=NONE ctermfg=darkblue
hi SpecialKey guifg=grey50 guibg=grey86 gui=NONE ctermfg=darkblue
hi NonText guifg=grey50 guibg=grey86 ctermfg=blue
hi LineNr guifg=grey50 guibg=grey86 ctermfg=darkblue
hi Search guibg=#fff999
hi StatusLine guifg=bg guibg=#333333 gui=NONE ctermfg=bg ctermbg=black cterm=NONE
hi StatusLineNC guifg=bg guibg=grey40 gui=NONE ctermfg=bg ctermbg=black cterm=NONE
hi Visual guifg=fg guibg=#ccccdd gui=NONE
hi VisualNOS guifg=bg guibg=#ccccdd gui=NONE

" syntax highlighting groups
hi Comment guifg=#000099 guibg=bg ctermfg=darkblue
hi String guifg=#b30000 guibg=bg ctermfg=darkred
hi Constant guifg=#c033ff guibg=bg ctermfg=darkmagenta
hi Statement guifg=black guibg=bg ctermfg=black cterm=NONE
hi PreProc guifg=#335588 guibg=bg gui=NONE ctermfg=blue
hi Type guifg=#338855 guibg=bg gui=NONE ctermfg=darkgreen
hi StorageClass guifg=#990000 guibg=bg ctermfg=red
hi Special guifg=#6688ff guibg=bg ctermfg=darkcyan
hi Function guifg=#117777 guibg=bg ctermfg=red
hi Title guifg=black guibg=bg ctermfg=black

" showpairs plugin
" for cursor on paren
hi ShowPairsHL guibg=#c4ffc4 ctermbg=lightgreen
" for cursor between parens
hi ShowPairsHLp guibg=#c4f0c4 ctermbg=lightgreen
" unmatched paren
hi ShowPairsHLe guibg=#ff5555 ctermbg=red

" settings for Vim7
if version >= 700
hi MatchParen guibg=#c4ffc4 ctermbg=lightgreen
" Spell
hi SpellBad guifg=#cc0000 gui=undercurl guisp=#cc0000 ctermfg=red cterm=underline
hi SpellRare guifg=magenta gui=undercurl ctermfg=magenta cterm=underline
hi SpellCap gui=undercurl guisp=#22cc22 cterm=underline
" Completion menu
hi Pmenu guibg=#ffffcc ctermbg=yellow
hi PmenuSel guibg=#ddddaa ctermbg=lightcyan cterm=NONE
hi PmenuSbar guibg=#999966 ctermbg=lightcyan
" Tab line
hi TabLine guibg=grey70 cterm=underline
hi TabLineSel gui=NONE cterm=NONE
hi TabLineFill guifg=black guibg=grey80 cterm=underline
endif
38 changes: 26 additions & 12 deletions vim/vimrc
Expand Up @@ -20,6 +20,7 @@ Bundle 'mileszs/ack.vim'
Bundle 'kien/ctrlp.vim'
Bundle 'hallison/vim-markdown'
Bundle 'tpope/vim-surround'
Bundle 'mikewest/vimroom'
Bundle 'LustyExplorer'
Bundle 'matchit'
Bundle 'Align'
Expand All @@ -28,22 +29,35 @@ Bundle 'Align'
nmap <silent> <leader>ev :e $MYVIMRC<CR>
nmap <silent> <leader>sv :so $MYVIMRC<C
" Colorsheme
set t_Co=256

if has("gui")
set guifont=DejaVuSansMono


" When writing, I'm using gvim and light theme
if has('gui_running')
set background=light
colorscheme iawriter

set guifont=Droid\ Sans\ Mono\ 12
"set guifont=Cousine\ 13
set guioptions-=m "remove menu bar
set guioptions-=T "remove toolbar
set guioptions-=r "remove right scroll bar
set guioptions-=L "remove left scroll bar
let g:vimroom_guibackground="white"
setlocal spell spelllang=fr
else
" Colorsheme
set t_Co=256
set background=dark
colorscheme solarized

" Colorsheme
let g:solarized_termcolors=16
let g:solarized_termtrans=0
let g:solarized_menu=0
let g:solarized_italic=0
endif

" Colorsheme
let g:solarized_termcolors=16
let g:solarized_termtrans=0
let g:solarized_menu=0
let g:solarized_italic=0
set background=dark
colorscheme solarized

" Set title on X window
set title
Expand Down Expand Up @@ -118,7 +132,7 @@ filetype plugin on
filetype indent on

"highlight whitespaces
set list
"set list " not compatible with vimroom linebreak
set listchars=tab:>.,trail:.,extends:#,nbsp:.
autocmd filetype html,xml set listchars-=tab:>.

Expand Down
10 changes: 5 additions & 5 deletions vim/vimrc.bepo
Expand Up @@ -7,12 +7,12 @@ noremap É W
" Use {W} as Ctrl+W :
noremap w <C-w>
noremap W <C-w><C-w>

" [HJKL] -> {CTSR}
noremap c h
noremap r l
noremap t j
noremap s k
noremap t gj
noremap s gk

noremap C H
noremap R L
Expand All @@ -22,7 +22,7 @@ noremap S K

noremap zs zj
noremap zt zk

" {HJKL} <- [CTSR]
" {J} = « Until » (j = next, J = previous)
noremap j t
Expand All @@ -39,7 +39,7 @@ noremap K S
" Spell checking
noremap ]k ]s
noremap [k [s

" Next/prev screen line
noremap gs gk
noremap gt gj
Expand Down

0 comments on commit dc2abaf

Please sign in to comment.