dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 0dd4d755370a07c3c86b4f03f2bb3526ee34a89e
parent 12449bc78d31816b52c2d164c89944dce491eb60
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Wed,  6 Sep 2017 13:04:18 -0400

add vim-wheel and bindings Ctrl-shift-j, Ctrl-shift-k

Diffstat:
M.vim/filetypes.vim | 2+-
M.vim/plugins.vim | 5+++++
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/.vim/filetypes.vim b/.vim/filetypes.vim @@ -4,7 +4,7 @@ autocmd! BufNewFile,BufRead *.ino setlocal ft=arduino autocmd! BufNewFile,BufRead *.cuh setlocal ft=cuda " enable spell and settings for text writing by default for certain file types -autocmd FileType tex,latex,md,rst,mail +autocmd FileType tex,latex,md,markdown,mkd,rst,mail \ call pencil#init({'wrap': 'soft', 'textwidth': 80, 'conceallevel': 3}) \ | call litecorrect#init() \ | setl spell spl=en_us diff --git a/.vim/plugins.vim b/.vim/plugins.vim @@ -18,6 +18,7 @@ Plug 'guns/xterm-color-table.vim' " show color table with :XtermColorTable Plug 'Yggdroot/indentLine' " show indent levels with thin vertical lines Plug 'embear/vim-foldsearch' " hide/show lines matching a patter + """""" File system """"""" Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } Plug 'kien/ctrlp.vim' @@ -31,6 +32,7 @@ Plug 'w0rp/ale' " asynchronous syntax check """""" Buffer motion """""" Plug 'Lokaltog/vim-easymotion' +Plug 'reedes/vim-wheel' Plug 'christoomey/vim-tmux-navigator' " add/remove bookmark: mm @@ -118,3 +120,6 @@ au Syntax * RainbowParenthesesLoadBraces let g:vim_markdown_folding_disabled=1 let g:vim_markdown_math=1 +" scroll file without moving cursor position on screen +let g:wheel#map#up = '<C-K>' +let g:wheel#map#down = '<C-J>'