Skip to content

Commit

Permalink
expand reset
Browse files Browse the repository at this point in the history
summary
- don't use gQ to enter ex mode
- don't use gq to format text
- don't use gw to format text
- add more default plugins to disable
  - allow netrw
    - which could be disabled
      - via
        - let g:loaded_netrwPlugin = 1
      - see
        - vim/vim#5073

credit
- https://github.com/mengelbrecht/dotfiles/blob/master/config/nvim/init.vim
  • Loading branch information
atweiden committed Jul 27, 2020
1 parent 4fe9e8e commit 44913d1
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .vim/config/reset.vim
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ let g:loaded_tar = 1
let g:loaded_tarPlugin = 1
let g:loaded_zip = 1
let g:loaded_zipPlugin = 1
let g:loaded_rrhelper = 1
let g:loaded_2html_plugin = 1
let g:loaded_vimball = 1
let g:loaded_vimballPlugin = 1
let g:loaded_getscript = 1
let g:loaded_getscriptPlugin = 1
let g:loaded_logipat = 1
let g:loaded_vimball = 1
let g:loaded_vimballPlugin = 1
let g:loaded_2html_plugin = 1
let g:loaded_logiPat = 1
let g:loaded_man = 1
let g:loaded_matchparen = 1
let g:loaded_spellfile_plugin = 1
let g:loaded_rrhelper = 1

" don't use spacebar to push cursor right
nnoremap <space> <nop>
Expand Down Expand Up @@ -253,6 +255,15 @@ vnoremap zw <nop>
" --- end spelling }}}

" don't use gQ to enter ex mode
nnoremap gQ <nop>
" don't use gq to format text
nnoremap gq <nop>
" don't use gw to format text
nnoremap gw <nop>
" don't let netrw vmap gx
vnoremap gx <nop>
Expand Down

0 comments on commit 44913d1

Please sign in to comment.