Pages

Showing posts with label vi. Show all posts
Showing posts with label vi. Show all posts

Tuesday, November 12, 2013

Eclipse Setup for C, C++, Java, Python, PHP, PERL, Shell Scripst, Verilog and VHDL with Vim-Like Editing

General

Install Eclipse
yum install eclipse
Vim-Like Editing
yum install eclipse-vrapper

for C/C++ (using CDT)
Install CDT
yum install eclipse-cdt

for Java (using JDT)

Install JDT
yum install eclipse-jdt

Specify Java VM
http://stackoverflow.com/questions/2030434/eclipse-no-java-jre-jdk-no-virtual-machine

for Python (using Pydev)
Install Pydev
yum install eclipse-pydev

for PHP(using PHP Eclipse)
Install PHP Eclipse
yum ibnstall eclipse-phpeclipse

for PERL (using EPIC)

Install EPIC
yum install eclipse-epic
OR
Install pad-walker for debugging
yum install perl-PadWalker

Launch Eclipse
eclipse &
Add Software Source
Select "Help/Install New Software" from menu bar
Click "Available Software Sites"
Click "Add"
Enter following information:
Name "EPIC"
Location "http://e-p-i-c.sf.net/updates"
Install "EPIC Main Components"
Install "EPIC Main Components" in the available software.
REF: http://www.epic-ide.org/download.php

for Shell Scripts (using Shelled Eclipse)
Install Shelled Eclipse
yum install eclipse-shelled

for Verilog and VHDL (using Veditor)
Install Veditor
yum install eclipse-veditor


Monday, August 27, 2012

Vim Persistent Undo (Undo persistence)

Enable persistent undo
vi  ~/.vimrc
#Location of undo data
set undodir=~/.vim/undodir
#By setting the 'undofile' option, Vim will automatically save your undo history
#when you write a file and restore undo history when you edit the file again. (udf)
set undofile
#Maximum number of changes that can be undone.(ul)
set undolevels=1000
#Save the whole buffer for undo when reloading it.(ur)
set undoreload=10000

Create undodir
mkdir ~/.vim/undodir


Now, you can undo even you quit vim.

Thursday, June 21, 2012

vim Function List


Install ctags
yum install ctags
Download and install vim taglist
Download taglist _45.zip from webpage http://vim.sourceforge.net/scripts/script.php?script_id=273
Unzip
unzip taglist_45.zip
Move plugin and doc to ~/.vim/
mv plugin doc ~/.vim/
Add "map <f9> :Tlist<CR>" to "/etc/vimrc"
echo "map <f9> :Tlist<CR>" >> /etc/vimrc

Use ctags in working directory
ctags -R *.c *.cpp *.h
Edit your source file
vim xxx.cpp

Toggle function list
Press <F9>