Page 1 of 2 [ 20 posts ]  Go to page 1, 2  Next


What's your favorite Linux text editor?
vi 0%  0%  [ 0 ]
vim 40%  40%  [ 10 ]
pico 0%  0%  [ 0 ]
nano 4%  4%  [ 1 ]
mcedit 4%  4%  [ 1 ]
Emacs/XEmacs 12%  12%  [ 3 ]
Kate/KEdit/KWrite 16%  16%  [ 4 ]
Gedit 16%  16%  [ 4 ]
elvis 0%  0%  [ 0 ]
jed/joe 4%  4%  [ 1 ]
Other 4%  4%  [ 1 ]
I don't know / I don't mind such a stupid thing 0%  0%  [ 0 ]
Total votes : 25

tomadao
Raven
Raven

User avatar

Joined: 10 Mar 2008
Gender: Female
Posts: 115

10 Apr 2008, 10:04 pm

Mine is mcedit. I've never felt comfortable with vi or Emacs.



viska
Veteran
Veteran

User avatar

Joined: 26 Jan 2008
Age: 42
Gender: Male
Posts: 720
Location: Everytime you close your eyes: Lies, lies.

10 Apr 2008, 11:06 pm

vim foreva.



Betzalel
Deinonychus
Deinonychus

User avatar

Joined: 22 Feb 2008
Age: 43
Gender: Male
Posts: 317

10 Apr 2008, 11:20 pm

Vim hands down. I liked the original vi before it but when I'm writing code or editing code there is nothing better than vim for me same familiar vi feel but with lots more power, syntax highlighting, auto-indent and a full blown hex editor for the rare time i actually want to diddle around with a binary.

vim is just one of those tools that I use every single day multiple times a day not having vim on a system is like not having oxygen.

another neat tool, although I dont like recent incarnations of it as much is the w3c amaya. which makes a great HTML editor. don't get me wrong I like using vi for HTML as much as the next guy. but when you have really ugly machine generated HTML amaya can rock. because you can not only edit the HTML in a WYSIWYG mode. but you can open up the source view and click on the rendered part and go directly to the source line inthe source view..

and then when you finish editing the source view it updates the rendered view. and places a mark on the rendered view showing what part of the rendering the current source line is part of.

The only other tool I use more often is the shell and custom one off Perl scripts for data processing and text manipulation.



Aaron_Mason
Veteran
Veteran

User avatar

Joined: 3 Jul 2005
Age: 38
Gender: Male
Posts: 511
Location: Bathurst, Australia

10 Apr 2008, 11:41 pm

Give me nano any day - in-text (regular expressions if compiled in) search and replace, syntax highlighting (think it's still beta though)... plus its close to Pico which I was brought up on.


_________________
We are one, we are strong... the more you hold us down, the more we press on - Creed, "What If"

AS is definitive. Reality is frequently inaccurate.

I'm the same as I was when I was six years old - Modest Mouse


LostInEmulation
Veteran
Veteran

User avatar

Joined: 10 Feb 2008
Age: 41
Gender: Female
Posts: 2,047
Location: Ireland, dreaming of Germany

11 Apr 2008, 1:29 am

joe! It has syntax-hilighting, regexen and utf-8 support and is IMHO user-friendlier than vi(m).


_________________
I am not a native speaker. Please contact me if I made grammatical mistakes in the posting above.

Penguins cannot fly because what cannot fly cannot crash!


GreatCeleryStalk
Veteran
Veteran

User avatar

Joined: 18 Mar 2008
Age: 41
Gender: Male
Posts: 511

11 Apr 2008, 8:21 am

Emacs, nedit, and pico.

Emacs for lisp, nedit for python, and pico for quick editing of config files if X isn't running.



Kiski
Yellow-bellied Woodpecker
Yellow-bellied Woodpecker

User avatar

Joined: 31 Dec 2007
Age: 34
Gender: Male
Posts: 57
Location: Galifrey

15 Apr 2008, 6:28 pm

IMO, Vim is by far the best.


_________________
Human knowledge belongs to the world, like Shakespeare or Aspirin.


lau
Veteran
Veteran

User avatar

Joined: 17 Jun 2006
Age: 75
Gender: Male
Posts: 9,619
Location: Somerset UK

15 Apr 2008, 7:17 pm

vim... but I use "sed" quite often.


_________________
"Striking up conversations with strangers is an autistic person's version of extreme sports." Kamran Nazeer


Jonny
Velociraptor
Velociraptor

User avatar

Joined: 9 Feb 2005
Gender: Male
Posts: 440
Location: London

17 Apr 2008, 4:15 pm

Can any Vim experts here tell me how to set the width of word wrap?



lau
Veteran
Veteran

User avatar

Joined: 17 Jun 2006
Age: 75
Gender: Male
Posts: 9,619
Location: Somerset UK

17 Apr 2008, 6:41 pm

:set textwidth=60

Is that what would suit?

:set wrap?

tells me that I have "wrap" set "on", by default. If you try the above, and it says "nowrap", I guess you'll also want:

:set wrap


_________________
"Striking up conversations with strangers is an autistic person's version of extreme sports." Kamran Nazeer


Jonny
Velociraptor
Velociraptor

User avatar

Joined: 9 Feb 2005
Gender: Male
Posts: 440
Location: London

18 Apr 2008, 1:06 pm

I think I have tried that before but it didnt work.

Let me give it another go. You can do it with Cream which is a Vim frontend, so Im guessing its doing some funky stuff in the background.

But Cream is windows only.



Jonny
Velociraptor
Velociraptor

User avatar

Joined: 9 Feb 2005
Gender: Male
Posts: 440
Location: London

20 Apr 2008, 3:51 am

I can't get it to work. I forgot to mention im a complete beginner on Vim.

Can you explain the exact steps?



lau
Veteran
Veteran

User avatar

Joined: 17 Jun 2006
Age: 75
Gender: Male
Posts: 9,619
Location: Somerset UK

20 Apr 2008, 7:27 am

from start up:

Code:
vim example.txt
then...
Code:
:set textwidth=20

Code:
:set
--- Options ---
  helplang=en       nomodeline            ruler               textwidth=20        ttymouse=xterm2
  history=50          modified            scroll=9            ttyfast             viminfo='20,"50
  backspace=indent,eol,start
  fileencodings=ucs-bom,utf-8,default,latin1
  printoptions=paper:a4
  runtimepath=~/.vim,/<blah blah>  suffixes=.bak,~,.swp<blah blah>
Press ENTER or type command to continue

then
Code:
i
and...
Code:
This is just typed
in after I set the
text width to 20, as
I have shown above,
which was a :set
textwidth=20 line
followed by a :set
to show the
non-default settings
in force.
~


_________________
"Striking up conversations with strangers is an autistic person's version of extreme sports." Kamran Nazeer


lau
Veteran
Veteran

User avatar

Joined: 17 Jun 2006
Age: 75
Gender: Male
Posts: 9,619
Location: Somerset UK

20 Apr 2008, 7:40 am

I followed the above with...

Code:
:set textwidth=50
and with the cursor at the top, did...
Code:
gqap
to get...
Code:
This is just typed in after I set the text width
to 20, as I have shown above, which was a :set
textwidth=20 line followed by a :set to show the
non-default settings in force.
~
See...
Code:
:help gq
with...
Code:
:q
to get out of the help.


_________________
"Striking up conversations with strangers is an autistic person's version of extreme sports." Kamran Nazeer


Jonny
Velociraptor
Velociraptor

User avatar

Joined: 9 Feb 2005
Gender: Male
Posts: 440
Location: London

20 Apr 2008, 10:10 am

LOL, I just realised my error, I was testing with lines without spaces. I had it in my head that it would just cut the line off at the specified width, no it needs a whitespace!

Thanks for your help.

I just downloaded Macvim for OS X

How do I get syntax highlighting for HTML?



Jonny
Velociraptor
Velociraptor

User avatar

Joined: 9 Feb 2005
Gender: Male
Posts: 440
Location: London

20 Apr 2008, 10:21 am

Scrap that. I found out.

Now heres one. I want to disable autoindent, but when I press Return I do not want cursor to go all the way back to the start of the line. I want it to maintain the indent from the previous line.

I used :

autocmd BufEnter *.html setlocal indentexpr=
autocmd BufEnter *.htm setlocal indentexpr=

To get rid of autoindent completely. But as I said I dont want it to go to beginning of line.