diff options
author | Adrian Kummerlaender | 2015-02-28 14:30:45 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2015-02-28 14:30:45 +0100 |
commit | 9764618907ee488af0c51c8951c695f52cde5c2d (patch) | |
tree | 5e66b99af313f81c3330aba26008f7b0b7454c6d /vim | |
parent | 71b7365fd2a4000a852a6d9a4f504c484f643715 (diff) | |
download | dotfiles-9764618907ee488af0c51c8951c695f52cde5c2d.tar dotfiles-9764618907ee488af0c51c8951c695f52cde5c2d.tar.gz dotfiles-9764618907ee488af0c51c8951c695f52cde5c2d.tar.bz2 dotfiles-9764618907ee488af0c51c8951c695f52cde5c2d.tar.lz dotfiles-9764618907ee488af0c51c8951c695f52cde5c2d.tar.xz dotfiles-9764618907ee488af0c51c8951c695f52cde5c2d.tar.zst dotfiles-9764618907ee488af0c51c8951c695f52cde5c2d.zip |
Added configuration for distraction free reading in _Vim_
* also added a comment listing all expected _Vim_ plugins
Diffstat (limited to 'vim')
-rw-r--r-- | vim/.vimrc | 51 |
1 files changed, 34 insertions, 17 deletions
@@ -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 <A-up> <C-W>k nnoremap <A-down> <C-W>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 <F5> :GundoToggle<CR> -nnoremap <F6> :GitGutterToggle<CR> -nnoremap <F7> :set cursorline!<CR> +nnoremap <F5> :GundoToggle<CR> +nnoremap <F6> :GitGutterToggle<CR> +nnoremap <F7> :set cursorline!<CR> +nnoremap <F12> :Goyo<CR> |