w !bash
Ok, by what if I wanted them running *on a separate window* 👇
w !bash
Ok, by what if I wanted them running *on a separate window* 👇
Ctrl + n
autocomplete from top-k most frequent words (in current doc/buffer). Once you get an intuition for how much prefix you need, a big time saver (for people that can't type like me)
Ctrl + n
autocomplete from top-k most frequent words (in current doc/buffer). Once you get an intuition for how much prefix you need, a big time saver (for people that can't type like me)
"What? The code is not working now? I am sure something terrible and super complicated has happened, maybe some corruption of the virt ..."
:!git difftool -- %
"Nopes, it's a dumb mistake on the last 10 lines of code I just added, :dp :w!"
"What? The code is not working now? I am sure something terrible and super complicated has happened, maybe some corruption of the virt ..."
:!git difftool -- %
"Nopes, it's a dumb mistake on the last 10 lines of code I just added, :dp :w!"
Just add this to your .vimrc:
‣ set backup
‣ set backupdir=~/.vim/backups//
Now Vim quietly saves backups in the background.
You can still swear… but now it’s optional. 😅
#Linux #VimTips #TerminalLife #OpenSource #BlueSkyTech
Just add this to your .vimrc:
‣ set backup
‣ set backupdir=~/.vim/backups//
Now Vim quietly saves backups in the background.
You can still swear… but now it’s optional. 😅
#Linux #VimTips #TerminalLife #OpenSource #BlueSkyTech
The legendary, lightning-fast text editor for power users. From writing code to configuring servers, vim offers unmatched control, efficiency, and flexibility.
#vimEditor #PowerEditing #CommandLineTools #VimTips #TerminalSkills #OpenSource #TechGuide
The legendary, lightning-fast text editor for power users. From writing code to configuring servers, vim offers unmatched control, efficiency, and flexibility.
#vimEditor #PowerEditing #CommandLineTools #VimTips #TerminalSkills #OpenSource #TechGuide
ostechnix.com/display-undo...
ostechnix.com/display-undo...
Full guide here: ostechnix.com/vim-tricks/
#Vim #Vimtips #Vimtricks #Editor #Opensource #Linux
Full guide here: ostechnix.com/vim-tricks/
#Vim #Vimtips #Vimtricks #Editor #Opensource #Linux
Ctrl+v and now selection only happens from cursor's column. You can select one or more columns of tables, cut (d) and paste (p) them elsewhere in the table (or elsewhere)
Ctrl+v and now selection only happens from cursor's column. You can select one or more columns of tables, cut (d) and paste (p) them elsewhere in the table (or elsewhere)
noremap <C-a> <Nop>
can you guess? I have tmux C-a as my prefix key ... and C-a is _increment number under cursor_ in vim ... the times some model or variable got magically incremented by one ...
noremap <C-a> <Nop>
can you guess? I have tmux C-a as my prefix key ... and C-a is _increment number under cursor_ in vim ... the times some model or variable got magically incremented by one ...
Share yours—let's see what makes your config special!
#VimTips
v <up/down> to select
!while read x;do echo "$x";done
Here we just replace with the same as an example.
v <up/down> to select
!while read x;do echo "$x";done
Here we just replace with the same as an example.
:windo set diff opt+=iwhite
to ignore indentation when diffing. Useful when change is just a localized new "if" but the new indenting of the code show changes everywhere
:windo set diff opt+=iwhite
to ignore indentation when diffing. Useful when change is just a localized new "if" but the new indenting of the code show changes everywhere
python-uvicorn-0.46.0-x86_64-2cf.txz: Rebuilt.
python-vimtips-0.2.7-x86_64-2cf.txz: Rebuilt.
python-wapiti-arsenic-28.5-x86_64-2cf.txz: Rebuilt.
python-wapiti3-3.2.10-x86_64-2cf.txz: Rebuilt.
python-wxpython-4.2.5-x86_64-2cf.txz: Rebuilt.
python-uvicorn-0.46.0-x86_64-2cf.txz: Rebuilt.
python-vimtips-0.2.7-x86_64-2cf.txz: Rebuilt.
python-wapiti-arsenic-28.5-x86_64-2cf.txz: Rebuilt.
python-wapiti3-3.2.10-x86_64-2cf.txz: Rebuilt.
python-wxpython-4.2.5-x86_64-2cf.txz: Rebuilt.
urlscan-1.0.7-x86_64-1cf.txz: Removed.
Renamed to python-urlscan.
urlwatch-2.29-x86_64-2cf.txz: Removed.
Renamed to python-urlwatch.
vimtips-0.2.7-x86_64-7cf.txz: Removed.
Renamed to python-vimtips.
wapiti-arsenic-28.5-x86_64-1cf.txz: Removed.
urlscan-1.0.7-x86_64-1cf.txz: Removed.
Renamed to python-urlscan.
urlwatch-2.29-x86_64-2cf.txz: Removed.
Renamed to python-urlwatch.
vimtips-0.2.7-x86_64-7cf.txz: Removed.
Renamed to python-vimtips.
wapiti-arsenic-28.5-x86_64-1cf.txz: Removed.
python-unicode-slugify-0.1.5-x86_64-1cf.txz: Added.
python-urlgrabber-4.1.0-x86_64-1cf.txz: Added.
python-urlscan-1.0.7-x86_64-1cf.txz: Added.
python-urlwatch-2.29-x86_64-1cf.txz: Added.
python-vimtips-0.2.7-x86_64-1cf.txz: Added.
python-unicode-slugify-0.1.5-x86_64-1cf.txz: Added.
python-urlgrabber-4.1.0-x86_64-1cf.txz: Added.
python-urlscan-1.0.7-x86_64-1cf.txz: Added.
python-urlwatch-2.29-x86_64-1cf.txz: Added.
python-vimtips-0.2.7-x86_64-1cf.txz: Added.
:!mkdir -p $(dirname %)
:!mkdir -p $(dirname %)
map ,o :exec "!open ".getline('.')<ESC>
to run "open" on current line under cursor. Linux/OSX is smart enough to call the appropriate program i.e. file explorer, pdf/image viewer, browser, etc.
TIL quoting lines prevents special vim chars, such as % & # to trigger
map ,o :exec "!open ".getline('.')<ESC>
to run "open" on current line under cursor. Linux/OSX is smart enough to call the appropriate program i.e. file explorer, pdf/image viewer, browser, etc.
TIL quoting lines prevents special vim chars, such as % & # to trigger