This commit is contained in:
2015-10-02 04:00:34 +02:00
parent 5588f08075
commit 56f2017437
4 changed files with 23 additions and 8 deletions

View File

@@ -22,6 +22,8 @@ Plugin 'tpope/vim-commentary'
Plugin 'tpope/vim-fugitive'
Plugin 'tpope/vim-speeddating'
Plugin 'tpope/vim-surround'
Plugin 'junegunn/goyo.vim'
Plugin 'junegunn/limelight.vim'
"Plugin 'Lokaltog/vim-easymotion'
"Plugin 'PeterRincker/vim-argumentative'
@@ -64,7 +66,7 @@ set number
set wildmode=list:longest
set lazyredraw
set wildmenu
set showmatch
set noshowmatch
set colorcolumn=80
set laststatus=2
set matchtime=5
@@ -136,6 +138,7 @@ set ttimeout
set timeoutlen=1000
set ttimeoutlen=0
set virtualedit=block
set whichwrap=b,s
" == line breaking ==
set linebreak
@@ -182,6 +185,7 @@ nnoremap <leader>v <C-w>v<C-w>l
nnoremap <leader>u :GundoToggle<CR>
nmap <leader>w :Goyo<CR>:TogglePencil<CR>:Limelight!!<CR>
" no more ex mode
nnoremap Q <nop>
@@ -229,6 +233,16 @@ let g:airline#extensions#whitespace#enabled = 1
let g:airline#extensions#whitespace#symbol = ''
let g:airline#extensions#whitespace#checks = ['trailing']
" == pencil ==
let g:pencil#textwidth = 80
let g:pencil#autoformat = 1
let g:pencil#cursorwrap = 1
" == goyo ==
let g:goyo_width = 80
let g:goyo_height = "90%"
let g:goyo_linenr = 0
" === functions ===
function! DeleteTrailingWS()
exe "normal mz"