From ea0780c05bcbc2ce76dbcf9cd4c96c3c524956e8 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Sat, 26 Sep 2020 15:42:59 +0100 Subject: [PATCH] VIM: Swaps colon and semicolon in normal and visual mode I use colon (command mode) far more than semicolon (repeat any of fFtT) --- nvim/.config/nvim/plugin/mappings.vim | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 nvim/.config/nvim/plugin/mappings.vim diff --git a/nvim/.config/nvim/plugin/mappings.vim b/nvim/.config/nvim/plugin/mappings.vim new file mode 100644 index 00000000..ba795eed --- /dev/null +++ b/nvim/.config/nvim/plugin/mappings.vim @@ -0,0 +1,7 @@ +" Swaps semi colon to colon in normal mode +nnoremap ; : +nnoremap : ; + +" Swaps semi colon to colon in visual mode +vnoremap ; : +vnoremap : ;