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

Next revision
Previous revision
linux_og_unix:vim [2020/03/04 10:47] – created - external edit 127.0.0.1linux_og_unix:vim [2024/09/11 20:37] (current) martin
Line 5: Line 5:
   * [[https://sanctum.geek.nz/arabesque/vim-koans|VIM Koans]]   * [[https://sanctum.geek.nz/arabesque/vim-koans|VIM Koans]]
  
-Min .vimrc siger p.t. sådan her ud:+Indent en masse filer
 <code> <code>
 +for file in *.c; do
 +  nvim -u /tmp/minimal.vim -c "normal gg=G" -c "wq" "$file"
 +done
 +</code>
  
-map <F3> <C-]> +med /tmp/minimal.vim 
-map <F4> <C-t>+<code> 
 +set nocompatible 
 +filetype plugin indent on 
 +syntax on 
 +</code>
  
-set showcmd 
  
-set wildignore=*.class 
-set wildmode=longest,list,full 
  
-colo candy+Min .vimrc siger p.t. sådan her ud: 
 +<code>
  
 +syntax enable
 +
 +map! ¤ ansible.builtin.
 +
 +filetype plugin indent on
 +
 +set tabstop=2
 +set shiftwidth=2
 +set autoindent
 +set expandtab
 +set hlsearch
 +set incsearch
 set mouse=a set mouse=a
-set title 
-set noerrorbells 
 set nobackup set nobackup
-set noswapfile 
 set nocompatible set nocompatible
 +set noerrorbells
 +set noswapfile
 +set number
 +set showcmd
 +set title
 +set wildignore=*.class
 +set wildmode=longest,list,full
  
-set autoindent+map <F3> <C-]> 
 +map <F4> <C-t>
  
 nnoremap <CR> :let @/=""<CR><CR> nnoremap <CR> :let @/=""<CR><CR>
- 
-set incsearch 
-set hlsearch 
- 
-" Create a Shortcut to Mute Hightlighting 
 nnoremap <silent> <C-l> :<C-u>nohlsearch<CR><C-l> nnoremap <silent> <C-l> :<C-u>nohlsearch<CR><C-l>
 +
 +colo candy
  
 </code> </code>
linux_og_unix/vim.1583318829.txt.gz · Last modified: 2023/10/21 18:54 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki