From 9764618907ee488af0c51c8951c695f52cde5c2d Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 28 Feb 2015 14:30:45 +0100 Subject: Added configuration for distraction free reading in _Vim_ * also added a comment listing all expected _Vim_ plugins --- vim/.vimrc | 51 ++++++++++++++++++++++++++++++++++----------------- 1 file changed, 34 insertions(+), 17 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index 52b22c1..56037ac 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -1,3 +1,15 @@ +" The following plugins are expected to be installed: +" * pathogen -- autoload other plugins +" * ctrlp.vim -- fuzzy file search +" * gundo.vim -- visualize undo tree +" * vim-airline -- better status bar +" * vim-unimpaired -- bracket mappings +" * vim-csapprox -- approximate color scheme for cli +" * vim-gitgutter -- display git diffs alongside line numbers +" * vim-renamer -- file renaming utility +" * vim-vimwiki -- makes it easier to manage e.g. notes +" * goyo.vim -- undistracted writing mode + call pathogen#infect() syntax enable @@ -22,6 +34,7 @@ set tabstop=4 shiftwidth=4 set backspace=indent,eol,start set listchars=tab:\•\ set list +set linebreak set hlsearch set incsearch @@ -57,22 +70,26 @@ nnoremap k nnoremap j set laststatus=2 -let g:airline_theme='akr' -let g:airline#extensions#tabline#enabled=1 -let g:airline#extensions#tabline#show_buffers=0 -let g:airline#extensions#tabline#show_tab_type=0 -let g:airline#extensions#tabline#formatter='unique_tail_improved' -let g:airline#extensions#tabline#buffer_idx_mode=0 -let g:airline#extensions#tabline#left_sep='' -let g:airline#extensions#tabline#left_alt_sep='' -let g:airline#extensions#tabline#right_sep='' -let g:airline#extensions#tabline#right_alt_sep='' -let g:airline#extensions#tabline#show_close_button=0 - -let g:vimwiki_list = [{'path': '~/note/'}] -let g:gitgutter_enabled = 0 +let g:airline_theme = 'akr' +let g:airline#extensions#tabline#enabled = 1 +let g:airline#extensions#tabline#show_buffers = 0 +let g:airline#extensions#tabline#show_tab_type = 0 +let g:airline#extensions#tabline#formatter = 'unique_tail_improved' +let g:airline#extensions#tabline#buffer_idx_mode = 0 +let g:airline#extensions#tabline#left_sep = '' +let g:airline#extensions#tabline#left_alt_sep = '' +let g:airline#extensions#tabline#right_sep = '' +let g:airline#extensions#tabline#right_alt_sep = '' +let g:airline#extensions#tabline#show_close_button = 0 + +let g:vimwiki_list = [{'path': '~/note/'}] +let g:gitgutter_enabled = 0 let g:gitgutter_highlight_lines = 1 +let g:goyo_width = 90 +let g:goyo_margin_top = 1 +let g:goyo_margin_bottom = 0 -nnoremap :GundoToggle -nnoremap :GitGutterToggle -nnoremap :set cursorline! +nnoremap :GundoToggle +nnoremap :GitGutterToggle +nnoremap :set cursorline! +nnoremap :Goyo -- cgit v1.2.3