v(*)"+y
- will copy lines selected in Visual
mode.
zfat
or zfit
- folds HTML by indentation?
:s%/foo/bar/g
- Change each 'foo' to 'bar', (%
means in every line)
set -g default-terminal "screen-256color" | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'tmux-plugins/tmux-copycat' | |
set -g @plugin 'tmux-plugins/tmux-yank' | |
# Use vim keybindings in copy mode | |
setw -g mode-keys vi | |
bind [ copy-mode |
XTerm*faceName: Bitstream Vera Serif Mono | |
xterm*faceSize: 13 | |
xterm*vt100*geometry: 80x60 | |
xterm*saveLines: 16384 | |
xterm*VT100.Translations: #override \ | |
Ctrl Shift <Key>V: insert-selection(CLIPBOARD) \n\ | |
Ctrl Shift <Key>C: copy-selection(CLIPBOARD) | |
# update Xterm config: |
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
def cls | |
system ('cls') #for cmd | |
system ('clear') #for mac / linux | |
end | |
class String | |
def green; "\033[32m#{self}\033[0m" end #< colorizing all instances of the main class String and method green. Solution taken from here: http://stackoverflow.com/questions/1489183/colorized-ruby-output | |
def red; "\033[31m#{self}\033[0m" end | |
def brown; "\033[33m#{self}\033[0m" end |