aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2017-06-14 00:57:01 +0200
committerMax Christian Pohle2017-06-14 00:57:01 +0200
commit6781e162edd90353e880f4b29cf4aa821df9eaac (patch)
tree4e4677739fcc50f71b9e6e3c12d2c995728353a7
parent0ba8d75539ebb419fc4ce09253425069f2f8a2e2 (diff)
downloadvim-6781e162edd90353e880f4b29cf4aa821df9eaac.tar.bz2
vim-6781e162edd90353e880f4b29cf4aa821df9eaac.zip
Added possibility to use vim as PAGER without plugin
-rw-r--r--vimpagerrc4
-rw-r--r--vimrc-full12
2 files changed, 10 insertions, 6 deletions
diff --git a/vimpagerrc b/vimpagerrc
index 308b509..9516d3c 100644
--- a/vimpagerrc
+++ b/vimpagerrc
@@ -4,7 +4,7 @@ let g:less.enabled = 0
4let g:less.number = 1 4let g:less.number = 1
5let g:less.hlsearch = 0 5let g:less.hlsearch = 0
6let g:vimpager.ansiesc = 0 6let g:vimpager.ansiesc = 0
7let g:less.enabled = 0
7 8
8set shada="NONE"
9set noswapfile 9set noswapfile
10set viminfo="NONE" 10set viminfo+=% | " restore buffer list
diff --git a/vimrc-full b/vimrc-full
index 225fc4a..0c0cbbf 100644
--- a/vimrc-full
+++ b/vimrc-full
@@ -91,7 +91,10 @@ let g:signify_update_on_bufenter = 0
91let g:signify_update_on_focusgained = 1 91let g:signify_update_on_focusgained = 1
92 92
93" TESTING: | " plugins which I am currently trying... 93" TESTING: | " plugins which I am currently trying...
94Plug '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,
168set background=light 171set background=light
169 172
170Plug 'itchyny/lightline.vim' 173Plug 'itchyny/lightline.vim'
171Plug 'daviesjamie/vim-base16-lightline'
172Plug 'taohex/lightline-buffer' 174Plug 'taohex/lightline-buffer'
173 175
174" lightline-buffer ui settings 176" lightline-buffer ui settings
@@ -214,7 +216,7 @@ endfunction
214autocmd BufEnter * let b:branchname = winwidth(0) > 70 ? fugitive#statusline() : '' 216autocmd BufEnter * let b:branchname = winwidth(0) > 70 ? fugitive#statusline() : ''
215 217
216let g:lightline = { 218let 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...
764if argc() == 0 768if argc() == 0
765 autocmd VimEnter * nested :bun 769 autocmd VimEnter * nested :silent bun
766endif 770endif
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.
..