[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: 1733850588357521.webm (1 MB, 576x1024)
1 MB
1 MB WEBM
>>
>>106963958
At least a couple of
" {{{
, a remap of Ç and ç to :, my status bar and a couple of random stuff. My .bashrc has nicer stuff, tbqh.
>>
>>106963958
>My .bashrc has nicer stuff, tbqh.
My .bashrc once had alias anal=systemd-analyze. Now, it's in .bash_aliases
>>
>>106963958
things related to configuring vim
>>
File: 1747894492339654.jpg (82 KB, 960x540)
82 KB
82 KB JPG
>>106963976
>a remap of Ç and ç to :
>>
>>106964042
Uma delícia.
>>
>>106963958
I deleted anything vim-related the last time I had to redo my fucking config for the billionth time after an update that broke everything.
fuck this gay shit, I use vscode with vim shortcuts now, I'd rather bloat my comuter than bloat my brain with inane bullshit
>>
>>106964015
One of my favourites is:

mkcd() {
mkdir -p -- "$@"
cd -- "${@: -1}" || return
}


I just realized I don't have my mkscript anymore, which was something like:

mkscript [interpreter] file [...files]


Would
which interpreter
, then write #!${interpreter} to all the files (with a check to not overwrite and a warning), and then change them to u+x.
>>
>>106963958
[anon@4chan ~]$ cat ~/.vimrc
cat: /home/anon/.vimrc: No such file or directory
>>
>>106963976
okay but it's maybe slightly niggerlicious, I don't really use vim much on this system, but neovim integrated into vscode.
" Source defaults.vim
unlet! skip_defaults_vim
source $VIMRUNTIME/defaults.vim

" There is no need for compatibility with the Vi way of things
se nocompatible

" Show line and column number of the cursor position
se ruler
" Matched string is highlighted while you search
se incsearch
" Show line number for each line
se nu
" Show partial command in last line of the screen
se showcmd

" When <Tab> is pressed to invoke completion, possible matches are shown
se wildmenu
se expandtab
se tabstop=4
se shiftwidth=4
se cindent

" I strongly dislike C++ namespace indentation and (0 for ffmpeg work.
se cino=(0,N-s

" Allow tabs in Makefiles.
autocmd FileType make,automake se noexpandtab shiftwidth=8 softtabstop=8
" Trailing whitespace and tabs are forbidden, so highlight them.
highlight ForbiddenWhitespace ctermbg=red guibg=red
match ForbiddenWhitespace /\s\+$\|\t/
" Do not highlight spaces at the end of line while typing on that line.
autocmd InsertEnter * match ForbiddenWhitespace /\t\|\s\+\%#\@<!$/

" Don't use the mouse for selecting lines
if has('mouse')
se mouse=r
endif

" vim-plug plugin configuration
call plug#begin()

Plug 'rafi/awesome-vim-colorschemes'
Plug 'whatyouhide/vim-gotham'

call plug#end()

" My theme of choice for regular Vim, possibly overridden by gvimrc
colo afterglow

" Color 80th column to help with code formatting
se colorcolumn=80
>>
>>106965323
Oops, meant for OP
>>
File: 2025-10-21_23-09.png (86 KB, 810x1036)
86 KB
86 KB PNG
>>106963958
>>
>>106965175
Try
cat ~/.vim/vimrc


>>106965332
How could you mistake us? I'm not a faggot.

>>106965323
But yeah, mine looks like that too. I pretty much followed a random tutorial copying what I liked and ignoring what I disliked.


>>106965417
>swap kj
What? Why?
>>
>>106963958
Whatever it makes automatically when you open vim. I never use that abomination except when I'm on a server that doesn't have anything else. I barely even know how to use it, let alone create my own riced configs for it.
>>
File: 1761044632452740.gif (1 MB, 480x400)
1 MB
1 MB GIF
>>106965424
>>swap kj
>What? Why?

it made more sense to me for the j to go up (backwards) and k going down (but actually forward as in number line, the same as volume down being in the left and volume up being in the right, or page up and page down being from left to right)

anyway it's commented out, as i didn't know hot to change the vim defaults to less, man and to the other core utils

and, also, it didn't change everything in vim either, if i were to press gj or gk, my changes wouldn't do anything to the default
>>
>>106963958
https://litter.catbox.moe/1imhk3k1kemi55v6.vimrc
>>
>>106965491
Well thought out and makes a lot of sense actually. But keeping to the defaults also makes a lot of sense. You're quite a level-headed reasonable fellow. Thanks for taking your time to explain.
>>
>>106965507
don't open this, it's cp
>>
>>106965424
>Try cat ~/.vim/vimrc
[anon@4chan ~]$ cat ~/.vim/vimrc
cat: /home/anon/.vim/vimrc: No such file or directory
>>
>>106965323
>>106965417
Do Ugandans really think ts (this shit) is better than glorious elisp?
>>
>>106963958
nothing, but I do have
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
Lua 9 152 252 1131
Nix 1 9 0 58
-------------------------------------------------------------------------------
SUM: 10 161 252 1189
-------------------------------------------------------------------------------
>>
File: 2025-10-21_23-49.png (93 KB, 1195x618)
93 KB
93 KB PNG
>>106965638
i'm No.106965417 / No.106965491
hahaha i laughted at the ugandan meme, yeah, trully embarassing for vim

also, vim has a cucked loycense, unlike emacs

https://hoop.dev/blog/understanding-the-vim-license-freedom-compatibility-and-charityware/
>>
>>106963958
I use it only as a portable config, because my main local editor is nvim.

set number relativenumber
set showcmd
set spell
syntax on

set ignorecase
set smartcase
set incsearch
set hlsearch

set autoindent
set smartindent
set virtualedit=onemore
set noexpandtab
set tabstop=4
set shiftwidth=4

set backspace=indent,eol,start
set foldmethod=manual
set paste

set undofile
set undodir=~/.vim/undo/

hi VertSplit cterm=NONE
hi Search ctermfg=black ctermbg=33
hi StatusLine ctermfg=black ctermbg=green
hi StatusLineNC ctermfg=black ctermbg=red
hi Visual ctermfg=NONE ctermbg=8
hi clear SpellBad
hi SpellBad cterm=underline gui=underline
>>
File: 1755446091889750.jpg (142 KB, 1013x1334)
142 KB
142 KB JPG
>>106965541
i forgot to thank you
you're such a nice anon ^_^
>>
I'm white so I use emacs
>>
>>106965603
cat ~/.nanorc
? emacs? joe? ed?
>>
>>106966056
Thank (you). Appreciated.
>>
>>106963958
I've been using Notepad++ for the past few years
Tried to go back to gvim and it's like starting over
Just cannot
>>
File: 1754428967834461.jpg (467 KB, 1536x2048)
467 KB
467 KB JPG
cat ~/.config/helix/config.toml 
[editor]
line-number = "relative"
mouse = false

[editor.cursor-shape]
insert = "bar"
normal = "block"
select = "underline"



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.