sunaku
23p18 comments posted · 7 followers · following 0
8 years ago @ The Terminal Programmer - Copying to clipboard f... · 0 replies · +1 points
I have updated the Vim mapping presented in this article accordingly. Thanks for your feedback.
8 years ago @ The Terminal Programmer - Copying to clipboard f... · 4 replies · +1 points
Yank some text normally in Vim.
Run :echo @0 and verify that the result is the same text you yanked in step #1.
Run :echo system('cat -n', @0) and verify that the result is the same text (but now decorated with line numbers) you yanked in step #1.
Run :call system('yank', @0) and check whether your terminal gets the message.
9 years ago @ The Terminal Programmer - Copying to clipboard f... · 0 replies · +1 points
yank > ${SSH_TTY:-#{pane_tty}}
I don't remember whether tmux automatically updates $SSH_TTY across distinct SSH sessions (i.e. you ssh into a remote machine, start tmux, disconnect ssh, then reconnect ssh, and finally reattach tmux). If such functionality isn't present, we're thrown back to the same problem as X11-forwarding: maintaining environment variables across disconnects.
By the way, don't you find it a bit unnerving to run tmux inside tmux? Because all keybindings go to the outer tmux, even when the inner one's pane is focused, unless you define disjoint keybindings for each tmux or you escape them so that the outer tmux sends them untouched to the inner one.
Finally, the "nested" scenarios I imagined when writing this article were where there is a single tmux amdist zero or more nested ssh connections, like this: your terminal ⇒ ssh (zero or more) ⇒ tmux ⇒ ssh (zero or more) ⇒ yank.
I hope that helps. :)
10 years ago @ The Terminal Programmer - Vim script management ... · 1 reply · +1 points
" ignore *.get files in Windows' globpath()
" see http://goo.gl/g1EcnJ for more details
set wildignore =*.get/.
Simply add the above snippet at the top of your vimrc file (before Unbundle.vim is loaded) and you shouldn't see those pesky *.get files in your Vim runtimepath anymore. :-)
10 years ago @ The Terminal Programmer - Vim script management ... · 0 replies · +1 points
10 years ago @ The Terminal Programmer - Switching from Fish to... · 1 reply · +1 points
10 years ago @ The Terminal Programmer - Putting Sencha Archite... · 0 replies · +1 points
This is an alternative approach. The usual thing would be to include the ExtJS libraries in my application.{js,css} assets, but I don't do that because the assets compiler takes too long (and too much memory) to process them during deployment.
10 years ago @ The Terminal Programmer - Putting Sencha Archite... · 0 replies · +1 points
<head>
<title>ExtjsBlog20130806</title>
<link href="/assets/application-cb31da1beffab7d8f4a1a4a9d7e64e7d.css" media="screen" rel="stylesheet" type="text/css" />
<script src="/assets/application-29bb5ff32c21a0f882a67c20d96ff9a8.js" type="text/javascript"></script>
<meta content="authenticity_token" name="csrf-param" />
<meta content="LwmaMngm3rMIm9QOa3hM+VdxmUt4XoE/q/EDxsAvbDk=" name="csrf-token" />
</head>
<body>
<h1>Listing users</h1>
<table>
Cheers.
10 years ago @ The Terminal Programmer - Putting Sencha Archite... · 2 replies · +1 points
1. Move the gui/ directory from the root of your Rails project into the app/assets/javascripts/ directory.
2. Delete the following lines from your app/assets/javascripts/gui.rake script:
directory project = '../../../gui'
file 'gui' => project do |t|
ln_s t.prerequisites.first, t.name
end
Let me know if that works for you. Cheers!
11 years ago @ The Terminal Programmer - Fixing 256-color Backg... · 0 replies · +3 points
http://www.reddit.com/r/vim/comments/1a29vk/fixin...