better distraction free mode
This commit is contained in:
parent
b84c98f005
commit
4e1a97b1ed
|
@ -68,6 +68,7 @@ Plug 'tpope/vim-speeddating' " vim knows about date-like text objects
|
||||||
Plug 'michaeljsmith/vim-indent-object' " adds an indentation level text object
|
Plug 'michaeljsmith/vim-indent-object' " adds an indentation level text object
|
||||||
Plug 'wellle/targets.vim' " adds some more handy text objects
|
Plug 'wellle/targets.vim' " adds some more handy text objects
|
||||||
Plug 'ternjs/tern_for_vim', { 'do': 'npm install' }
|
Plug 'ternjs/tern_for_vim', { 'do': 'npm install' }
|
||||||
|
Plug 'mikewest/vimroom'
|
||||||
|
|
||||||
Plug 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --all'} " fuzzy file finding
|
Plug 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --all'} " fuzzy file finding
|
||||||
Plug 'junegunn/fzf.vim' " helpers for using fzf in vim
|
Plug 'junegunn/fzf.vim' " helpers for using fzf in vim
|
||||||
|
@ -189,6 +190,7 @@ endfunction
|
||||||
let s:distractionFreeMode = 0
|
let s:distractionFreeMode = 0
|
||||||
fun! DistractionFreeModeFunc()
|
fun! DistractionFreeModeFunc()
|
||||||
AirlineToggle
|
AirlineToggle
|
||||||
|
VimroomToggle
|
||||||
if s:distractionFreeMode == 0
|
if s:distractionFreeMode == 0
|
||||||
let s:distractionFreeMode = 1
|
let s:distractionFreeMode = 1
|
||||||
set laststatus=0
|
set laststatus=0
|
||||||
|
@ -196,6 +198,7 @@ fun! DistractionFreeModeFunc()
|
||||||
set noruler
|
set noruler
|
||||||
set noshowcmd
|
set noshowcmd
|
||||||
set nonumber
|
set nonumber
|
||||||
|
hi NonText ctermfg=black guifg=black
|
||||||
else
|
else
|
||||||
let s:distractionFreeMode = 0
|
let s:distractionFreeMode = 0
|
||||||
set showmode
|
set showmode
|
||||||
|
@ -203,9 +206,12 @@ fun! DistractionFreeModeFunc()
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
set showcmd
|
set showcmd
|
||||||
set number
|
set number
|
||||||
|
hi NonText ctermfg=gray guifg=gray
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
nnoremap <silent> <Leader>mz :DistractionFreeMode<CR>
|
||||||
|
|
||||||
:command! SpaceIndents call ShowSpaceIndentation()
|
:command! SpaceIndents call ShowSpaceIndentation()
|
||||||
:command! ShowSpaceIndents call ShowSpaceIndentation()
|
:command! ShowSpaceIndents call ShowSpaceIndentation()
|
||||||
:command! DistractionFreeMode call DistractionFreeModeFunc()
|
:command! DistractionFreeMode call DistractionFreeModeFunc()
|
||||||
|
|
Reference in a new issue