Hi,
using Vim 7.4 on Windows 7.
I would like to prompt user to type in the name and then execute s[ubstitute] command to replace USER_NAME with input typed in name.
I stored bellow code in .vimrc file:
function! ReplaceIt()
call inputsave()
let replacement = input('Type in your name and Enter: ')
call inputrestore()
execute '%s/USER_NAME/'.replacement.'/g'
endfunction
:let mapleader = ","
:nnoremap <leader>r :call RepalceIt()
The above function works excellent. But now the problem is that prompt is not obvious, so user may miss the input question.
Question: How to make input prompt more visible? I would like to make blue background color and white text (the text above "Type in you name and Enter:") for input prompt at the bottom? You know something like if you type in :xxx end Enter you get red background and white color, but I would like to get blue background.
Thanks
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment