if copy and paste can't work
in vim
:h gui-clipboard
add this line in _vimrc
source $VIMRUNTIME/mswin.vim
2011年8月15日 星期一
2011年5月31日 星期二
Linux-vim gvim settings
#get colors ex:freya (my favorite color
#set
mkdir ~/.vim
cd .vim
mkdir colors
cp colorfile ~/.vim/colors/colorfile
#set vimrc(~/.vimrc)
#gvim_Startup Settings
set autoindent (自動縮排
colorscheme colorname (預設顏色 ex:colorscheme freya
set nu(行號
#if it can't work ,check the file's right
ls -all (to check colorfile's right
# 4space replace tab(tab usually
set expandtab (insert space whenever tab be pressed
set tabstop=4 (the characters of one tab, use :retab that make file match this settings
set shiftwidth=4 (the insertion of the indent
#有可能會有格式錯誤情況
doc2unix colorfile
此提供很多顏色可預覽http://code.google.com/p/vimcolorschemetest/
#set
mkdir ~/.vim
cd .vim
mkdir colors
cp colorfile ~/.vim/colors/colorfile
#set vimrc(~/.vimrc)
#gvim_Startup Settings
set autoindent (自動縮排
colorscheme colorname (預設顏色 ex:colorscheme freya
set nu(行號
#if it can't work ,check the file's right
ls -all (to check colorfile's right
# 4space replace tab(tab usually
set expandtab (insert space whenever tab be pressed
set tabstop=4 (the characters of one tab, use :retab that make file match this settings
set shiftwidth=4 (the insertion of the indent
#有可能會有格式錯誤情況
doc2unix colorfile
此提供很多顏色可預覽http://code.google.com/p/vimcolorschemetest/
2011年5月18日 星期三
Linux-Vim
//install vim on Linux mint/debian/ubuntu
sudo apt-get install vim
//gui
sudo apt-get install vim-gnome
//open
vim >>terminal直接進入vim
gvim >>terminal另外開啟gvim
**su 登入為root後 無法透過terminal開啟gvim
sudo apt-get install vim
//gui
sudo apt-get install vim-gnome
//open
vim >>terminal直接進入vim
gvim >>terminal另外開啟gvim
**su 登入為root後 無法透過terminal開啟gvim
訂閱:
文章 (Atom)