Tagged Questions
0
votes
2answers
173 views
How do I make a terminal alias that edits root owned files in a GUI text editor?
How can I quickly edit root owned files like /etc/hosts and /etc/apache2/httpd.conf in a text editor such as TextEdit which would let me do modern text editor operations, without actually running the ...
0
votes
1answer
431 views
Installing TextWrangler command line tools into /usr/bin
I just installed the text wrangler command line tools and they are placed into /usr/local/bin by default. On Lion this directory appears to be a root only directory, and I don't want to have to run ...
4
votes
3answers
683 views
Force Terminal to Use Gedit for any Text Editing - not vim
I'm learning to program. While following this mission, I typed git commit, which opened up vim. I don't know or want to know vim (no offense to vim lovers). I'd like to have:
terminal open gedit ...
2
votes
3answers
1k views
Where to put the .vimrc file for sudo in OS X Lion?
I always put a .vimrc in my home folder for turning :syntax on. But in OS X Lion it seems that sudo vi foo.txt ignore or can't find this vim configuration anymore.
Has anyone experiences the same ...
8
votes
4answers
12k views
How do I start TextEditor from the command line?
I work a lot at the command line in a Terminal and would like to start a text editor on a certain file. I'm from Linux Land and normally use kwrite or gedit from a bash shell. Trying to find the Mac ...
16
votes
4answers
12k views
How can I open a text file with TextWrangler from the Terminal (command line)?
Often when I work in the Terminal (the command line) I need to edit some text files. I prefer to edit text files using TextWrangler.
How can I open a text file with TextWrangler from the Terminal?
I ...
6
votes
2answers
689 views
Why don't my arrow keys work in vim under iTerm?
They work just fine if I use Terminal and start a vim session, but under iTerm I have to resort to using H-J-K-L to do left-up-down-right movement.
In both Terminal and iTerm TERM=xterm-color. My ...