vim: Add function to search in visual mode
This commit is contained in:
@@ -311,3 +311,8 @@ endif
|
|||||||
let g:ycm_server_python_interpreter = "python3"
|
let g:ycm_server_python_interpreter = "python3"
|
||||||
|
|
||||||
au FileType html setl shiftwidth=2
|
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>
|
||||||
|
|||||||
Reference in New Issue
Block a user