Skip to content

Commit

Permalink
Update 12/4/17
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekreeki committed Apr 12, 2017
1 parent d3e1baa commit 22e27cf
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions .nvimrc
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'

Expand Down Expand Up @@ -157,14 +162,15 @@ set gdefault
set incsearch
set showmatch
set hlsearch
set noic
set gdefault
set scs
set backspace=indent,eol,start
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
Expand Down Expand Up @@ -238,7 +244,7 @@ nnoremap ů g;
nnoremap § ``
" Press Space to turn off highlighting and clear any message already displayed.
nnoremap <silent> <Space> :nohlsearch<Bar>wincmd =<Bar>:redraw!<Bar>:echo<CR>
nnoremap <silent> <Space> :nohlsearch<Bar>wincmd =<Bar>:redraw!<Bar>:checktime<Bar>:echo<CR>
" Visually select the text that was last edited/pasted
nnoremap gV `[v`]
Expand Down Expand Up @@ -828,7 +834,6 @@ augroup tern_for_vim_config
let g:tern#arguments = ['--persistent']

nmap <silent> D :TernDef<CR>
nmap R :TernRename<CR>
augroup END

augroup easygrep_config
Expand Down Expand Up @@ -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 <SID>goyo_enter()
autocmd! User GoyoLeave nested call <SID>goyo_leave()
augroup END

augroup quickwrap_config
autocmd!

Expand Down

0 comments on commit 22e27cf

Please sign in to comment.