MetalSnake · @metalsnake
27 followers · 239 posts · Server social.anoxinon.de

My is too long for one toot:

" Enable line numbers
set number
" Enable syntax highlighting
syntax on
" Highlight current line
set cursorline
" Make tabs as wide as two spaces
set tabstop=2
" Show “invisible” characters
set lcs=tab:▸\ ,trail:·,eol:¬,nbsp:_
set list
" Highlight searches
set hlsearch
" Ignore case of searches
set ignorecase
" Highlight dynamically as pattern is typed
set incsearch
" Always show status line
set laststatus=2
" Enable mouse in all modes
set mouse=a

#vimrc

Last updated 2 years ago

aburka 🫣 · @aburka
388 followers · 3852 posts · Server hachyderm.io

I'm afraid to post my real because it's full of frivolous plugins I'd get roasted for, and anyway I mostly use neovim these days, but here's what I start with when I need a halfway sane editor on a remote machine:

:set sw=4 ts=4 et ai lbr

RIP, Bram. I had very brief interactions with him, when I sent a PR on GitHub and he politely informed me that's not how we do things and to send an email. (Then I accidentally became maintainer of the syntax file I was trying to edit.)

#vimrc

Last updated 2 years ago

OSiUX · @osiux
111 followers · 106 posts · Server rebel.ar
AskUbuntu · @askubuntu
113 followers · 2054 posts · Server ubuntu.social
Leonard/Janis Robert König · @ljrk
304 followers · 11428 posts · Server todon.eu

Someone `set nobinary` in my !

#vim #vimrc #NonBinary #enby #nb

Last updated 3 years ago

thasos · @thasos
8 followers · 221 posts · Server framapiaf.org
bahua · @bahua
18 followers · 53 posts · Server groupthink.fun

I just added this to my , which allows me to toggle the numbered and relative lines I use, for easy copying when in a terminal emulator:

nnoremap <leader>n :set nu! relativenumber!<cr>

What are your favorite custom config lines?

#vimrc #linux #macos #vim #neovim

Last updated 3 years ago

FintanH · @FintanH
31 followers · 69 posts · Server mastodon.ie

Just spent 20 seconds finally adding a single space to my file that I've been meaning to add for at least a couple of years now, and should save me (a copyeditor/proofreader/typesetter of academics' manuscripts) a couple of minutes every day...

That's a full day squandered. Dwarfed by the overall savings of using of course, but still. A stitch in time, or somesuch..

#vimrc #latex #vim

Last updated 3 years ago

/home/lmp :redhat: :verified: · @lmp
24 followers · 89 posts · Server infosec.exchange
Matt · @greppy
35 followers · 154 posts · Server strangeplace.me

@philiph This is my "standard" vimrc these days, I have gotten way, way more stuff crammed into one in the past with vim bundles and plugins and and... but this works pretty well for my needs.

ix.io/4hqu

#vim #vimrc

Last updated 3 years ago

bahua · @bahua
5 followers · 38 posts · Server social.linux.pizza

When I'm editing, I don't like mouse clicking and selecting in a term window to engage visual mode, so years ago I set this in my `.vimrc` and in my `.config/nvim/init.vim`:

```set mouse-=a```

This worked for a long time, and continues to work in vim, but I recently observed mouse-based selecting started engaging visual mode in neovim. The following update to init.vim will fix it:

```set mouse=```

#vimrc #neovim #vim

Last updated 3 years ago

Volkan Özçelik · @volkan
16 followers · 821 posts · Server z2h.dev
El Acheche Anis 🇹🇳 · @elacheche
108 followers · 5054 posts · Server mastodon.social

Learnings after 500 commits to my | I am Sang
iamsang.com/en/2022/04/13/vimr

#vimrc

Last updated 3 years ago

BSDDOG · @BSDdog
2 followers · 27 posts · Server justicewarrior.social
Michael Zeevi · @maze
71 followers · 358 posts · Server fosstodon.org

@hyde cool, I might adopt a couple of your lines for my !
github.com/maze88/dotfiles

#vimrc

Last updated 4 years ago

Doc Edward Morbius ⭕​ · @dredmorbius
2071 followers · 14632 posts · Server toot.cat

@cadadr @ljwrites Said hack, since there may be interest:

" Transparent editing of gpg encrypted files.
" By Wouter Hanegraaff <wouter@blub.net>
augroup encrypted
au!

" First make sure nothing is written to ~/.viminfo while editing
" an encrypted file.
autocmd BufReadPre,FileReadPre *.asc set viminfo=
" We don't want a swap file, as it writes unencrypted data to disk
autocmd BufReadPre,FileReadPre *.asc set noswapfile
" Switch to binary mode to read the encrypted file
autocmd BufReadPre,FileReadPre *.asc set bin
autocmd BufReadPre,FileReadPre *.asc let ch_save = &ch|set ch=2
autocmd BufReadPost,FileReadPost *.asc '[,']!gpg --decrypt 2> /dev/null
" Switch to normal mode for editing
autocmd BufReadPost,FileReadPost *.asc set nobin
autocmd BufReadPost,FileReadPost *.asc let &ch = ch_save|unlet ch_save
autocmd BufReadPost,FileReadPost *.asc execute ":doautocmd BufReadPost " . expand("%:r")

" Convert all text to encrypted text before writing
autocmd BufWritePre,FileWritePre *.asc '[,']!gpg --default-recipient-self -ae 2>/dev/null
" Undo the encryption so we are back in the normal text, directly
" after the file has been written.
autocmd BufWritePost,FileWritePost *.asc u
augroup END

#vim #vi #JustVimThings #gpg #pgp #vimrc #WouterHanegraaff

Last updated 4 years ago

tengu-crow · @tengu
29 followers · 189 posts · Server mastodon.sdf.org

fixing behavior in by small adding to

github.com/tengucrow/intercept

#gx #vim #vimrc

Last updated 6 years ago

Sozialwelten · @sozialwelten
1438 followers · 10041 posts · Server ifwo.eu

für als für

für die der

Bezüglich sagt der Vortragende er benutze dafür nicht Vim, sondern und ( ).

I will insert breakpoints with a shortkey, open another terminal window and start my program, waiting until the breakpoint is hit and then inspect the scope.

ipython.org/
pypi.org/project/ipdb/

youtu.be/YhqsjUUHj6g

#checkliste #vim #ide #python #Vervollständigung #datei #vimrc #debugging #ipython #ipdb #pdb

Last updated 6 years ago