Skip to content

Commit

Permalink
Use the :normal command in visual mode
Browse files Browse the repository at this point in the history
  • Loading branch information
duff committed Jun 21, 2019
1 parent 9040b2a commit da1745c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,11 @@ inoremap <C-l> <space>=><space>
" --------------------------------------------------
vnoremap p pgvy
" --------------------------------------------------
" Make the dot command smarter in visual mode
" --------------------------------------------------
vnoremap . :norm.<CR>
" --------------------------------------------------
" Remove trailing whitespace
" --------------------------------------------------
Expand Down Expand Up @@ -461,4 +466,4 @@ let g:ackprg = 'rg --vimgrep'
set grepprg=rg\ --color=never
" let g:ctrlp_user_command = 'rg %s --files --color=never --glob ""'
let g:ctrlp_user_command = "rg %s --files --hidden -g '!.git'"

0 comments on commit da1745c

Please sign in to comment.