1) I learned pico/nano first, and will likely always prefer it (even tho I know how to use vi/notepad/gedit/kedit/wordpad/ted/insert-editor-here).
2) I learned debian first, and will likely always prefer it (even tho I know red hat/centos/suse/slackware/arch/gentoo/etc).
4) I learned windows 95 first, and will always prefer it's interface (my winxp box is set to the old interface now and i won't be upgrading it unless i can get my old interface on windows7)
Location: Asia Pacific, Cyberspace, in the Dark Dystopia
Posts: 19,118
Thanks Given: 2,351
Thanked 3,359 Times in 1,878 Posts
Recently I have been writing PHP code on my Mac (OSX).
I really like this free editor, TextWrangler. Highly recommended for OSX users. One of my favorite features is the ability to open and save files on remote servers. Because of this feature, the editor doubles as a Linux/Unix system admin tool
Quote:
TextWrangler Features
TextWrangler is a powerful and richly featured tool for composing, modifying, and transforming text stored in plain-text files.
Text Editing and Manipulating
Powerful single and multi-file search & replace
Flexible ‘grep’ style pattern-based search and replace based on PCRE (Perl-Compatible Regular Expression)
Sort Lines and Process Duplicate Lines plug-ins offer grep pattern support for sorting, extracting, and handling text
Find Differences to compare two versions of a text file and merge the differences
Support for a wide variety of BBEdit plug-ins
Support for rectangular text selections
Built-in text transformations: Zap Gremlins, Change Case, Entab/Detab, and more
Open and save files in a variety of character sets, including Unicode (UTF-8 and UTF-16) files
Supports editing of multi-byte and Unicode text
Quick Search window
Perform incremental searches
Open and save files in Mac, Unix, DOS, and Unicode line-ending formats
Integrated support for Mac OS X’s spelling service
Hard or soft wrap text however you prefer
Quoted text rewrapper
Multiple Undo
Multiple Clipboards
Splittable editing windows
Auto-Indent
Programming
Syntax coloring and function navigation for ANSI C, C++, Fortran, Java, Object Pascal, Objective-C, Perl, Python, Rez, Ruby, Tcl, TeX, and Unix shell scripts
Automatic language guessing and User selectable per/document language setting for supported languages
Integration with Mac OS X developer help
Ability to function as an integrated external editor with Xcode
OS Platform Integration
Comprehensive AppleScript support: scriptable, recordable, and attachable
Ability to integrate TextWrangler with Unix tools and scripts, by means of the “edit” command-line tool
Authenticated saves (you can modify files not owned by you, provided that you are an administrative user)
Support for Quartz text smoothing
Support for Mac OS X Services
QuickTime translation support
Automatic backup of files when saving (optional)
Optional Emacs keybinding support
Other Useful Features
Extensive FTP/SFTP support open and save text files located on remote FTP servers
FTP tool supports Mac OS Keychain and use of alternate ports
FTP Browsers provide persistent view of remote site directories
Integrated support for FTP access through Interarchy and many other third-party FTP clients
FTP server discovery using Bonjour
Support for a wide variety of BBEdit plug-ins & the ability to develop your own plug-ins
Configurable key assignments – set keys for commands
Disk browsers – view directory listings and open files
I use Vim. Not gVim, the command line version. There is a learning curve, but it's well worth it. Vim provides syntax highlighting, spell-checking, macros, multiwindow editing, scripting capabilities, customizable settings, regular expression searches and substitutions, and a whole bunch of useful shortcuts. I've found it has syntax highlighting for almost every language I've tried to code in, including C, C++, HTML, CSS, Javascript, SQL, BASIC, Java, Assembly, sed, nroff, Lisp, Perl, PHP, Python, Ruby, Vimscript, Objective-C, Pascal, Ada, Fortran, Unix shell, DOS Batch, XML, DTD, and probably several others. I've found it doesn't have syntax highlighting for Cobol or Prolog, though.
I also like ed, because it has a nice retro feel to it, though I don't use it that much.
---------- Post updated at 09:00 PM ---------- Previous update was at 07:53 PM ----------
Quote:
Originally Posted by premnathk
in the Text file ex sample.txt
cat sample.txt
morning
evening
night
bye
__________________
i want add text "Good " i front of all the words .
u have to use one vi command only
or
u can write script also
o/p should be like this
cat sample.txt
Good morning
Good evening
Good night
Good bye
Which version of VIM gives the right answer with that command?
PS: I use only vi I have trouble with VIM. It's the multiple undo thing. Redoing an undo is not the same as undoing a redo, and I can never remember which direction i'm going in
yes, I understand all that.. smaller is better. Large IDEs are greedy, annoying to learn your way around.. a nusiance just learning how to compile the program within the IDE!!
However, a debugger is very important!! Setting breakpoints. Watching variables. A text editor, as far as I nkow, doesn't offer this. I have heard that emacs has a debugger, but a poor one.
When I try to run a bash shell script I made in Vim, and it has an error in it, the shell will tell me what the error is and what line it's on. GCC does the same thing for C files, and so on. There is still a debugger; it's just not built into the editor. Can you think of an IDE that has a debugger for shell scripts?
Hello All,
Need one Help for one issue.
I am using a French Keyboard, so @ sign is on key 0 and i have to use right Alt + 0 to print it.
It is working everywhere but not inside Vi editor. I can type @ in shell, in notepad. But inside Vi editor it is not working, another problem is that if... (2 Replies)
Hi All,
I am running a script , working very fine on cmd prompt. The problem is that when I open do crontab -e even after setting editor to vi by
set EDITOR=vi it does not open a vi editor , rather it do as below.....
/////////////////////////////////////////////////////
$ set... (6 Replies)
Hi,
I knw its a silly question, but am a newbie to 'vi' editor. I'm forced to use this, hence kindly help me with this question.
How can i paste a chunk 'copied from' a different editor(gedit) in 'vi editor'?
As i see, p & P options does work only within 'vi'. (10 Replies)
I am new in hp ux and I want work with vi editor, but in hp ux vi editor the backspaes and del keys doesn't work.
how can I enable them.
thanks (3 Replies)
We work on AIX 5L
We use vi as text editor (only scripts to create and modifiy).
What do you think of emacs ? Where can I find it ?
Do you know better text editor for scripts ?
Thank you for all answers. (1 Reply)
Hi,
how can I add at the begining and at the end of all of the lines of my text file in VI editor ? Many thanks before.
for exemple if in my file i have
line 1
line 2
I want to have :
start line 1 end
start line 2 end (3 Replies)
Hello everybody,
My question is: how to add /tmp/work at the end of line in vi editor.
my file looks like:
cp file1
cp file2
cp file3
****
I need to add " /tmp/work" at the end of each line.
I tried this
:%s/$/" /tmp/work"
and this
:%s/$/\ /tmp/work\/
but it does not work. (2 Replies)