aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2023-11-11 19:05:40 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2023-11-11 19:05:40 +0100
commit37294b081b03df6e44b899f4127e6a29bd52401a (patch)
treece2aff2774a274cb75c91aa95ac0c0e94f6f804c
parentd23e9e82521a79011869632b04f07750f0f879f7 (diff)
downloadmitjafelicijan.com-37294b081b03df6e44b899f4127e6a29bd52401a.tar.gz
Updated VIM sane defaults
-rw-r--r--_includes/webring.html8
-rw-r--r--_posts/2023-11-07-personal-sane-vim-defaults.md52
2 files changed, 32 insertions, 28 deletions
diff --git a/_includes/webring.html b/_includes/webring.html
index b2a488a..662e919 100644
--- a/_includes/webring.html
+++ b/_includes/webring.html
@@ -8,8 +8,8 @@
8 <div>With the imminent launch of the Raspberry Pi 5 I wondered - how long does it take to compile the latest LLVM release (17 at the time of writing this blog) on the Raspberry Pi 4. This will give me a baseline that I can test the Raspberry Pi 5 against once I get ahold of it. For my initial exploration I decided to test j...</div> 8 <div>With the imminent launch of the Raspberry Pi 5 I wondered - how long does it take to compile the latest LLVM release (17 at the time of writing this blog) on the Raspberry Pi 4. This will give me a baseline that I can test the Raspberry Pi 5 against once I get ahold of it. For my initial exploration I decided to test j...</div>
9 </li> 9 </li>
10 <li> 10 <li>
11 <div><a href="https://drewdevault.com/2023/10/31/On-real-names.html" target="_blank" rel="noopener">On &#34;real name&#34; policies</a> — Drew DeVault's blog</div> 11 <div><a href="https://drewdevault.com/2023/11/09/Can-I-be-on-your-podcast.html" target="_blank" rel="noopener">Can I be on your podcast?</a> — Drew DeVault's blog</div>
12 <div>Some free software projects reject anonymous or pseudonymous contributions, requiring you to author patches using your &ldquo;real name&rdquo;. Such projects have a so-called &ldquo;real name&rdquo; policy; Linux is one well-known example.1 The root motivations behind such policies vary, but in my experience the most o...</div> 12 <div>I am working on rousing the Hare community to get the word out about our work. I have drafted the Hare evangelism guidelines to this effect, which summarizes how we want to see our community bringing Hare to more people. We&rsquo;d like to spread the word in a way which is respectful of the attention of others &ndash; ...</div>
13 </li> 13 </li>
14 <li> 14 <li>
15 <div><a href="http://offbeatpursuit.com:80/blog/?id=26" target="_blank" rel="noopener">Learning all the wrong lessons</a> — WLOG - blog</div> 15 <div><a href="http://offbeatpursuit.com:80/blog/?id=26" target="_blank" rel="noopener">Learning all the wrong lessons</a> — WLOG - blog</div>
@@ -32,8 +32,8 @@
32 <div>For over 10 years now, I run two self-built NAS (Network Storage) devices which serve media (currently via Jellyfin) and run daily backups of all my PCs and servers. In this article, I describe my goals, which hardware I picked for my new build (and why) and how I set it up. Design Goals I use my network storage device...</div> 32 <div>For over 10 years now, I run two self-built NAS (Network Storage) devices which serve media (currently via Jellyfin) and run daily backups of all my PCs and servers. In this article, I describe my goals, which hardware I picked for my new build (and why) and how I set it up. Design Goals I use my network storage device...</div>
33 </li> 33 </li>
34 <li> 34 <li>
35 <div><a href="https://utcc.utoronto.ca/~cks/space/blog/unix/VimFeaturesThatHookedMe" target="_blank" rel="noopener">The Vim features that make me a Vim user instead of a Vi user</a> — Chris&#39;s Wiki :: blog</div> 35 <div><a href="https://utcc.utoronto.ca/~cks/space/blog/tech/BackupSystemsStorageFormatDivide" target="_blank" rel="noopener">Backup systems and how much they do or don&#39;t know about storage formats</a> — Chris&#39;s Wiki :: blog</div>
36 <div>Over on the Fediverse there was a little Vim versus Vi discussion, and in response to seeing it I posted something: I used to be a minimal vi user. Over the years I've drifted to being a not so minimal vim user, and I think the vim features that I'm now addicted to are: infinite undo and redo (and a tree view of undo) ...</div> 36 <div>One of the divides in large scale systems for handling backups is whether they have their own custom storage format (or formats) for backups, or whether they rely on outside tools to create what I'll call 'backup blobs' that the backup system then manages. This division is fractal, because sometimes what you're backing...</div>
37 </li> 37 </li>
38 <li> 38 <li>
39 <div><a href="https://szymonkaliski.com/writing/2023-10-02-building-a-diy-pen-plotter/" target="_blank" rel="noopener">Building a DIY Pen Plotter</a> — Szymon Kaliski</div> 39 <div><a href="https://szymonkaliski.com/writing/2023-10-02-building-a-diy-pen-plotter/" target="_blank" rel="noopener">Building a DIY Pen Plotter</a> — Szymon Kaliski</div>
diff --git a/_posts/2023-11-07-personal-sane-vim-defaults.md b/_posts/2023-11-07-personal-sane-vim-defaults.md
index 66b61af..635a86f 100644
--- a/_posts/2023-11-07-personal-sane-vim-defaults.md
+++ b/_posts/2023-11-07-personal-sane-vim-defaults.md
@@ -16,15 +16,15 @@ syntax enable
16colorscheme sorbet 16colorscheme sorbet
17set nocompatible 17set nocompatible
18set relativenumber 18set relativenumber
19set hlsearch 19set nohlsearch
20set smartcase 20set smartcase
21set ignorecase 21set ignorecase
22set incsearch 22set incsearch
23set autoindent 23set autoindent
24set nowrap 24set nowrap
25set nobackup 25set nobackup
26set autoread
27set noswapfile 26set noswapfile
27set autoread
28set wildmenu 28set wildmenu
29set encoding=utf8 29set encoding=utf8
30set backspace=2 30set backspace=2
@@ -33,9 +33,33 @@ set shiftwidth=2
33set expandtab 33set expandtab
34set autoread 34set autoread
35set scrolloff=4 35set scrolloff=4
36set spelllang=en_us
37
38" Disable :q
39nnoremap q: <nop>
40
41" Status Line enhancements.
42" https://tomdaly.dev/projects/vim-statusline-generator/
43set laststatus=2
44set statusline=
45set statusline+=%f
46set statusline+=%m
47set statusline+=\
48set statusline+=%=
49set statusline+=%y
50set statusline+=\
51set statusline+=%{strlen(&fenc)?&fenc:'none'}
52set statusline+=\
53set statusline+=%l
54set statusline+=:
55set statusline+=%c
56set statusline+=\
57set statusline+=%L
58set statusline+=\
59set statusline+=%P
36 60
37" Format current paragraph to 80 rows. 61hi StatusLine cterm=NONE ctermbg=black ctermfg=brown
38noremap <C-f> vipgq 62hi StatusLineNC cterm=NONE ctermbg=black ctermfg=darkgray
39 63
40" Commenting blocks of code. 64" Commenting blocks of code.
41augroup commenting_blocks_of_code 65augroup commenting_blocks_of_code
@@ -48,26 +72,6 @@ augroup commenting_blocks_of_code
48augroup END 72augroup END
49noremap <silent> ,cc :<C-B>silent <C-E>s/^/<C-R>=escape(b:comment_leader,'\/')<CR>/<CR>:nohlsearch<CR> 73noremap <silent> ,cc :<C-B>silent <C-E>s/^/<C-R>=escape(b:comment_leader,'\/')<CR>/<CR>:nohlsearch<CR>
50noremap <silent> ,cu :<C-B>silent <C-E>s/^\V<C-R>=escape(b:comment_leader,'\/')<CR>//e<CR>:nohlsearch<CR> 74noremap <silent> ,cu :<C-B>silent <C-E>s/^\V<C-R>=escape(b:comment_leader,'\/')<CR>//e<CR>:nohlsearch<CR>
51
52" Status Line enhancements.
53set laststatus=2
54
55hi User1 ctermfg=green ctermbg=black
56hi User2 ctermfg=yellow ctermbg=black
57hi User3 ctermfg=red ctermbg=black
58hi User4 ctermfg=blue ctermbg=black
59hi User5 ctermfg=white ctermbg=black
60
61set statusline=
62set statusline +=%1*\ %n\ %* "buffer number
63set statusline +=%5*%{&ff}%* "file format
64set statusline +=%3*%y%* "file type
65set statusline +=%4*\ %<%F%* "full path
66set statusline +=%2*%m%* "modified flag
67set statusline +=%1*%=%5l%* "current line
68set statusline +=%2*/%L%* "total lines
69set statusline +=%1*%4v\ %* "virtual column number
70set statusline +=%2*0x%04B\ %* "character under cursor
71``` 75```
72 76
73I keep it pretty vanilla so this is about everything I have in the file. 77I keep it pretty vanilla so this is about everything I have in the file.