The Gluster Blog

Gluster blog stories provide high-level spotlights on our users all over the world

Mo_VI_n’ around

Gluster
2012-03-21

When your editing files on the fly, you need a tool like VIM.  I use VIM almost exclusively for clojure and python.

However, to really be efficient, you can’t rely on the arrow keys -> you need to know the shortcuts.

So heres my favorites :

Inside of VI

1) VI : the ‘$’ sign : teleports you to the END of a line.
2) VI : the ‘w’ key goes FORWARD a word, the ‘b’ key goes BACKWARDS.
3) VI : the ‘0’ key sends you to the BEGGINING of the line.
4) VI : the ‘/’ key takes you to the NEXT instance of a string.  i.e. /m will move the cursor to the letter “m”.

When Opening VI

5) the vi -c 10 myfile.txt command will open the file starting at line 10.  Efficient for ebugging off of the terminal.

I’m just starting to realize that more and VI both support some heavy duty cursor teleportation tools.

BLOG

  • 06 Dec 2020
    Looking back at 2020 – with g...

    2020 has not been a year we would have been able to predict. With a worldwide pandemic and lives thrown out of gear, as we head into 2021, we are thankful that our community and project continued to receive new developers, users and make small gains. For that and a...

    Read more
  • 27 Apr 2020
    Update from the team

    It has been a while since we provided an update to the Gluster community. Across the world various nations, states and localities have put together sets of guidelines around shelter-in-place and quarantine. We request our community members to stay safe, to care for their loved ones, to continue to be...

    Read more
  • 03 Feb 2020
    Building a longer term focus for Gl...

    The initial rounds of conversation around the planning of content for release 8 has helped the project identify one key thing – the need to stagger out features and enhancements over multiple releases. Thus, while release 8 is unlikely to be feature heavy as previous releases, it will be the...

    Read more