Skip to content

Commit

Permalink
No more markdown in vim
Browse files Browse the repository at this point in the history
  • Loading branch information
lucapette committed Jan 30, 2017
1 parent dfe5875 commit 7910657
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 35 deletions.
4 changes: 0 additions & 4 deletions vim/after/ftplugin/markdown.vim

This file was deleted.

27 changes: 0 additions & 27 deletions vim/settings/autocommands.vim
@@ -1,29 +1,2 @@
" :help last-position-jump
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"zz" | endif

" https://github.com/junegunn/goyo.vim/wiki/Customization#ensure-q-to-quit-even-when-goyo-is-active
function! s:goyo_enter()
set background=light
set spell
colorscheme pencil

let b:quitting = 0
let b:quitting_bang = 0

autocmd QuitPre <buffer> let b:quitting = 1
cabbrev <buffer> q! let b:quitting_bang = 1 <bar> q!
endfunction

function! s:goyo_leave()
" Quit Vim if this is the only remaining buffer
if b:quitting && len(filter(range(1, bufnr('$')), 'buflisted(v:val)')) == 1
if b:quitting_bang
qa!
else
qa
endif
endif
endfunction

autocmd! User GoyoEnter nested call <SID>goyo_enter()
autocmd! User GoyoLeave nested call <SID>goyo_leave()
2 changes: 0 additions & 2 deletions vim/settings/plugins.vim
Expand Up @@ -29,8 +29,6 @@ let g:airline_symbols.linenr = '¶'
let g:airline_symbols.whitespace = 'Ξ'
let g:airline_section_c = '%F'

let g:pencil_higher_contrast_ui = 0

let g:markdown_fenced_languages = ['html', 'ruby', 'bash=sh', 'js=javascript']

let g:javascript_plugin_flow = 1
Expand Down
2 changes: 0 additions & 2 deletions vimrc
Expand Up @@ -16,12 +16,10 @@ Plugin 'gmarik/Vundle.vim'
Plugin 'AndrewRadev/splitjoin.vim'
Plugin 'altercation/vim-colors-solarized'
Plugin 'fatih/vim-go'
Plugin 'junegunn/goyo.vim'
Plugin 'kana/vim-textobj-user'
Plugin 'kien/ctrlp.vim'
Plugin 'mxw/vim-jsx'
Plugin 'pangloss/vim-javascript'
Plugin 'reedes/vim-colors-pencil'
Plugin 'rking/ag.vim'
Plugin 'tpope/vim-commentary'
Plugin 'tpope/vim-fugitive'
Expand Down

0 comments on commit 7910657

Please sign in to comment.