my random thoughts

The work is always in progress.

  • Main page
  • Posts
  • Nuggets
Skip to content

Tag: vim

vim: run command without exiting Insert

2016-04-28 2021-01-20 omik

In Vim, you can exist Insert mode to enter one command using Ctrl–O,
for example: (in insert) Ctrl–O, type :w, then ↵ Enter, then back to writing.

Posted in From 'dev', Programming (and related)Tagged vimLeave a Comment on vim: run command without exiting Insert

vim: increment/decrement number under cursor

2016-04-27 2021-01-20 omik

To quickly in-/decrement number under cursor in Vim, use (in Normal):

  • to increment: Ctrl–A
  • to decrement: Ctrl–X
Posted in From 'dev', Programming (and related)Tagged vimLeave a Comment on vim: increment/decrement number under cursor

vim: switch case

2016-04-25 2021-01-20 omik

In Normal mode, use ~ to switch case of letter under cursor. Similar commands are:

  • gU<i></i> – to switch to upper-case
  • gu<i></i> – to switch to lower-case

For example: gUU converts whole line to upper-case and guiw to convert word surrounder by cursor to lower-case.

Posted in From 'dev', Programming (and related)Tagged vimLeave a Comment on vim: switch case

O mnie

picture

Pisze bloga z narzekaniem, marudzeniem na otaczającą rzeczywistość, czasem czymś zdatnym do czytania.
O sobie: MKM, MK, ateista. Typ aspołeczny. Żywi się marudzeniem i całkami. Trzyma w domu (lub nie) kota Schrödingera.

Recent Posts

  • So, I moved.
  • fun fact about TCP
  • (no title)
  • (no title)
  • (no title)

Categories

  • From 'dev'
  • From Tumblr
  • Photography
  • Programming (and related)

Archives

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Proudly powered by WordPress | Theme: v92v2 by omik, built upon underscores.me