Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. benediktg (benediktg@gnusocial.de)'s status on Friday, 08-Dec-2017 18:06:43 EST benediktg benediktg
    @zuglufttier @thomas
    https://geoffreyenglish.wordpress.com/2017/11/10/7-reasons-youre-feeling-needlessly-unproductive/
    „7. You’re not using vim

    Last but not least… Learn how to use vim, and you’ll never feel unproductive again.“
    In conversation Friday, 08-Dec-2017 18:06:43 EST from gnusocial.de permalink

    Attachments

    1. Invalid filename.
      7 reasons you’re feeling needlessly unproductive
      By geoffreyenglish from Geoffrey English

      It’s hard enough dealing with the pressure of having to be productive as a PhD student or knowledge worker, without a zillion blogs trying to convince you how easy it is to be super productive. So this post is just my way of saying, take it easy… you’re doing more than you think. Hopefully this post will help to give you a little perspective, and make you feel a little better.

      There is an enormous amount of information out there on how to be more productive. Not all of it good. Personally (even if I don’t always practise what I preach) I lean more toward an old-fashioned sit-down-shut-up-and-get-some-work-done productivity philosophy. By that I mean anyone promising you a productivity shortcut, or hack, is probably over promising.

      The fact is 90% of being productive is persistence. Start with the doing, and then optimise later, once you’ve got the ‘doing things’ part down pat, then you can focus on doing things, just a little bit faster. Slow and steady wins the race.

      However it’s also true (especially for PhD students) that you can go day-to-day feeling a lot of pressure to be productive, and no matter how hard you try you always feel behind the eight ball. But it may not always be true.

      Here’s seven reasons why you’re feeling needlessly unproductive.

      1. You may be doing a lot that doesn’t directly contribute to what you think you should be doing

      If you’re like me, and have a lot of valuable important things that you want to do (like blogging, learning code, etc.), and a lot that you kind of have to do (like writing research outlines), you might spend a lot of time doing the things you want to do, instead of the things you have to do. But just because they’re not on your have-to-do list, doesn’t mean they’re not productive or valuable.

      These tasks are important and valuable, so don’t undervalue them because they’re things you enjoy, or because you have something else you feel like you should be doing.

      Far more important is that you’re doing something, and sticking with it for a period of time rather than floating between unimportant tasks quickly and unproductively.

      Just remember that you do need to get onto the have to do list eventually, especially if you have a deadline (deadlines are great motivators, consider setting ones for yourself, before the actual deadline), and dream of the day when the stuff you want to do, and the stuff you really have to do, are the same (if that’s at all possible).

      2. You’ve done a lot, but haven’t ‘finished’ a lot

      Chances are there’s a lot on your to-do list which has very fuzzy beginnings and ends. Sure sending of a draft for journal submission, or finishing a presentation feels nice, but these are big infrequent moments. The average day is spend doing some writing, or some research, running some lab tests, tinkering, getting stuck, failing experiments etc.

      There’s not always a clear finish line, which can mean you’re accomplishing a lot, but you’re not getting the feeling of satisfaction that you expect to come with it.

      As someone who frequents productivity blogs far more than he should, I can tell you that far and away the most popular advice for being productive is

      Set clear/actionable goals

      Oh yeah… thanks for that totally new information.

      It sounds so simple right?

      Of course! It just has to be (frigging) clear and actionable… Why didn’t I think of that!?

      Of course in practise this clarity is surprisingly elusive.

      I’ll just write 500 words…

      I’ll do exactly 2 hrs on this thing…

      Both of these are listed as common soundbites of productivity advice, but after two hours of writing, or after 500 words, if you haven’t ‘finished’ something, then you have nothing to check off your to-do list… which can be very unsatisfying. That doesn’t mean you didn’t get anything done.

      Take a step back and ask yourself, what have you actually done this week, take ten minutes and make a list… you might surprise yourself.

      3. Because your list of “need to do’s” is always bigger than your list of “have done’s”

      Let’s face it, to do lists are never ever empty… ever. No matter how productive you are on any given day, there’s always one more thing not quite done (and it’s usually one of the have to do’s, miright?).

      Chasing a completed to-do list is like chasing a rainbow. You can see where the end is, but  it’s always a few steps in front of you. Just when you think you’re getting there, a few more tasks sprout up and keep you at arm’s length.

      This can leave you feeling like you’ve never done enough…

      You have.

      4. You have unrealistically high expectations for yourself

      We always hear these stories of productivity ninja’s. These people just manage to get enormous amounts of work done all the time, or seem like they never stop, and we wonder why we can’t be more like them.

      Don’t be too jealous.

      • These people are few and far between
      • They often make enormous sacrifices in other areas of their life in order to accomplish what they do
      • You might be seeing them during a rare flow state right before they are about to burnout
      • Alternatively, they’re not super human at all but are just good at making it look like they are, and their achievements may just be massively overstated

      Sometimes it can feel like everyone is a productivity ninja, except for you… it’s not true.

      That’s just imposter syndrome rearing its ugly head.

      The grass is not necessarily greener on the other side of the fence either. Many of the people who are massively productive and zoned in all the time can often be driven by something deeply biological (neurological). Or they’ve been raised in a high pressure environment that has given them a productivity complex. You may even be one of these people without realising it!

      No matter how much work you do, if you’re always feeling unproductive, it’s likely that it’s just in your head and, frankly, you just have unrealistically high expectations for your self…

      Take a step back and realise that you’re not super human, and life is for living.

      It’s a kid on a skateboard! Man that’s cute!!

      5. You’re approaching a key deadline

      Deadlines are very powerful motivators, but also great sources of anxiety.

      Deadlines can make it feel like the walls are closing in on you. Yet somehow for the majority of us the work, somehow, still manages to get done (although, I’ve had my fair share of close calls).

      Worse still is that as the deadline gets closer, you feel more and more anxious whenever you’re not contributing to the deadline. When a deadline is looming we can feel like nothing we’re doing is productive. Until we hit that submit button, or push a paper through a submission slot, we can just sit a constant state of anxiety anytime we’re not writing actual words.

      Do not undervalue the time you spend thinking.

      Do not undervalue the time you spend away (when you come back to it, your mistakes will be easier to spot, and the solutions much clearer).

      Relax, you’re doing more than you think.

      6. You’re overly critical of your leisure time

      I have a confession to make. I can’t believe I’m going to admit to this but…

      The other day, I played a video game (for the first time in months) for 45 minutes!

      Oh man… I’m glad I got that off my chest, I have been feeling so guilty about it, but…

      Feeling guilty about leisure time is a big mistake.

      Leisure time is not the same as procrastination.

      Procrastination adds no value to the time your using. Like, scrolling through social media, constantly checking and re-checking your to-do list (yes that’s a form of procrastination), spending all your time answering emails, etc.

      Doing these things frequently, but not for great lengths of time, can really affect your turn-around time (the time it takes to get in the zone and focused on an important task) and that’s not good.

      Taking specific, decent chunks of time to unwind however, is not unproductive, and it has value.

      Don’t feel like you’re procrastinating, if what you’re really doing is taking a much-needed break. My only advice here is avoiding social media for that break. Social media will not make you feel more relaxed… Just, it just won’t OK.

      7. You’re not using vim

      Last but not least… Learn how to use vim, and you’ll never feel unproductive again.

      Couldn’t resist. Just look at him.

       

    1. igor (igor@herds.eu)'s status on Saturday, 09-Dec-2017 02:55:43 EST igor igor
      in reply to
      @benediktg @thomas @zuglufttier

      "If you have never done any programming, and you opened up a text file in vim, I guarantee within seconds you’ll start panicking. Any number of things might happen depending on what keys you typed on your keyboard."

      "It definitely will not do what you expect. When buttons don’t work, you will move the mouse and click where you want the cursor to go, and it won’t go there. Your heart rate will start to rise. You’ll notice there’s no menu bar at the top, and your pupils will constrict slightly. About this time you’ll start to think this was a bad idea and try to get out of it, but when you realize that ESC doesn’t work, now you really start to panic. All of a sudden you can’t think properly, you start breathing heavy and you tense up."

      "Fear grips you."

      :)

      https://geoffreyenglish.wordpress.com/2017/09/15/how-and-why-to-vim-even-if-youre-not-a-dedicated-programmer/
      In conversation Saturday, 09-Dec-2017 02:55:43 EST from herds.eu permalink

      Attachments

      1. Invalid filename.
        How and why to Vim; even if you’re not a dedicated programmer
        By geoffreyenglish from Geoffrey English

        What is Vim?

        Vim is a text editor. If you’re a computer user who dabbles in code, but is not primarily a programmer – like a data scientist, or a maybe even a blogger – then you may have heard of Vim, but never figured it would be useful enough, or worth the effort to learn.

        It is.

        What is a text editor?

        It’s a program that edits text. Which sounds really self-explanatory, but I heard the term a lot at first before the obviousness of it sank in.

        Text is literally just what your keyboard types into a computer. Microsoft word is a text editor of sorts (technically it’s a word processor). It’s a highly functional text editor that automatically formats your text as you type, and does all kinds of other crazy things automatically. Ordinary text editors just input the basic text with no formatting (fonts, colours, size, etc).

        Notepad is one of the most basic text editors. It is a program where you can open a text file and input text. It will not even automatically jump to the next line if you don’t tell it to. It will not show different fonts or anything… just text.

        There are lots of other text editors that also will only show you the text you’ve written with no formatting, however these editors have other functionalities that make them especially useful for doing things like writing computer programs and scripts. They all do different things which make them more or less popular amongst programmers, software engineers, web developers and other people who write computer code.

        Some are purpose-built for specific applications. For example R is a programming language and environment which harbours a mind-boggling amount of statistical applications from visualizing data, to performing calculations. R has an inbuilt text editor which is useful because with the push of a button you can send your line of code from the text file you’re writing in, straight into the R command line and it will run that code.

        Other more general purpose text editors are Notepad++ (a far superior and functional editor compared to the basic Notepad), Emacs (which does all sorts of crazy things beyond simply editing text, it even has games!), Text Wrangler… the list goes on.

        Pretty much all of these text editors work in the way you would expect. At least their basic functionality is familiar.

        There is one text editor however, unlike any other. It is among the fastest and most efficient text editor there is, for the purposes of editing text at least.

        It’s called Vi.

        Vi and Vim

        Vim is an acronym for Vi Improved.

        Which is exactly what it is.

        While it is true that there are a couple of specific occasions where Vi might be more suitable. In general Vim is everything Vi is and so much more.

        I think it’s important to understand that Vim was created as an extension to Vi, which was the original mover and shaker, and because what makes Vim so different, and so much more powerful for editing text than other editors, can be traced back to Vi.

        Vim is fast, super fast. It is highly extensible and customizable, and it’s not that hard to learn really.

        If you have never done any programming, and you opened up a text file in vim, I guarantee within seconds you’ll start panicking. Any number of things might happen depending on what keys you typed on your keyboard.

        It definitely will not do what you expect. When buttons don’t work, you will move the mouse and click where you want the cursor to go, and it won’t go there. Your heart rate will start to rise. You’ll notice there’s no menu bar at the top, and your pupils will constrict slightly. About this time you’ll start to think this was a bad idea and try to get out of it, but when you realize that ESC doesn’t work, now you really start to panic. All of a sudden you can’t think properly, you start breathing heavy and you tense up.

        Fear grips you.

        You will start wondering why you thought this would be a good idea. Now all you want to do is get out of there. In your haste you try to close the terminal window and it prompts you with a warning that there is a program still running, the final obstacle to freedom, you hastily mash the ‘I don’t give a shit’ option, and then just sit there for a minute while you calm down.

        Welcome to Vim.

        After this post hopefully at a minimum, you’ll be able to get in and out of Vim without raising your blood pressure.

        Hopefully, after a series of posts on this wonderful editor, what you’ll also find is that what was the source of your initial angst, becomes your favourite thing about it.

        You see, Vim is not like other text editors. In fact Vim does not work like anything else that you’re used to using on a computer. You open a browser, you click where you want the cursor to sit, then you type, and it does what you want. In notepad, you see the cursor, you hit a letter, and it displays that letter on-screen. Vim doesn’t do that. Initially it’s one of the most unintuitive programs you’ll ever use.

        But if you put in the time and effort at the beginning to get used to it, like you have to for anything worth doing, you’ll find that it becomes intuitive… even quite nice. You might even find after a while that it starts to feel like, not only is it faster and more efficient, but that this is the way it was supposed to be, and that other editors and the whole desktop experience has been getting it wrong all this time. It will start to feel like home, and other programs will start to feel like somewhere you visit.

        After getting comfortable with vim, you might find yourself wanting to learn how to code, just so you have an excuse to use it.

        So how do you do that? Get comfortable with Vim, I mean.

        This post will help get you started.

        Vim, the properly basic basics.

        Vi is an IT veteran. It was born in a world where the mouse and the Desktop environment, as you know it today didn’t exist. It is a product of necessity.

        In the days of green text on a black screen, computer geeks needed a way to quickly navigate verbose text files without a mouse.

        Vi and other lightweight text editors developed during these years. Today Vi, Vim and other similar clones are ubiquitous on UNIX like systems.

        What this means is that today systems such as most Linux distros and the Mac OS, come standard with vim, and basically all come standard with Vi.

        If you’re a Linux user then, well for starters you probably don’t need some wannabe data scientist teaching you how to use vim, but in any case, you’re probably fairly familiar with the command line.

        If you’re a Mac user, you may or may not be familiar with the Terminal. But you should at least know how to find it. If you’ve never used the terminal before then this is the tutorial I used to get me started.

        If you have Linux or a Mac OS, then chances are you have Vim built right into the terminal, and it’s simply a matter of typing:

        vim

        into your command line and voila… Now I need you to sit quietly for a minute while I go and help the Windows users (which is really only because I’m one of them… not by choice).

        If you’re a windows user, then you’ve got a little more work to do (not much, but some).

        There are multiple options for Windows users, but for now I’m only going to go through the simplest and quickest. Which is to install the gVim direct from the Vim website.

        I’ll leave it up to you to work this out. It’s not that hard, and I had a working gVim installed on my Windows 10 laptop in about ten minutes (the ‘g’ just means it’s a ‘graphical interface’ version of Vim, which makes it more user-friendly, which I’ll explain more in a minute).

        So gVim on windows will work a little differently to Vim inside a terminal window. Firstly, you have to go to the vim.exe program, like you do every other program in windows and double-click to open it (you can also pin it to the start menu and task bar like any other program in windows). This will open up a Vim session.

        The first thing you’ll notice if you’re using Windows is that I lied to you before when I said there was no menu, because in gVim there is. You’ll also find that you can use your mouse to put the cursor where you want it to go. However, that’s about as far as the help goes… for now at least.

        So now whether you’re a Linux, Mac or Windows user, you should all be up to speed. You should be looking at a window, of some description, with the Vim welcome screen in it.

        Believe it or not, the welcome screen has some very helpful information on it, which in your panic and frustration, may not have noticed the first time.

        But we’re going to ignore it all for now, and just focus on the basics.

        So the first thing we’re going to do is get back out again by typing:

        :q

        If you’re in a terminal, it will just return you to your command prompt.

        If you’re a windows user it will close the gVim program, just like every other program in windows.

        Congratulations, you can now get into Vim, and get out of Vim. Which is the source of a significant portion of the terror that most of us experience the first time we try to use Vim. So give yourself a pat on the back. The next most significant source of anxiety for first time Vim users is when they realise their keyboard doesn’t work properly. Don’t worry, it works perfectly fine.

        The essence of Vim

        The first thing you need to know about Vim (once you know how to open and close it that is), is that it is like an ogre, which is like an onion, which means that it has layers, which are not layers but are actually ‘modes’.

        But I like to think of them as ‘layers’. As I said before, Vim was forged in a world where your keyboard was your only friend. So it had to do more than just input alphanumeric digits. It also had to get you around.

        Before we talk any more about modes, I would like you to look at your keyboard.

        Welcome back.

        If you want to learn to see the real beauty of Vim, then as of right now, you need to stop thinking of your keyboard the way you probably do.

        You probably look at your keyboard and see the key with the letter ‘g’ on it and think, yep, that is the ‘g’ key. It’s not.

        Whoa…

        As hard as this might be at first, you need to stop thinking of the key with the ‘g’ on it as the ‘g’ key, and think of it as just a blank key, that just happens to be called ‘g’ because that’s what someone decided to call it once. Up till now, you’ve found that the key called ‘g’ just happens to output the letter ‘g’ on your screen most of the time. But that’s not what it does in Vim.

        Depending on what ‘mode’ your in, and what other keys you have just hit, your key called ‘g’, and all the rest of your keys can do any number of things. They may move your cursor, delete something, paste something, copy or ‘yank’ something… lots of things. There’s one mode where they more or less do what you are used to them doing, but funnily enough it’s not the mode that you’ll find yourself in the most.

        Remember when I said that ‘what was the source of your initial angst, becomes your favourite thing about it.’?

        Well the ‘thing’ I am referring to here is known as ‘normal mode’.

        Normal mode is the mode that Vim is in by default, and it’s the mode that Vim is in when you first open your editor. It’s called normal mode because it’s the mode that programmers will find themselves in most of the time and is where you do most of your text ‘editing’, and it’s not the mode where your key called ‘g’ puts a ‘g’ on the screen.

        Normal mode is the mode where you navigate through your text file, and make all manner of edits and changes, but it’s not where you ‘insert’ the text. The mode where you ‘insert’ the text is called ‘insert mode’ (which makes so much sense once you think about it).

        Insert mode is where your keys will feel a little more familiar, in that your keys that are named after letters and numbers will output those letters and numbers on the screen when you press them.

        The other two most commonly used modes are ‘visual’ mode and ‘command-line’ mode. When I asked you before to hit :q to exit, hitting the ‘:’ puts you in command-line mode. I’ll explain more about those two in another post soon.

        For now, I just want you to know about these four modes:

        Normal mode: The mode you’re normally in and the mode you start in. Normal mode is for navigating your document and making a near infinite amount of changes to it using only the keyboard. Normal mode is your friend. Normal mode is your personal assistant, and it’s very good at its job. Eventually you’ll start to wish you could take your personal assistant wherever you go.

        Insert mode: This is the mode where you insert text. It is not the default mode and is not where you spend most of your time. By the end of this series you’ll understand why.

        Command-line mode: This is where you input commands to Vim similar to the command prompt in MS-DOS, or the bash terminal.

        Visual mode: This is used for highlighting text, so you can copy (yank), paste (put), indent and other various things to highlighted blocks of text.

        So you might be wondering:

        ‘Yeah this is great, but why the hell does this make Vim so much better?’

        Good question. Above all things, the most important reason that utilizing the keyboard in this way makes Vim so fast, is because your hands spend the minimum amount of time moving from one device to another. I promise, once you start to get used to it, you’ll understand what I mean. You can do a very large number of things without the palms of your hands leaving their resting place.

        If you’re a pretty efficient touch typist already, in no time your fingers will be performing the tango with your keyboard. They’ll dance across your keys like Antonio Banderas in that movie where he dances a lot… whatever it’s called.

        Before you know it the limiting factor for your productivity will be your touch typing speed and the speed you can think. As many enthusiastic Vim users have pointed out before me, it reduces the minutiae and downtime between movements and inputs, allowing you more mental energy to focus what matters most – your work.

        Vim also has a mind boggling number of plug-ins and customizations that allow it to do an enormous amount of things to streamline your workflow and make it more efficient.

        Since I’m still a beginner Vim user of sorts, I’ll leave it up to any seasoned Vim vets to list their favourite plug-ins and extensions in the comments section!

        Personally I also find that on top of all that, I just love using it. It makes working in it a game. I’m always asking myself if Vim has a way of making something faster and less repetitive (which is fundamental to the programming mentality – don’t repeat yourself).

        OK Geoff, enough is enough, I want to do something already.

        Good, me too.

        Next week we’ll be going through some of the basics of normal mode, and how to quickly navigate your way around a file in Vim; this is the cornerstone of what separates Vim and Vi like editors from all the rest.

        From here will be a series of introductory posts which will go through a couple more of the basics of Vim, which I will eventually compile into a downloadable pdf, or maybe even an eBook!

        Hopefully that’s not too unsatisfying for you. If I’ve piqued your curiosity then be sure to subscribe to get notified when all the rest of the articles come out (never more than once per week).

        Thanks so much for reading (all the way to the end no less!)

        If you want to know more about me and why I started this blog check out my about page.

         

         

  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.