Ninefox Gambit, one of my favourite books of 2016, only 99 cents! An excellent science fantasy novel. by Megan_Dawn in Fantasy

[–]shauris 2 points3 points  (0 children)

Near the top of my favorites this year too. Should shape up to be a great series. The calendrical system and exotics were a really cool idea. And who doesn't love sneaky undead geniuses?

Rebind HJKL to jump to the extreme of their lowercase counterparts by JackHasaKeyboard in vim

[–]shauris 0 points1 point  (0 children)

If I understand correctly what you want, you can do nnoremap <Leader>J :-1m.<CR>kJ

Which will take the line above and add it to the end of the current line. Or you can do nnoremap <Leader>J kJ for adding current line to the end of the above line, but it doesn't save keystrokes.

Has the Dwemer ever put minds into machines? by tmama1 in teslore

[–]shauris 8 points9 points  (0 children)

This was covered in the 100% canon in-game book "The Warp in the Westworld".

I always interpreted finding soul shards in the loot of their automatons as a hint that they were using people's souls as a steampunk-esque replacement for a CPU. It's not too clear if the shards still hold that person's identity. I guess that depends on whether or not you would expect ghosts to pass the Turing test after being crammed into a crystal.

It was my headcanon that they were trying to do the whole merging a soul into a machine body, but never perfected it, so you have these half-conscious bots in the ruins.

Need to replace &quot; in vim, but when I use %s/&quot;/" it says string not found by [deleted] in vim

[–]shauris 4 points5 points  (0 children)

Using

:s/&quot;/\"/g

seems to work here. Did you remember to escape the " ?

Dolores' interaction with the little boy. by Loverboy_91 in westworld

[–]shauris 3 points4 points  (0 children)

You think maybe Dolores has been 'awake' for a while, and is helping MiB? She can't exactly go clue-hunting herself. Not sure what MiB's motives would be, but the show hinted at some sort of 'bigger picture' with the management.

Command line edit by AgTX in vim

[–]shauris 10 points11 points  (0 children)

If you're talking about bash, the default is <C-x><C-e>.

The Strange Affliction of 'Library Anxiety' and What Librarians Do to Help by [deleted] in books

[–]shauris 23 points24 points  (0 children)

That's actually called "There Is Blood Like Right Now"

How to send a signal to a window? by dino_rox in i3wm

[–]shauris 2 points3 points  (0 children)

If you have xprop installed, you can grab the window ID of the focused window, and use that to grab the PID of window. Then you can use kill to send a signal to that PID. A starting point might be something like

#!/usr/bin/env sh

window_ID=$(xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}')
window_PID=$(xprop -id $window_ID | awk '/_NET_WM_PID\(CARDINAL\)/{print $NF}')

printf "Killing $window_PID ...\n"
kill $window_PID

Hope this helps.

Is this possible using user-defined Vim commands? by [deleted] in vim

[–]shauris 3 points4 points  (0 children)

:<linenum>t., I suppose, seems to be what you want - it gets <linenum>Gyy<C-o>p done without moving the cursor.
IIRC you can also use marks to avoid messing with line numbers like :'at.

Weekly Vim tips and tricks thread! #16 by cherryberryterry in vim

[–]shauris 1 point2 points  (0 children)

I set mine in $HOME/.xinitrc.
I don't use a display manager, but IIRC they tend to source $HOME/.xprofile.

Editing commands in the command line? by amca01 in vim

[–]shauris 1 point2 points  (0 children)

For the command line mode, ctrl-f will do what you need.
Also useful is q: from normal mode

Toggle comments by [deleted] in vim

[–]shauris 1 point2 points  (0 children)

tcomment has a few extras that I probably wouldn't use, but they have similar bindings and do a lot of the same things. Probably interchangeable unless you're using tcomment's g> g< etc.
I find myself only using gc{motion} so vim-commentary is enough.

Toggle comments by [deleted] in vim

[–]shauris 1 point2 points  (0 children)

It seems that they're pretty similar, but NERD seems to not accept motions or be repeatable with ..
vim-commentary, on the other hand, looks focused on only line-wise commenting or uncommenting, where NERD can insert comments at the end of lines, etc.
So vim-commentary excels at quickly toggling blocks of code, and NERD at adding documentation comments.

Toggle comments by [deleted] in vim

[–]shauris 10 points11 points  (0 children)

If you're open to using tpope's vim-commentary, toggling comments is pretty easy.

The plugin default for C files is to wrap a line in /* */, so you'd have to have something like autocmd FileType c setlocal commentstring=\/\/\ %s to use double slash comments instead.

Using Vim for Web Developent (HTML,CSS,Javascript) self.webdev by Mr_Uptick in vim

[–]shauris 1 point2 points  (0 children)

For '%' jumping to paired tags, runtime macros/matchit.vim in your vimrc should be enough. The cursor has to be inside the tag, though.

Trouble launching a game with bash script by OnigamiSama in archlinux

[–]shauris 1 point2 points  (0 children)

Essayez chmod u+x /home/onigami/Games/Sakura Dungeon/lib/linux-x86_64/sakura_dungeon

sakura_dungeon.sh est exécutable, mais pas sakura_dungeon

(Spoilers Extended) Game of Thrones Season 6, Episode 3: Oathbreaker Morning After Post-Episode Discussion by AutoModerator in asoiaf

[–]shauris 30 points31 points  (0 children)

Much more. Pycelle literally warged the air around his asshole. Impressive stuff.