#vimrc — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #vimrc, aggregated by home.social.
-
С Vim удобно программировать (часть II)
Это вторая часть публикации. В первой мы разобрали основные настройки редактора, позволяющие сделать процесс набора программы более удобным. Здесь рассмотрим плагины и скрипты для запуска программ на разных языках из редактора Vim.
-
Do you use the Vim support in Obsidian? You know there's no ESC key on the iPhoneOS on-screen keyboard.
Here's a minimal .obsidian.vimrc to use, which includes a remap that lets you use jj in insert mode to act as ESC
-
Do you use the Vim support in Obsidian? You know there's no ESC key on the iPhoneOS on-screen keyboard.
Here's a minimal .obsidian.vimrc to use, which includes a remap that lets you use jj in insert mode to act as ESC
-
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!
-
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 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 -
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.)
-
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.)
-
-
My Vim configuration for yaml files: https://gist.github.com/lmarqueta/736dcf8940e8711c873f5550d675154a
#yaml #ansible #vim #vimrc -
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.
-
@hyde cool, I might adopt a couple of your lines for my #vimrc!
https://github.com/maze88/dotfiles -
CW: re: emacs :(
@cadadr @ljwrites Said hack, since there may be interest:
" Transparent editing of gpg encrypted files.
" By Wouter Hanegraaff <[email protected]>
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 -
If you use #Vim, here’s a highly recommended #video:
“How To Do 90% Of What Plugins Do (With Just Vim)”, Max Cantor (https://youtu.be/XA2WjJbmmoM).
#Vi #Plugins #Vimrc #Customization #Productivity #Editor #Text
-
Hello #vim master/mistress,
I use the vim8 pack plugin feature.
My .vimrc contain the NERDTree plugin config but this plugin is optional (pack/opt).
So each time I launch vim I have a error message almost "cannot configure NERDTree".
How can I test if NERDtree is loaded and configure it only in this case?
Thanks for you advice.
-
#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.
-
@codesections
I'm considering giving #vim a try again, especially since I find myself more and more coding on my phone using #Termux with on-screen keyboard.
Do you have your #vimrc online somewhere, as it looks useful, or can recommend some useful repositories for it?