• Post Reply Bookmark Topic Watch Topic
  • New Topic

Record changes in VI  RSS feed

 
Ranch Hand
Posts: 1063
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am working with the command line trying to save the changes I have done in tomcat-users.xml, I tried with :W in insertt mode it doesnt works I tried :W in command mode and I get the error
:E492: Not an editor command: W



Any idea, please?

Regards, Isaac
 
Marshal
Posts: 4052
239
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a lower case w
:w
 
Tim Cooke
Marshal
Posts: 4052
239
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to save and exit, then
:wq
 
Sheriff
Posts: 4935
334
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And if you messed up with the code and don't want to save, but just exit
:q!

Also, type in "man vim" stands for manual vim.
 
Saloon Keeper
Posts: 18800
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unix - and Java - are almost always sensitive to uppercase/lowercase. Very often an upper-case command has an entirely different action than the same command given in lower-case.

Java adds an additional "gotcha". Java's sensitivity to uppper/lower case extends to filenames. The Windows OS, however, is insensitive to case in filenames. That can lead to strange behavior because in some Java code a file may not be found by Java even though Windows can find it just fine. Which is why you have to be meticulous about filename case in Java.
 
Ranch Hand
Posts: 310
18
Linux MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Enter in your console "vimtutor" command, it will run an interactive tutorial that comes with vim. That's the way I learned vim basics years ago.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!