"============================================================" " " " Darkcloud Vim Config: vimpager.vim " " " " By: Kevin MacMartin (prurigro@gmail.com) " " Website: https://github.com/prurigro/darkcloud-vimconfig " " " " License: MIT " " " "============================================================" " Undo unwanted less.vim keymappings map v noremap w noremap noremap noremap noremap " Main Settings: set nocursorline nocursorcolumn "disable cursor column/line highlighting set nofoldenable "disable the fold column set noru laststatus=0 noshowmode "remove statusline set clipboard=autoselect "autocopy selection set clipboard+=unnamed "use '*' reg if has('unnamedplus')|set clipboard+=unnamedplus|endif "if exists, use '+' reg set autoread "track file changes autocmd CursorHold * checktime "use CursorHold events to trigger checktime set conceallevel=2 "enable the conceal feature to hide unnecessary elements " Override Filetypes: runtime bundle.pager/vim-markdown-concealed/ftdetect/mkdc.vim " Mappings: " Mouse map map map map noremap 4zl noremap 4zh noremap zl noremap zh " Movement noremap 0 noremap noremap $ noremap noremap noremap noremap zL noremap zH noremap = + noremap _ - noremap 4k noremap 4j noremap noremap noremap gg0 noremap G$ noremap $ noremap ^ " Copy/Paste nnoremap y vy vnoremap y y nnoremap y vnoremap y nnoremap T vg_y vnoremap T g_y " Search map / (incsearch-forward) map ? (incsearch-backward) map g/ (incsearch-stay) nnoremap // ':noh' " Selection nnoremap gg0vG$ xnoremap gg0vG$ nnoremap a gg0vG$ xnoremap a gg0vG$ " Toggles nnoremap ':set wrap!:echo "line wrapping toggled"' xnoremap ':set wrap!gv' nnoremap ':set spell!:echo "spell checking toggled"' xnoremap ':set spell!gv'