Why the heck does set columns=84
in ~/.gvimrc
cause starting gvim
to output 0;22R0;83V
to stdout each time?
It's 2024 anf currently I'm reading about #makefile. For the same project I've been reading about #vimrc. And yeah, this all feels right.
In the last days I've run into a tainted kernel panic which I could only solve because of my years of #gentoo and #portage.
And yeah - all of this feels really good and right!
My #vimrc i wrote 20 years ago and still in use today
" pancake's exposee for vim:
let fs=0
fun Exposee()
if (g:fs == 0)
res 1000
vertical res 1000
let g:fs=1
else
exe "normal \<C-W>="
let g:fs=0
endif
endfun
map <F10> :call Exposee()<cr>
"some nice keymappings
map <F1> :vsp<cr>
map <F2> :sp<cr>
map <F3> :sp<cr>:e .<cr>
map <F4> :q<cr>
map <F5> <C-W>=
map <C-A> :FZF<cr>
imap <C-O> <ESC><C-X><C-O>
" fine zooming
map <C-J> 2<C-W>+
map <C-K> 2<C-W>-
map <C-L> 2<C-W>>
map <C-H> 2<C-W><
" fine frame moving
map <C-Y> <C-W>h
map <C-U> <C-W>j
map <C-I> <C-W>k
map <C-O> <C-W>l
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.)
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=