]> git.rmz.io Git - dotfiles.git/commitdiff
vim: j and k should be silent
authorSamir Benmendil <me@rmz.io>
Sun, 24 Nov 2019 14:31:21 +0000 (14:31 +0000)
committerSamir Benmendil <me@rmz.io>
Sun, 24 Nov 2019 14:31:21 +0000 (14:31 +0000)
vim/vimrc

index 6bd7ead92d7325f060dc77b0fec6b81ae579d4ad..8b35883c1250dfa2c9f56045bd94dac5cc2030bf 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -421,8 +421,8 @@ cnoremap <C-A> <Home>
 cnoremap <C-E> <End>
 
 " proper movement when lines are wrapped
 cnoremap <C-E> <End>
 
 " proper movement when lines are wrapped
-noremap <expr> j (v:count == 0 ? 'gj' : 'j')
-noremap <expr> k (v:count == 0 ? 'gk' : 'k')
+noremap <silent><expr> j (v:count == 0 ? 'gj' : 'j')
+noremap <silent><expr> k (v:count == 0 ? 'gk' : 'k')
 
 " disable arrows
 noremap  <Up>    <NOP>
 
 " disable arrows
 noremap  <Up>    <NOP>