The Way Back

The other day I watched “The Way Back” – a movie, allegedly inspired by real events, about a group of people who escaped a Soviet Gulag camp in Siberia back 1940s and walked their way to India.  I’ve heard nothing of this film until a friend recommended it – no trailer, no nothing.  When I read the brief plot description at IMDb, I got slightly worried that it would turn into one of those anti-Soviet propaganda movies.  My wife shared the worries and even decided not to watch the film with me.

She turned out to be right.  While there is plenty of breathtaking scenery shown in the film, and there is plenty of good acting, the propaganda makes it totally unwatchable.  The film basically pictures the Soviet Union as one huge prison, where the government is after every single person, be he innocent or not, old or young, male or female, Russian or not.  One doesn’t even have to know history to understand that that is a huge exaggeration.

Don’t get me wrong, I’m not complaining because the film pictured Russians (or Soviets) in such a bad light.  It has nothing to do with whether they were Russians or not.  Even if they weren’t of my own nationality I’d be complaining.  I’m not even too sensitive to propaganda in the movies – Hollywood uses it all the time to praise the United States.  The problem is that in this movie, propaganda is the primary objective.  Everything else comes second.  And it’s really a pity.  Level down the propaganda and you’d have an excellent film on your hands.

As it is, I’d give it a 2 out of 5.  It’s difficult to watch and it leaves a dirty aftertaste.

Vim tips of the day

I’m using Vim text editor for more than decade now.  And I still can’t say I really know Vim.  I’m used to it and my fingers remember the commands.  And for those commands that I don’t remember, I’ve found some way of working around and got used to it too.  Today I came across not one, but two tips that I’m adding to my arsenal of Vim tricks.

Re-selecting visual block

Usually I only need to select the block once.  I then process it and never get back to it.  But sometimes, I need to select the same section of the text a few moments later.  Until today I was simply switching to visual selection and marking the block again.  Not too much of a problem, but it would be nice to have a shortcut for re-selecting the previous selection.  Of course, there is such a shortcut in Vim.  I just didn’t know it.  Simply type ‘gv‘ (without quotes) while in normal mode and your last visual selection will be selected again.

Increasing line limit on cross-file copying

There is no limit to number of lines copied between files, if all files are being edited in the same instance of Vim.  However if you copy a large selection from one file, then quit Vim, then open another file, and paste, you’ll probably see that only the first 50 lines or so were copied and the rest was lost.  Again this is not such a frequent scenario for me, and when it was happening I was simply opening both files in the same instance of Vim and copy all that I needed.  It turns out, I don’t really have to do that.

Vim uses ~/.viminfo file (default location) to remember things like command history, file marks, and registers between Vim instances.  There is a way to configure what and how much of what is going into this file.  If you are annoyed by any limits, you can easily raise them or totally remove them.  Have a look at “:help ‘viminfo’” manual page to see what is possible.   Adding “set viminfo=’100,<1000,s100” to ~/.vimrc file solved my problem.

 

P.S.: my messy Vim configuration files are available from GitHub, in case you wanted to take a pick at what else I have there.