We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f78df37 commit 6ef78d5Copy full SHA for 6ef78d5
.vimrc
@@ -251,3 +251,11 @@ function! RenameFile()
251
endif
252
endfunction
253
map <leader>n :call RenameFile()<cr>
254
+
255
256
+""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
257
+" Make a simple "search" text object http://vim.wikia.com/wiki/Copy_or_change_search_hit
258
259
+vnoremap <silent> s //e<C-r>=&selection=='exclusive'?'+1':''<CR><CR>
260
+ \:<C-u>call histdel('search',-1)<Bar>let @/=histget('search',-1)<CR>gv
261
+omap s :normal vs<CR>
0 commit comments