Linux users: What's your favorite programming text editor?
7 plus ones
Shared publicly•View activity
View 101 previous comments
- Yeah :/ I even had to explicitly install the vim package (even though vim already exists as "vi") just so I could edit text in the friggin' thing without having every keystroke (including arrow keys) insert stuff like "^]" into the document, making it impossible to write text. I did test this; I 'sudo apt-get --purge remove'd it, and then tried to use vi (which just opens the native copy of vim), and every keystroke did the same thing that they did before I installed the actual vim package.
Also, I found that you can search using ":/[regexp term]", and jump to a specific line with ":n", where n is the line number. This begs the question: is there a way to show the line numbers to the left of each line? And is there a command to jump to the very beginning and end of the document (and not just the beginning and end of the page)? In fact, I can just use ":1" for the beginning, but what about the end? There has got to be something like ":end" that goes to the end of the document. That seems to be the only basic operation I'm missing. In any GUI text editor (including the <textarea> I'm typing in now), that would be Ctrl+EndApr 8, 2013
- If your on ubuntu or debian, vim is vim-tiny. This is basically a vi clone that uses the core of the vim runtime components. It's not big-boy vim.
(or add 'set nu' to your vimrc)
jump to top:
jump to end:
you can also line jump to a specific line without using command mode using:
[count]GApr 8, 2013
- Whoops, I updated my comment before I saw your reply. Yes I'm on Ubuntu, and I'm running vim/vim-tiny via the terminal. Thanks for the info.Apr 8, 2013
- if you want to jump to the end of the document in command mode, It's ':$'Apr 8, 2013
- nice, and it's something I recognize from regular expressions, so it makes a lot more sense than G. Thanks again!Apr 8, 2013
- G is for "go" as in "go to line N". It just defaults to end without an argument. This is faster than :$, but I guess it isn't any faster if you can't remember it.Apr 8, 2013
Add a comment...