From d33ba404ef693b85fa9ce445c49b64e188648b81 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Mon, 13 Nov 2023 04:35:43 +0100 Subject: Updated VIM sane defaults --- ...5-elitist-attitudes-are-sapping-the-fun-from-programming.md | 6 +++--- _posts/2023-11-07-personal-sane-vim-defaults.md | 10 ++++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/_posts/2023-11-05-elitist-attitudes-are-sapping-the-fun-from-programming.md b/_posts/2023-11-05-elitist-attitudes-are-sapping-the-fun-from-programming.md index 4515466..ccee72b 100644 --- a/_posts/2023-11-05-elitist-attitudes-are-sapping-the-fun-from-programming.md +++ b/_posts/2023-11-05-elitist-attitudes-are-sapping-the-fun-from-programming.md @@ -62,7 +62,7 @@ to see if you are using what is considered the “cool” thing. If you are doin this, you already failed in my opinion. Oh, you are not using this “insert here” algorithm? Such a pleb. Don't you know -about O(2) complexity? OMG, such a noob. He doesn't know. Uneducated pleb. 2017 +about O(N) complexity? OMG, such a noob. He doesn't know. Uneducated pleb. 2017 called, and they want their stack back. Yes, there is a place for all of those things. But not everything needs to be @@ -87,11 +87,11 @@ Code or Vim or Emacs or even Notepad if you wish. If you are having fun, then just do it. Don't worry about these elitist pricks. They will never be satisfied anyway. You will never get their approval. So why even bother. Just go for it. Use C, Rust, OCaml, whatever floats your boat. If it tickles you, just do -it. To hell with everybody else. And if somebody says O(n) complexity, dude? You +it. To hell with everybody else. And if somebody says O(N) complexity, dude? You can say, OOOOO, fuck the fuck off. If this post triggered you, then you are the asshole. Probably. Then you -probably are that guy preaching about O(n) or this language is soo slow +probably are that guy preaching about O(N) or this language is soo slow haha. Stop it. Nobody cares! Touch grass. Anyway, back to having fun. Cheers! diff --git a/_posts/2023-11-07-personal-sane-vim-defaults.md b/_posts/2023-11-07-personal-sane-vim-defaults.md index e8a5551..77ed024 100644 --- a/_posts/2023-11-07-personal-sane-vim-defaults.md +++ b/_posts/2023-11-07-personal-sane-vim-defaults.md @@ -14,6 +14,7 @@ personal list. This is how my `.vimrc` file looks like. " General sane defaults. syntax enable colorscheme sorbet +nnoremap q: set nocompatible set relativenumber set nohlsearch @@ -28,12 +29,8 @@ set autoread set wildmenu set encoding=utf8 set backspace=2 -set tabstop=2 -set shiftwidth=2 -set expandtab set scrolloff=4 set spelllang=en_us -nnoremap q: " Status Line enhancements. set laststatus=2 @@ -52,6 +49,11 @@ augroup commenting_blocks_of_code augroup END noremap ,cc :silent s/^/=escape(b:comment_leader,'\/')/:nohlsearch noremap ,cu :silent s/^\V=escape(b:comment_leader,'\/')//e:nohlsearch + +" Language specific intentation. +filetype plugin indent on +autocmd Filetype make,go,c,cpp setlocal noexpandtab tabstop=4 shiftwidth=4 +autocmd Filetype html,js,css setlocal expandtab tabstop=2 shiftwidth=2 ``` I keep it pretty vanilla so this is about everything I have in the file. -- cgit v1.2.3