Skip to content

Instantly share code, notes, and snippets.

@LuRsT
Created September 5, 2012 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LuRsT/3634373 to your computer and use it in GitHub Desktop.
Save LuRsT/3634373 to your computer and use it in GitHub Desktop.
"Distraction free" vim config for my setup
" Adapted from http://laktek.com/2012/09/05/distraction-free-writing-with-vim/
" to work with my setup, linux + xterm
function! DistractionFreeWriting()
colorscheme iawriter
set background=light
set gfn=Cousine:h14 " font to use
"set lines=40 columns=100 " size of the editable area
"set fuoptions=background:#00f5f6f6 " macvim specific setting for editor's background color·
set guioptions-=r " remove right scrollbar
set laststatus=0 " don't show status line
set noruler " don't show ruler
"set fullscreen " go to fullscreen editing mode
set linebreak " break the lines on words
set nocursorline " don't show cursorline
set number " show numbers to get some left space
set numberwidth=10 " increase space in the left side
highlight LineNr term=bold cterm=NONE ctermfg=white ctermbg=NONE gui=NONE guifg=NONE guibg=NONE " Hide numbers
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment