User Tools

Site Tools


linux_og_unix:vim

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
linux_og_unix:vim [2023/10/21 19:19] – external edit 127.0.0.1linux_og_unix:vim [2024/09/11 20:37] (current) martin
Line 4: Line 4:
  
   * [[https://sanctum.geek.nz/arabesque/vim-koans|VIM Koans]]   * [[https://sanctum.geek.nz/arabesque/vim-koans|VIM Koans]]
 +
 +Indent en masse filer
 +<code>
 +for file in *.c; do
 +  nvim -u /tmp/minimal.vim -c "normal gg=G" -c "wq" "$file"
 +done
 +</code>
 +
 +med /tmp/minimal.vim
 +<code>
 +set nocompatible
 +filetype plugin indent on
 +syntax on
 +</code>
 +
 +
  
 Min .vimrc siger p.t. sådan her ud: Min .vimrc siger p.t. sådan her ud:
linux_og_unix/vim.txt · Last modified: 2024/09/11 20:37 by martin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki