Bash editor?
-
Cartman does have a point here: nobody that I know of has made Word talk Vim or Emacs.
Ahum, cough, <sputter> (Last one is for Eclipse, which you didn't ask for but I provided free of charge)
Also, nobody said you can't use Vim in Insert mode - anyone telling you otherwise might be a Unix beard or just a general dick. Mostly the shortcuts might get you at first. Then again, making Ctrl + C work might not be too hard if you don't mind editing a vimrc file.
-
Nice find, @JBert. I'd have expected Eclipse to have one, but grafting it into Word?! Sounds like a prank to pull on some non-techie sometime.... ;)
And yes, using Vim in Insert mode much of the time is an option; well, until you run into a screwed-up termcap that doesn't let you do cursor manipulation properly, that is. Although, I hope @cartman82 finds termcap failings to be a bigger problem than 'oh, Vim's acting up'.
-
Also, nobody said you can't use Vim in Insert mode - anyone telling you otherwise might be a Unix beard or just a general dick
That method also works for Emacs. If you're using the GUI, the cut/copy/paste buttons, file save/open buttons, scrollbar and menus are enabled by default, and the arrow keys work.
-
Are you the type of person who, while bored on the toilet, looks at bathroom tiles and imagines little people living there? And the folk from opposite walls being at war with each other and constantly shooting lasers when angry or bored?
Ohh I do that all the time ... So far the toilet paper people seem to be winning.
-
This post is deleted!
-
font
I forgot to mention that, but yeah. I use it for everything and in general it's pretty good. There are probably better specialist IDEs, but if you ever come across an obscure config file format or code you don't usually open, it's not too bad. That said, I've not experimented much with IDEs.
There are probably a lot more options than I've explored, but my defaults usually also include the line numbers and column/line/length style status bar at the bottom.
I think you can bind scripts and such. Haven't tried it.
-
And then imagine being one of those little people?
Do those people also sit on the toilet and imagine little people having toilet wars in their tiles?
-
Do those people also sit on the toilet and imagine little people having toilet wars in their tiles?
It's toilet wars all the way down.
-
I use Geany, personally; between it and Kate, though, it's likely a tossup.
Geany handles bash pretty well, and has a couple of IDE'ish features in it. maybe you can give it a try
-
Do those people also sit on the toilet and imagine little people having toilet wars in their tiles?
I think they'd be too freaked out about the laser beams coming from above.
Also, if you had a laser pistol, why would you need any kind of crappy imagination at all? You could just amuse yourself with shooting things randomly in your bathroom until you're done. And then clean yourself up with the laser beam.
Ohh I do that all the time ... So far the toilet paper people seem to be winning.
But the question is, do you imagine the gravity working and sidewall people living in like a huge building and shooting from their little terraces? Or with each wall having its own gravity and the surface looking sort of like the Death Star?
Geany handles bash pretty well, and has a couple of IDE'ish features in it. maybe you can give it a try
I played around with geany. It's the same problem as with kate. Editor is meh. Although it seems to have a lively community, it's possibly there's a plugin to enhance it a bit.
SciTE is the closest hit so far in this thread, since it seems to have similar advanced features as sublime. That, and fixing bash support in sublime. I might twiddle with that today a bit.
-
I think I’ve learned something new about bash today... And I don’t even want to know how it manages to correctly parse this string.
-
I think I’ve learned something new about bash today... And I don’t even want to know how it manages to correctly parse this string.
Ideally, you'd use the nice commented syntax, but this requires something like bash 4.2.x, and CentOS 6 still uses 4.1.x., which has
${str:from:length}
, but NOT${str:from:-length}
... sigh.I even looked into a some kind of templating system and even setup grunt... which is when I realized I really need to switch to something sane.
-
using [Vim] in gui mode on Linux too because it allows more options for highlighting (any color instead of 16 plus bold/italic plus underlining with combining characters)
That's a matter of which terminal emulator you use. rxvt-unicode supports 256 colors (foreground and background), bold, italic and Unicode combining characters.
The only thing I miss in Vimtext+urxvt vs. VimGUI, is red squiggly lines under text that is simultaneously syntax highlighted.
In text mode, it's "highlight to show spelling error" XOR "highlight according to syntax".
-
SciTE is the closest hit so far in this thread, since it seems to have similar advanced features as sublime.
Hooray! I'm useful! What do you think of that, @Zoidberg?
-
And I'm his friend, Jesus!
-
-
Now if only [Vim] had normal workflow.
It does, and it even has more:
- normal (also known as "command")
- visual
- select
- insert
- cmdline
- ex
Only in Vim they're called modes, not workflows
-
Clearly you should use Discourse!
It is a state of the art
ForumBugtrackerBashEditor![code]
str="$1"
[-z "$str"]&&str="abcde"echo "String : ${str}"
echo "Slice 1 : ${str:1}"
echo "Slice 1:2 : ${str:1:2}"#Problematic
#echo "Slice1:-1 : %{str:1:-1}"echo "Slice 1:-1 : ${str:1:$(expr "${#str} -1 -1")}"
echo "Done"
[/code]If this is not good enough you should totally do a Pull Request!
Filed Under: Terrible Ideas and advice and all! | I would dislike my own post here if I could!
-
Interesting. There's some serious copying going on there.
-
Only in Vim they're called modes, not workflows
DING! ...ok, that's what he meant.
Not:
- $> generictexteditor.exe MyFile.Txtishext
(or click-y equivalent :) ) - edit,edit,edit,edit,shell-out to test, edit,edit,test,YEA!, save
- next task
Kids and their modern lingo.
Now. Where's the keypunch?
- $> generictexteditor.exe MyFile.Txtishext
-
-
is red squiggly lines under text
There's probably a term for that.
And use vim, if you're working with Linux servers, it's probably the only (worthwhile) editor you'll find on every distro by default. Trust me, knowing vim is an asset and time well spent.
-
Sorry what ancient computer do you have? Sublime runs fine on my netbook and it the feature set is soo much better even the minor slowdown (which I haven't obvserved) makes it worth it compared to notepad++.
-
There's probably a term for [red squigglies].
I guess. A quick perusal of the Googles don't reveal anythin though.
And use vim, if you're working with Linux servers, it's probably the only (worthwhile) editor you'll find on every distro by default. Trust me, knowing vim is an asset and time well spent.
Preaching to the choir :) Although I have the impression nano is quite ubiquitous too.
-
That's why I remarked worthwhile
-
That's why I remarked worthwhile
For a quick config file edit, I find nano not that bad. For bigger text editing jobs, it's subpar.
Another solution is using
sshfs
(or netrw, or ...) and use your local editor to edit the remote files :)
-
Another solution is using sshfs (or netrw, or ...) and use your local editor to edit the remote files
Caveat emptor: Sublime Text really, REALLY hates it if you open a file from a
sshfs
mounted directory and your connection drops somewhere along the line... Seriously, the damn thing enters a near-unkillable state. I actually had to restart X on a few occasions to force it to bug off.
-
Caveat emptor: Linux really, REALLY hates it if you open a file from a sshfs mounted directory and your connection drops somewhere along the line...
I know that bug it's not actually a bug with sublime text. if you can use a NFS or CIFS mount rather than SSHFS. those are more stable file system drivers in the face of not so stable connections.
-
I know that bug it's not actually a bug with sublime text.
True, but Sublime seems to be especially hard to kill when that happens.
-
fair enough, but note my comment, it doesn't happen with CIFS or NFS mounts.
of course those do take more effort to set up in the first place
-
Sorry what ancient computer do you have? Sublime runs fine on my netbook and it the feature set is soo much better even the minor slowdown (which I haven't obvserved) makes it worth it compared to notepad++.
Some kind of quad-core Sandy Bridge-E Xeon, at work anyway. Notepad++ opens up in a blink of an eye, Sublime takes several seconds.
-
I think the new Torment is supposed to be like that. With, like, 'this is where you go when you die' instead of 'toilet', but who can tell the difference?
-
Notepad++ opens up in a blink of an eye, Sublime takes several seconds.
I can beat that! Eclipse opens in several minutes…
Filed under: too many plugins perhaps?
-
But seriously, it probably because Sublime you can extend with python. I have notepad2 on my machine for a "quick and dirty editor".
-
So I finally got off my ass and applied the suggested TextMate fix to my sublime problem. It... actually works.
For comparison, the left window uses the built-in bash syntax, while the right one uses the (apparently) superior one from TextMate.
The fix is actually dead simple.
-
Find the built in bash language definition somewhere in the sublime directory. On my linux it is
/opt/sublime_text_3/Packages/ShellScript.sublime-package
. -
This is actually an archive. Unpack it to wherever the user-based config is kept. In my case, it's
/home/cartman/.config/sublime-text-3/Packages/
-
Go to https://raw.githubusercontent.com/textmate/shellscript.tmbundle/master/Syntaxes/Shell-Unix-Bash.tmLanguage, copy the content, paste it into
Shell-Unix-Generic.tmLanguage
-
Open this file, edit the language name to distinguish it from the built-in bash syntax
<key>name</key> <string>Shell Script Textmate (Bash)</string>
Presto.
I suppose I could look into removing or downranking the built-in bash in favor of this, but whatever. It's enough I can select it from Command Palette > Syntax.
-
-
Wouldn't putting it in your user config directory give it precedence by default? Or of course just generate two identically named entries, if they didn't consider this usecase. But syntax highlighting not hitting all the edge cases as desired is relatively common so...
-
Wouldn't putting it in your user config directory give it precedence by default? Or of course just generate two identically named entries, if they didn't consider this usecase
You get two syntaxes with the same name.
-
And since I have to do this on multiple machines, I made a script. Sigh, it's a disease.
-
And since I have to do this on multiple machines, I made a script. Sigh, it's a disease.
Maybe this will help:
-
https://gist.github.com/anonymous/1534e6ecd14c8e8c56ca
[ -z "$SUBL_PATH" ] && SUBL_PATH="/opt/sublime_text_3"
SUBL_PATH=${SUBL_PATH:-"/opt/sublime_text_3"}
-
Nice. I didn't know that incantation.
-
It's a little less obfuscatory than abusing the
&&
operator.
-
http://www.art.net/~hopkins/Don/unix-haters/handbook.html
The Unix Haters Handbook is published by ...With Forward by... and Anti-Forward by Dennis Ritchie, AT&T Bell Labs.
How cool do you have to be to do this?
-
Am I insane, don't know English as well as I think I do, or should that be a foreword?
Or maybe I'm just whooshing.
-
was foreword, but the unwashed masses got confused and started substituting forward (cause it sounds the same in most dialects) and well... they outnumbered us so we let them have that one.
-
Ok, because an "anti-forward" sounds a lot like "backward" to me.
-
Am I insane, don't know English as well as I think I do, or should that be a foreword?
..otay..I maybe getting whooshed here myself, but in the interest of, ahem, to coin a phrase, civility... (hate cooperating with that guy)
I wasn't, for once, engaging in mindless hair-splitting (in this case about spelling). ;)
Since Dennis Ritchie was instrumental in creating Unix to begin with - I thought it was cool of him to contribute to a book of Unix-Hate .
-
..otay..I maybe getting whooshed here myself, but in the interest of, ahem, to coin a phrase, civility... (hate cooperating with that guy)
I wasn't, for once, engaging in mindless hair-splitting (in this case about spelling).
What? This happens all the time.
For example, you spelled "Okay" wrong.
-
-
Since Dennis Ritchie was instrumental in creating Unix to begin with - I thought it was cool of him to contribute to a book of Unix-Hate .
I'm not sure contribute is the right word.
Your judgements are not keen, they are intoxicated by metaphor.
You claim to seek progress, but you succeed mainly in whining.