From 661061654b5e7101f12539ffcc00eb60d1c8bea9 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Mon, 16 Nov 2020 00:19:57 +0800 Subject: [PATCH] [feature] enable mouse and // for searching selected --- nvim/config/init.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nvim/config/init.vim b/nvim/config/init.vim index 281fa7e..ff4ec48 100644 --- a/nvim/config/init.vim +++ b/nvim/config/init.vim @@ -22,6 +22,7 @@ set signcolumn=yes set laststatus=2 set fillchars=vert:\ ,fold:- set clipboard=unnamedplus " system clipboard as default register. for vim to work need installing gvim package +set mouse=a filetype plugin indent on syntax on au! BufWritePost $MYVIMRC source % @@ -71,6 +72,8 @@ nmap nsb :windo set noscrollbind:windo set nocursorbind:set mous inoremap nmap ss :syntax sync fromstart +" // to search highlighted text +vnoremap // y/\V=escape(@",'/\') " trailing spaces highlight ExtraWhitespace ctermbg=red guibg=red