2014-07-25 23:51:14 -04:00
|
|
|
"============================================================"
|
|
|
|
" "
|
|
|
|
" Darkcloud Vim Config: vimpagerrc "
|
|
|
|
" "
|
|
|
|
" By: Kevin MacMartin (prurigro@gmail.com) "
|
|
|
|
" Website: https://github.com/prurigro/darkcloud-vimconfig "
|
|
|
|
" "
|
|
|
|
" License: MIT "
|
|
|
|
" "
|
|
|
|
"============================================================"
|
|
|
|
|
|
|
|
"darkcloud vim config folder path: {{{
|
|
|
|
" if you want to use darkcloud-vimconfig as a package without symlinking
|
|
|
|
" the vim folder or placing it @ /etc/darkcloud-vimconfig, create a file
|
|
|
|
" @ ~/.vim/darkcloud-path.vim and in it place the following, except with
|
|
|
|
" the path pointing to the cloned repo:
|
|
|
|
"
|
|
|
|
" let g:darkcloudpath="/etc/darkcloud-vimconfig"
|
|
|
|
|
|
|
|
if filereadable(glob("~/.vim/darkcloud-path.vim"))
|
|
|
|
source ~/.vim/darkcloud-path.vim
|
|
|
|
else
|
|
|
|
let g:darkcloudpath="/etc/darkcloud-vimconfig"
|
|
|
|
endif
|
|
|
|
"}}}
|
|
|
|
|
|
|
|
"LOAD DARKCLOUD CONFIG AND THEME FILES: (relevant to vimpager) {{{
|
|
|
|
"Add Config Directory: (distro-agnostic system-wide)
|
|
|
|
let &runtimepath=printf('%s,%s/vim,%s/vim/after',&runtimepath,g:darkcloudpath,g:darkcloudpath)
|
|
|
|
|
|
|
|
"Load Colour Scheme:
|
|
|
|
colorscheme darkcloud
|
|
|
|
|
|
|
|
"Load Settings:
|
|
|
|
runtime config/settings.vim
|
|
|
|
|
|
|
|
"Init Plugin Loader:
|
|
|
|
runtime bundle/vim-pathogen/autoload/pathogen.vim
|
|
|
|
|
|
|
|
"Load Plugins:
|
2014-07-26 00:32:48 -04:00
|
|
|
execute pathogen#infect('bundle.pager/{}')
|
2014-07-25 23:51:14 -04:00
|
|
|
|
|
|
|
"Load After Config:
|
|
|
|
runtime config/after.vim
|
|
|
|
|
|
|
|
"Tweak Settings:
|
|
|
|
set nocursorline nocursorcolumn "disable cursor column/line highlighting
|
|
|
|
set nofoldenable "disable the fold column
|
|
|
|
set noru laststatus=0 noshowmode "remove statusline
|
2014-07-26 03:08:33 -04:00
|
|
|
|
|
|
|
"Keymappings:
|
|
|
|
map <C-ScrollWheelUp> <Nop>
|
|
|
|
map <C-ScrollWheelDown> <Nop>
|
|
|
|
map <A-ScrollWheelUp> <Nop>
|
|
|
|
map <A-ScrollWheelDown> <Nop>
|
|
|
|
nnoremap <C-ScrollWheelUp> 4zl
|
|
|
|
xnoremap <C-ScrollWheelUp> 4zl
|
|
|
|
inoremap <C-ScrollWheelUp> <C-O>4zl
|
|
|
|
nnoremap <C-ScrollWheelDown> 4zh
|
|
|
|
xnoremap <C-ScrollWheelDown> 4zh
|
|
|
|
inoremap <C-ScrollWheelDown> <C-O>4zh
|
|
|
|
nnoremap <A-ScrollWheelUp> zl
|
|
|
|
xnoremap <A-ScrollWheelUp> zl
|
|
|
|
inoremap <A-ScrollWheelUp> <C-O>zl
|
|
|
|
nnoremap <A-ScrollWheelDown> zh
|
|
|
|
xnoremap <A-ScrollWheelDown> zh
|
|
|
|
inoremap <A-ScrollWheelDown> <C-O>zh
|
|
|
|
map <Home> 0
|
|
|
|
map <End> $
|
2014-07-25 23:51:14 -04:00
|
|
|
"}}}
|