mirror of
https://github.com/prurigro/darkcloud-vimconfig.git
synced 2024-11-22 06:44:09 -05:00
Added vimpager info to the README + removed keyboard.vim from vimpager
and instead specified a custom set of mappings. Removed the SpellCheck plugin (it stopped working and wasn't very useful anyway)
This commit is contained in:
parent
112495115b
commit
0b755a454f
4 changed files with 26 additions and 7 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -40,9 +40,6 @@
|
||||||
[submodule "vim/bundle/ReplaceWithRegister"]
|
[submodule "vim/bundle/ReplaceWithRegister"]
|
||||||
path = vim/bundle/ReplaceWithRegister
|
path = vim/bundle/ReplaceWithRegister
|
||||||
url = https://github.com/vim-scripts/ReplaceWithRegister.git
|
url = https://github.com/vim-scripts/ReplaceWithRegister.git
|
||||||
[submodule "vim/bundle/SpellCheck"]
|
|
||||||
path = vim/bundle/SpellCheck
|
|
||||||
url = https://github.com/vim-scripts/SpellCheck.git
|
|
||||||
[submodule "vim/bundle/tcomment_vim"]
|
[submodule "vim/bundle/tcomment_vim"]
|
||||||
path = vim/bundle/tcomment_vim
|
path = vim/bundle/tcomment_vim
|
||||||
url = https://github.com/tomtom/tcomment_vim.git
|
url = https://github.com/tomtom/tcomment_vim.git
|
||||||
|
|
|
@ -44,6 +44,12 @@ A theme, config and collection of plugins for Vim.
|
||||||
* Place _darkcloud-vimconfig_ in the default location @ _/etc/darkcloud-vimconfig_.
|
* Place _darkcloud-vimconfig_ in the default location @ _/etc/darkcloud-vimconfig_.
|
||||||
* Create your own vimrc and have that set the _g:darkcloudpath_ variable before sourcing the included vimrc.
|
* Create your own vimrc and have that set the _g:darkcloudpath_ variable before sourcing the included vimrc.
|
||||||
|
|
||||||
|
### Vimpager ###
|
||||||
|
|
||||||
|
Once darkcloud-vimconfig has been set up, you can configure `vimpager` to use it by running: `ln -s /etc/darkcloud-vimconfig/vimpagerrc /etc/vimpagerrc` for a system-wide configuration, or `ln -s /etc/darkcloud-vimconfig/vimpagerrc ~/.vimpagerrc` for a given user (assuming you've used the default path @ _"/etc/darkcloud-vimconfig"_).
|
||||||
|
|
||||||
|
As usual, to have your system use vimpager in place of less, you'll need to set the PAGER environment variable to vimpager: `export PAGER=vimpager` and configure an alias for less: `alias less='vimpager'`.
|
||||||
|
|
||||||
## Configuration ##
|
## Configuration ##
|
||||||
|
|
||||||
* **Configure Variables**: The following variables can be added to _vim/vimrc.user_ and have their values set to the values you require:
|
* **Configure Variables**: The following variables can be added to _vim/vimrc.user_ and have their values set to the values you require:
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 090f34651339ba86597a0dd994a28369ef36586c
|
|
23
vimpagerrc
23
vimpagerrc
|
@ -40,9 +40,6 @@
|
||||||
"Load Plugins:
|
"Load Plugins:
|
||||||
execute pathogen#infect('bundle.pager/{}')
|
execute pathogen#infect('bundle.pager/{}')
|
||||||
|
|
||||||
"Load Keymappings:
|
|
||||||
runtime config/keyboard.vim
|
|
||||||
|
|
||||||
"Load After Config:
|
"Load After Config:
|
||||||
runtime config/after.vim
|
runtime config/after.vim
|
||||||
|
|
||||||
|
@ -50,4 +47,24 @@
|
||||||
set nocursorline nocursorcolumn "disable cursor column/line highlighting
|
set nocursorline nocursorcolumn "disable cursor column/line highlighting
|
||||||
set nofoldenable "disable the fold column
|
set nofoldenable "disable the fold column
|
||||||
set noru laststatus=0 noshowmode "remove statusline
|
set noru laststatus=0 noshowmode "remove statusline
|
||||||
|
|
||||||
|
"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> $
|
||||||
"}}}
|
"}}}
|
||||||
|
|
Loading…
Reference in a new issue