ejfox + vim   6

How do I reload the current file in vim?
The command you want is :e (short for :edit). If you use :edit! it will discard local changes and reload.
cli  vim 
6 weeks ago by ejfox
Move cursor to beginning of non-whitespace characters in a line in Vim
> Instead of pressing ^ you can press _(underscore) to jump to the first non-whitespace character on the same line the cursor is on.

> + and - jump to the first non-whitespace character on the next / previous line.
cli  vim 
9 weeks ago by ejfox
Vim: convert tabs to spaces
`set tabstop=2 shiftwidth=2 expandtab`
vim  cli 
9 weeks ago by ejfox
How to run Unix commands from within Vim? - Super User
Go to command mode Esc, then run `:!unix_command`. Anything run from the : prompt starting with a bang ! will be run as a unix shell command.
cli  vim 
11 weeks ago by ejfox

related tags

cli  vim 

Copy this bookmark:



description:


tags: