Results 1 to 2 of 2
today, i begin to learn linux, i think it's a dear diary moment.now i want someone to help me with the following questions.
1,i access my server via secureCRT, when ...
- 05-11-2011 #1Just Joined!
- Join Date
- Mar 2010
- Posts
- 14
VI and vim and how to set default character?
today, i begin to learn linux, i think it's a dear diary moment.now i want someone to help me with the following questions.
1,i access my server via secureCRT, when i typed thein it, it showsCode:vim
. how to install the vim? my linux version is centos.Code:-bash: vim: command not found
2, when i typed some chinese characters in VI, it shows unnormal. maybe i should set the default character to UTF-8. but i don't know how to set it.
3,i want to copy a html file code to VI, how do i do?
4,how to create a file. like this??how to rename the file, which i created by VI and had some contents in the file.Code:mkdir filename
many thanks.
- 05-12-2011 #2
1:
Try vi instead of vim (it should be installed) but to install depends on your architecture
run the commandand then you install what-ever-the-package-name-was; for 64 bit that would beCode:yum search vim-enhanced
if my memory servesCode:yum install vim-enhanced.x86_64
2:
Addto your .vimrc fileCode:set enc=utf-8
3:
I think Shift + Insert will paste from another program else p will put while in command mode
4:
That will create a directory, try touch instead.
And a clue to the last question... Riddle me this, Riddle me that, if I rename a file, where's the old one at?
(Sorry watched the 1966 Batman movie again last night)If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.


Reply With Quote