home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.editors      What? Edlin ain't good enough for you?      123,932 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 123,459 of 123,932   
   Janis Papanagnou to Axel Reichert   
   Re: Editor of choice   
   03 Jun 24 16:13:46   
   
   From: janis_papanagnou+ng@hotmail.com   
      
   On 02.06.2024 09:58, Axel Reichert wrote:   
   > Janis Papanagnou  writes:   
   >   
   >>  set noruler   
   >>  set noic   
   >>  set modeline   
   >>  set modelines=5   
   >>  set smc=10000   
   >>  set ts=4   
   >>  set sw=4   
   >   
   > OK, so really basic: No line/column numbers, case-sensitive search, mode   
   > detection, syntax highlighting limits, tab spacing.   
      
   Note: For line numbers I use  :set nu  or  :set nonu  respectively.   
      
   The tab stop is different from shift width setting; you can control   
   both separately (but don't need to).   
      
   The syntax highlighting (context size) setting is due to an effect   
   depending on how syntax highlighting is done in Vim. There's no   
   built-in syntax knowledge in Vim, rather it has a simple language   
   that operates on language specific syntax files (that usually are   
   part of the installation but can be extended for own languages).[*]   
   There's some context considered for the syntax heuristics that in   
   my case proved to be too narrow so I extended it (from the default   
   to a larger value).   
      
   I started with much less configuration settings (only 'modeline'),   
   but extended it as it seems to fit for convenience.[**]   
      
   [*] In my old installation there are 500+ languages supported, the   
   individual syntax file size depends on the language complexity; it   
   ranges from a handful of lines up to 2000+ lines (for perl).   
      
   [**] 'ts' and 'sw' just recently. Before that I had defined it in   
   the "modelines" of some files until I noticed that this setting   
   makes sense in 95% of my file/language types, so I defined it.   
   'smc' was also just a recent addition. (And I don't recall why I   
   have the 'noruler' thing in the file. But I don't care; it's just   
   a few lines of text.)   
      
   > A vanilla Emacs roughly needs   
   >   
   >   (setq line-number-mode nil)   
   >   (font-lock-mode 1)   
   >   (setq tab-width 4)   
   >   
   > for similar behaviour.   
   >   
   >> Re (how common it is in vi-land to use a bunch of extension packages):   
   >> => none (in my case), just a few simple adjustments and user settings   
   >> Re (and have configuration files larger than, say, 10 kB):   
   >> => none (in my case and I've not seen such large files for Vim; YMMV)   
   >   
   > Interesting. As I suspected else-thread, maybe that is due to the   
   > availability/lack of powerful extension languages in the early days of   
   > Emacs/vi: The "tweakers" and "vanilla" people neatly separated on   
   > different sides of the fence, with enough opportunity for holy wars.   
   > (-:   
      
   I haven't participated and rarely was in editor NGs; in my opinion   
   editors are tools that should be used as it individually fits best.   
      
   WRT extension languages; I don't use any with Vim, never needed any   
   with Vi. There is a scripting language in Vim, though, and I know   
   that some folks like to use them. Since in my professional contexts   
   I often had to work on proprietary Unixes where only Vi was available   
   I tried to not rely on fancy extensions, but privately I use some of   
   them and appreciate that they are existing with Vim/Gvim; wouldn't   
   want to miss them.   
      
   >   
   >> (e.g. a diary/log book with time stamps, specific formatting, etc.);   
   >> all this done with a couple macros in Vim. - But mind that this is   
   >> exceeding pure editing; it's actually creating specific applications   
   >> using the Vim tool.   
   >   
   > Sounds like "Org",   
      
   I cannot tell. A friend of mine (listed on the Vim acknowledgements   
   page) does a lot with such specific usages. Myself I use it just for   
   exiting of all sorts of texts.   
      
   >   
   >   https://orgmode.org/features.html   
   >   
   > one of the most popular extensions for Emacs. And a large one ...   
      
   Oh! - I recall that the Vim macros for that haven't been much code.   
   (I can ask him about the details if someone's interested.)   
      
   Janis   
      
   > [...]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca