Hi,
I put the below key mappings in my ~/.vimrc file
:nmap <F6> :w<CR>:!ruby %<CR>
:imap <F6> :w<CR>:!ruby %<CR>
The mapping is working in *normal* mode, but not in *insert* mode. Can any one
help me to fix it. When I am pressing *F6* in *insert* mode, it is printing the
command itself in my program file as below :-
require 'csv'
p CSV.read("#{__dir__}/test.txt", 'rb', :col_sep => ':'a)
:w # <~~~ see this
:!ruby % # <~~~ see this
The above 2 are coming when I pressed *F6* in *insert* mode.
--
================
Regards,
Arup Rakshit
================
Debugging is twice as hard as writing the code in the first place. Therefore,
if you write the code as cleverly as possible, you are, by definition, not
smart enough to debug it.
--Brian Kernighan
--
--
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.
Wednesday, June 18, 2014
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment