Skip to content

Instantly share code, notes, and snippets.

View rskull's full-sized avatar

Ryota Mogi rskull

View GitHub Profile
@rskull
rskull / grep_menuitem.vim
Created November 28, 2016 14:21 — forked from 17g/grep_menuitem.vim
NerdTreePluginのgrep_menuitem.vimって便利だけど実行後にこっそりカレントディレクトリが変更されてしまってる。。 スペースなどが入った場合もそのまま検索できるようにしたかった。 なので少し付け加え。 Forked from https://gist.github.com/masaakif/414375
"shove this in ~/.vim/nerdtree_plugin/grep_menuitem.vim
"
"A really rough integration of :grep with nerdtree. Adds a 'g' menu item that
"prompts the user for a search pattern to use with :grep. :grep is run on the
"selected dir (using the parent if a file is selected)
"
" Originally written by scrooloose
" (http://gist.github.com/205807)
" Forked by masaakif
" (http://gist.github.com/205807)