xolox / vim-lua-inspect

Semantic highlighting for Lua in Vim
http://peterodding.com/code/vim/lua-inspect/
95 stars 8 forks source link

delete rename and goto hotkey and define rename and goto command. #4

Closed leeonix closed 10 years ago

leeonix commented 10 years ago

hello. luainspect define F2 rename. rename is great! but my gvim hotkey F2 already use ":noh" to clean search hignlight. i recreate rename command and define hotkey in vimrc.

my vimrc define

"-----------------------------------------------------------------------------
" plugin - luainspect.vim
"-----------------------------------------------------------------------------
imap <F6> <C-o>:LuaInspectToggle<CR>
nmap <F6>      :LuaInspectToggle<CR>
let g:lua_inspect_warnings = 0
let g:lua_inspect_events = 'CursorHold,CursorHoldI,BufReadPost,BufWritePost'
inoremap <buffer> <silent> <F8> <C-o>:LuaInspectRename<CR>
nnoremap <buffer> <silent> <F8>      :LuaInspectRename<CR>
nnoremap <buffer> <silent> gd :LuaInspectGoto<CR>
xolox commented 10 years ago

Hi Leeonix and thanks for the feedback.

I'm not just going to delete the mappings while other users (including me) have been using those for a very long time (it would require more work then is in your pull request anyway, e.g. updating the documentation).

However, I think I can make everyone happy with yet another option:

I believe this resolves your problem so am closing this pull request, however if there's anything wrong feel free to reopen this pull request or create a new issue. Happy Vimming!