diff options
| author | Max Christian Pohle | 2017-06-14 00:57:01 +0200 | 
|---|---|---|
| committer | Max Christian Pohle | 2017-06-14 00:57:01 +0200 | 
| commit | 6781e162edd90353e880f4b29cf4aa821df9eaac (patch) | |
| tree | 4e4677739fcc50f71b9e6e3c12d2c995728353a7 | |
| parent | 0ba8d75539ebb419fc4ce09253425069f2f8a2e2 (diff) | |
| download | vim-karlmarks-6781e162edd90353e880f4b29cf4aa821df9eaac.tar.bz2 vim-karlmarks-6781e162edd90353e880f4b29cf4aa821df9eaac.zip  | |
Added possibility to use vim as PAGER without plugin
| -rw-r--r-- | vimpagerrc | 4 | ||||
| -rw-r--r-- | vimrc-full | 12 | 
2 files changed, 10 insertions, 6 deletions
| @@ -4,7 +4,7 @@ let g:less.enabled = 0 | |||
| 4 | let g:less.number = 1 | 4 | let g:less.number = 1 | 
| 5 | let g:less.hlsearch = 0 | 5 | let g:less.hlsearch = 0 | 
| 6 | let g:vimpager.ansiesc = 0 | 6 | let g:vimpager.ansiesc = 0 | 
| 7 | let g:less.enabled = 0 | ||
| 7 | 8 | ||
| 8 | set shada="NONE" | ||
| 9 | set noswapfile | 9 | set noswapfile | 
| 10 | set viminfo="NONE" | 10 | set viminfo+=% | " restore buffer list | 
| @@ -91,7 +91,10 @@ let g:signify_update_on_bufenter = 0 | |||
| 91 | let g:signify_update_on_focusgained = 1 | 91 | let g:signify_update_on_focusgained = 1 | 
| 92 | 92 | ||
| 93 | " TESTING: | " plugins which I am currently trying... | 93 | " TESTING: | " plugins which I am currently trying... | 
| 94 | Plug 'rkitover/vimpager' | 94 | " Plug 'rkitover/vimpager' | 
| 95 | " found this command instead (use as PAGER): | ||
| 96 | " man -P 'nvim -R -u NORC -c":%!col -b" -c":set buftype=nowrite filetype=man" -' ls | ||
| 97 | " | ||
| 95 | " Plug 'Shougo/neocomplete.vim' | " alternative to YouCompleteMe in some cases | 98 | " Plug 'Shougo/neocomplete.vim' | " alternative to YouCompleteMe in some cases | 
| 96 | " Plug 'tpope/vim-characterize' | " normal mode: make ga show character names of Unicode chars (ga shows hex and dec values) | 99 | " Plug 'tpope/vim-characterize' | " normal mode: make ga show character names of Unicode chars (ga shows hex and dec values) | 
| 97 | 100 | ||
| @@ -168,7 +171,6 @@ set laststatus=2 | " required by AirLine, | |||
| 168 | set background=light | 171 | set background=light | 
| 169 | 172 | ||
| 170 | Plug 'itchyny/lightline.vim' | 173 | Plug 'itchyny/lightline.vim' | 
| 171 | Plug 'daviesjamie/vim-base16-lightline' | ||
| 172 | Plug 'taohex/lightline-buffer' | 174 | Plug 'taohex/lightline-buffer' | 
| 173 | 175 | ||
| 174 | " lightline-buffer ui settings | 176 | " lightline-buffer ui settings | 
| @@ -214,7 +216,7 @@ endfunction | |||
| 214 | autocmd BufEnter * let b:branchname = winwidth(0) > 70 ? fugitive#statusline() : '' | 216 | autocmd BufEnter * let b:branchname = winwidth(0) > 70 ? fugitive#statusline() : '' | 
| 215 | 217 | ||
| 216 | let g:lightline = { | 218 | let g:lightline = { | 
| 217 | \ 'colorscheme': 'Tomorrow', | 219 | \ 'colorscheme': 'Tomorrow_Night_Bright', | 
| 218 | \ 'separator': { 'left': "\ue0b0", 'right': "\ue0b2" }, | 220 | \ 'separator': { 'left': "\ue0b0", 'right': "\ue0b2" }, | 
| 219 | \ 'subseparator': { 'left': "\ue0b1", 'right': "\ue0b3" }, | 221 | \ 'subseparator': { 'left': "\ue0b1", 'right': "\ue0b3" }, | 
| 220 | \ 'active': { | 222 | \ 'active': { | 
| @@ -536,6 +538,8 @@ if has("autocmd") | |||
| 536 | function OnConfigChange() | 538 | function OnConfigChange() | 
| 537 | autocmd! |" Remove all vimrc autocommands | 539 | autocmd! |" Remove all vimrc autocommands | 
| 538 | source $MYVIMRC | 540 | source $MYVIMRC | 
| 541 | exec lightline#colorscheme() | ||
| 542 | exec lightline#update() | ||
| 539 | " AirlineRefresh | 543 | " AirlineRefresh | 
| 540 | endfunction | 544 | endfunction | 
| 541 | autocmd BufWritePost $MYVIMRC call OnConfigChange() | 545 | autocmd BufWritePost $MYVIMRC call OnConfigChange() | 
| @@ -762,7 +766,7 @@ endif | |||
| 762 | 766 | ||
| 763 | " avoids openin an empty buffer when restoring bufferlist from viminfo... | 767 | " avoids openin an empty buffer when restoring bufferlist from viminfo... | 
| 764 | if argc() == 0 | 768 | if argc() == 0 | 
| 765 | autocmd VimEnter * nested :bun | 769 | autocmd VimEnter * nested :silent bun | 
| 766 | endif | 770 | endif | 
| 767 | " au BufNewFile,BufRead,BufEnter *.cpp,*.hpp set omnifunc=omni#cpp#complete#Main | 771 | " au BufNewFile,BufRead,BufEnter *.cpp,*.hpp set omnifunc=omni#cpp#complete#Main | 
| 768 | " Enable omni completion. | 772 | " Enable omni completion. | 
