From 22e27cf8b0e7b288763f85e16057ffbebd065bb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Krej=C4=8D=C3=AD?= Date: Wed, 12 Apr 2017 20:53:15 +0200 Subject: [PATCH] Update 12/4/17 --- .nvimrc | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/.nvimrc b/.nvimrc index 68959d4..d0875ee 100644 --- a/.nvimrc +++ b/.nvimrc @@ -99,7 +99,6 @@ Plug 'othree/jspc.vim' Plug 'jparise/vim-graphql' Plug 'heavenshell/vim-jsdoc' Plug 'marijnh/tern_for_vim', { 'do': 'npm install' } -Plug 'ruanyl/vim-fixmyjs' " Other Languages Plug 'sheerun/vim-polyglot' @@ -109,6 +108,12 @@ Plug 'duff/vim-scratch' Plug 'xolox/vim-misc' Plug 'xolox/vim-notes' +" Writing +Plug 'junegunn/goyo.vim' +Plug 'junegunn/limelight.vim' +" Plug 'plasticboy/vim-markdown' +Plug 'gabrielelana/vim-markdown' + " Terminal Integration Plug 'kassio/neoterm' @@ -157,6 +162,7 @@ set gdefault set incsearch set showmatch set hlsearch +set noic set gdefault set scs set backspace=indent,eol,start @@ -164,7 +170,7 @@ set clipboard=unnamed,unnamedplus set wildmenu set wildmode=longest:full,full set completefunc=syntaxcomplete#Complete -execute "set colorcolumn=" . join(range(81,335), ',') +execute "set colorcolumn=" . join(range(86,335), ',') set shiftround set history=250 set updatetime=750 @@ -238,7 +244,7 @@ nnoremap ů g; nnoremap § `` " Press Space to turn off highlighting and clear any message already displayed. -nnoremap :nohlsearchwincmd =:redraw!:echo +nnoremap :nohlsearchwincmd =:redraw!:checktime:echo " Visually select the text that was last edited/pasted nnoremap gV `[v`] @@ -828,7 +834,6 @@ augroup tern_for_vim_config let g:tern#arguments = ['--persistent'] nmap D :TernDef - nmap R :TernRename augroup END augroup easygrep_config @@ -862,6 +867,24 @@ augroup reload_vimrc_config " autocmd BufWritePost $MYVIMRC source $MYVIMRC augroup END +augroup writing_config + autocmd! + + autocmd FileType Goyo wincmd L + autocmd! User GoyoEnter Limelight + autocmd! User GoyoLeave Limelight! + + function! s:goyo_enter() + set filetype=markdown + endfunction + + function! s:goyo_leave() + endfunction + + autocmd! User GoyoEnter nested call goyo_enter() + autocmd! User GoyoLeave nested call goyo_leave() +augroup END + augroup quickwrap_config autocmd!