My #vimrc 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
I'm afraid to post my real #vimrc 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.)
Open URL in Vim https://vimtricks.com/p/open-url-in-vim/ #tipsandtricks #netrw #vimrc
Just spent 20 seconds finally adding a single space to my #vimrc 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' #latex manuscripts) a couple of minutes every day...
That's a full day squandered. Dwarfed by the overall savings of using #vim of course, but still. A stitch in time, or somesuch..
My Vim configuration for yaml files: https://gist.github.com/lmarqueta/736dcf8940e8711c873f5550d675154a
#yaml #ansible #vim #vimrc
@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.
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=```
A Simple .vimrc File to Start
Learnings after 500 commits to my #vimrc | I am Sang
https://iamsang.com/en/2022/04/13/vimrc/
@hyde cool, I might adopt a couple of your lines for my #vimrc!
https://github.com/maze88/dotfiles
@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
#Checkliste für #Vim als #IDE für #Python
#Checkliste für die #Vervollständigung der #Datei #Vimrc
Bezüglich #Debugging sagt der Vortragende er benutze dafür nicht Vim, sondern #iPython und #ipdb (#IPython #pdb).
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.
#checkliste #vim #ide #python #Vervollständigung #datei #vimrc #debugging #ipython #ipdb #pdb