From: Matt C. <ma...@si...> - 2005-08-31 21:17:00
|
Hi all, Where I work as a tech writer, all the programmers use vi. They have a very weird (to me) convention where they use 4-space tabs, but have vi set up to automatically replace 8 spaces with a tab char. So, they have 4-space tabs, but an 8-space tab *character*. If you see what I mean. Seemingly this is no problem for them or vi. Is there an easy way to set up jEdit so I can at least read files like this, if not write them? Right now the indentation of files touched by programmers is screwed up when I open it in jEdit, because their tabs are 8-spaces and mine are, of course, 4. For saving, I don't think they really care if I save files with 8 spaces instead of compressing them to tabs. Thanks, Matt |
From: Slava P. <sl...@je...> - 2005-08-31 22:23:09
|
Hi, In jEdit, set your tab width to 8, set your indent width to 4, and disable the 'soft tabs' option. Slava Matt Chaput wrote: > Hi all, > > Where I work as a tech writer, all the programmers use vi. They have a > very weird (to me) convention where they use 4-space tabs, but have vi > set up to automatically replace 8 spaces with a tab char. So, they have > 4-space tabs, but an 8-space tab *character*. If you see what I mean. > > Seemingly this is no problem for them or vi. Is there an easy way to > set up jEdit so I can at least read files like this, if not write them? > Right now the indentation of files touched by programmers is screwed up > when I open it in jEdit, because their tabs are 8-spaces and mine are, > of course, 4. For saving, I don't think they really care if I save > files with 8 spaces instead of compressing them to tabs. > > Thanks, > > Matt > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf |
From: Matt C. <ma...@si...> - 2005-08-31 22:33:51
|
> Hi, > > In jEdit, set your tab width to 8, set your indent width to 4, and > disable the 'soft tabs' option. Slava, thanks for replying! If I do that, I can't use the tab key to indent (it'll insert a tab char). Should I just remap the tab to another function or a macro? Thanks again, Matt |
From: Slava P. <sl...@je...> - 2005-08-31 23:04:54
|
Remap the tab key to a macro inserting four spaces. Slava Matt Chaput wrote: >> Hi, >> >> In jEdit, set your tab width to 8, set your indent width to 4, and >> disable the 'soft tabs' option. > > > Slava, thanks for replying! If I do that, I can't use the tab key to > indent (it'll insert a tab char). Should I just remap the tab to > another function or a macro? > > Thanks again, > > Matt > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf |
From: Matt C. <ma...@si...> - 2005-09-01 18:31:55
|
> Remap the tab key to a macro inserting four spaces. Well, insert the number of spaces to move to the next tab. And I'll have to emulate the other functionality of tab-and-indent too (e.g., if you've selected multiple lines, indent instead of insert). Time to learn the macro language! :) Thanks, Matt |