Ask your own question, for FREE!
Computer Science 13 Online
hartnn (hartnn):

Anyone have some practice with VIM/VI editor in unix/Linux ? I want to know if it is possible to get the previous commands on : prompt , the way we get previous command on command prompt by using UP and DOWN arrow keys. Also , how do i edit the .vimrc file ?

hartnn (hartnn):

i know that :display or :disp shows list of previous commands, but thats not useful at all...

hartnn (hartnn):

because say if i typed incorrectly a specific command like :%s/as an ex for blah blah/ad an example for blah balh/g (note the typing errors) then i will have to write the entire line again....it would be better if i could fetch this line in the : prompt and just edit the typos

OpenStudy (e.mccormick):

http://vim.wikia.com/wiki/Using_command-line_history

hartnn (hartnn):

up down arrow keys does not work in vi/vim thats says to write :s then up down arrow ? tried and failed...

OpenStudy (e.mccormick):

It souns like your history is disabled, which might be a setting, but here are a few reasons why histroy has issues: http://stackoverflow.com/questions/10752863/vim-record-history

OpenStudy (e.mccormick):

Ah, and another: http://stackoverflow.com/questions/8930690/what-sets-vim-history

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!