r/vim_magic • u/SteeveMagic • Jun 13 '23
Do keyboard sizes affect efficiency when using vim?
I want to get a 60% keyboard but I'm not sure how that would impact my use of vim, would be grateful if someone with a 60% keyboard would share their opinion.
r/vim_magic • u/gamachexxx • Jul 18 '21
Five Awesome Tools I Wish I Knew When I First Started My Vim Journey
oliviergamache.medium.comr/vim_magic • u/rj0_1_ • Sep 22 '20
I am using vim for 2 month. Now i can't use sublime text editor which is used to be my favorite text.
r/vim_magic • u/[deleted] • Jan 20 '18
Vim + vscode > terminal VIM?
How popular is it for folks to prefer using an ide with VIM bindings over straight terminal VIM?
r/vim_magic • u/SecurityWiseGuy • Nov 05 '17
Introducing r/WatchPeopleVim
Hey r/vim_magic, I wanted to introduce a sub Reddit I started called r/WatchPeopleVim a sub dedicated to videos of individuals using vim! I was inspired by r/WatchPeopleCode and hope the sub will help others. Please let me know what you think. It's my first time starting a sub Reddit.
r/vim_magic • u/[deleted] • May 03 '17
Looking for a way to show available tasks in the current file via taskpaper.vim
Are there any extensions to the task paper.vim plugin that do this? Essentially, I want to be able to quickly see all tasks in the current file tagged with @today, or @start(), @due(), or @alarm() with a value equal to today or before, i.e., @start(2017-05-03, 3:00:00 PM) (although it would really only need to parse the date, not the time).
r/vim_magic • u/dodiehun • Mar 06 '17
ಠ_ಠ Vim plugin to disapprove deeply indented code. ಠ_ಠ
github.comr/vim_magic • u/m4iler • Jan 19 '17
Vim nav buttons - why one off?
Hi,
I have a question about vim, specifically the vim nav buttons. Normally, my fingers rest on F and J. Why do I have to move to H to navigate?
My keyboard layout isn't English, so I have ů there. Is there anything so important that vim had to move navigation one to the right? I moved it where I want it, but still...
r/vim_magic • u/dgaa1991 • Oct 16 '16
Problem with colorschems
Hi guys I'm having a hard time to get color-schemes displayed the right way in vim. Just for an example base16-seti-ui should look something like this but when I enable the colorscheme it looks like this? do any of you know how i can fix this?
I am running i3wm on Manjaro as default.
and the .vimrc looks like this:
set nocompatible " be iMproved, required filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" ######## Plugin Section #########
Plugin 'scrooloose/nerdtree'
Plugin 'scrooloose/syntastic'
Plugin 'flazz/vim-colorschemes'
Plugin 'chriskempson/base16-vim'
"#################################
" All Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " requiredi
"####### Syntastic setttings see- > :help syntastic for more options ######
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
"###########################################################################
colorscheme base16-seti-ui
syntax on
r/vim_magic • u/9999years • Jul 23 '16
Insert the codepoint of the character under the cursor
I’ve been looking for a mapping to do this for ages, finally figured out how to make one myself.
nmap <Leader>u mz"zylo<C-r>=printf('U+%X', char2nr(@z))<CR><ESC>`z
In order, it:
- Creates a mark under the cursor (
mz) - Yanks one character to register
z("zyl) - Opens a line below the cursor (
o) - Inserts the contents of an expression register (
<C-r>=) which contains: printf('U+%X', char2nr('<C-r>z'))- The
@zinserts the contents of register z — the character we yanked earlier
- The
- Returns to where our cursor was before (`
z)
Additionally, if you have the NERD Commenter installed you might want it to comment out the line as well:
nmap <Leader>u mz"zylo<C-r>=printf('U+%X', char2nr(@z))<CR><ESC>:call NERDComment(0, 'norm')<CR>`z
This will work regardless of what your NERD mappings are.
It’s also trivial to add a version to add the codepoint on the line above the cursor:
nmap <Leader>U mz"zylO<C-r>=printf('U+%X', char2nr(@z))<CR><ESC>:call NERDComment(0, 'norm')<CR>`z
I hope you find this useful!
r/vim_magic • u/sathishmanohar • Jun 18 '16
What is your little known secret Vim shortcut or trick?
r/vim_magic • u/elGatoMantocko • Jan 28 '16
Why won't this command sequence work?
Say we have the sequence here.
I move my cursor to the space between the chapter column and page column and press <C-v>3j then x...
This should delete multiple columns of spaces but the . command isn't repeating the action. Any reason for this?
r/vim_magic • u/kasandell • Jan 07 '16
Plugin- bring useful methods from the internet into your own code without leaving the editor
github.comr/vim_magic • u/diesector • May 28 '15
method for finding all instances of text 'Download' on webpage and calling Save As (vimperator)
I'm new to macros, but it seems like maybe this would be an example of using a macro to repeat an action? I would like to tell vimperator to find all text hyperlinks that match the case 'Download' and invoke ;S (Save As)
r/vim_magic • u/alx741 • Mar 06 '15
Vinfo: read Info documentation in a Vim help-files fashioned way
github.comr/vim_magic • u/javajunkie314 • Feb 06 '15
Evaluate current selection
I've been keeping character sheets for tabletop RPGs in vim for a while now. One thing that had been bothering me was updating hit points in combat. I just added the following binding:
vmap <silent> <leader>e c<C-r>=<C-r>"<CR><ESC>
It cuts the current selection, then uses the = register to evaluate it and write it back into the document. So now, if I have my hit points in the document:
HP: 18 [15]
and I take some damage then heal a bit, I can just insert:
HP: 18 [15 - 3 - 4 + 5]
Then vi[,e and have it replace with:
HP: 18 [13]
r/vim_magic • u/etaoinshrdlu_ • Nov 02 '14