vim: Add function to search in visual mode

This commit is contained in:
2020-03-08 22:49:45 +01:00
parent 741aa98576
commit c1526d3ff7

View File

@@ -311,3 +311,8 @@ endif
let g:ycm_server_python_interpreter = "python3"
au FileType html setl shiftwidth=2
" Use // in visual mode to search for selection
" https://vim.fandom.com/wiki/Search_for_visually_selected_text
vnoremap // y/\V<C-R>=escape(@",'/\')<CR><CR>