Last active
July 27, 2017 06:12
-
-
Save gosharplite/3908edae250dbd370aae4d871192b0b6 to your computer and use it in GitHub Desktop.
cloudnative
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - vim ------------------------------------------------------ | |
| % - find ( { [ ] } ) | |
| # , * - find word under the cursor. | |
| g# , g* | |
| 0 ^ $ g_ f F t T , ; - Move on current line. | |
| {This is a book. It is not a pen.} | |
| x , X - delete the character under the cursor and to the left of the cursor, respectively. | |
| u , ctrl-r - undo and redo. | |
| This is a book. | |
| w , W - word and extended word | |
| Zone selection <action>a<object> or <action>i<object> | |
| ---this;is:.:w | |
| Visual selection: v,V,<C-v> , gv | |
| Block selection 0<C-v><C-d>I-- [ESC] | |
| abc | |
| bef | |
| 123 | |
| Macros : qa do something q, @a, @@ | |
| /pattern | |
| # , * - find word under the cursor. | |
| :set incsearch | |
| :set hlsearch | |
| % - find matching ( { [ | |
| [{ - back to the { | |
| { | |
| { | |
| foo | |
| } | |
| bar | |
| } | |
| bn - buffer previous | |
| C-^ - previous buffer | |
| viwp - past buffer on a word | |
| "cy$ | |
| "cp | |
| ^E ^Y ^U ^D ^F ^B | |
| ~ change case | |
| J - Join lines | |
| iw is ip i' i" i` i( i[ i{ it | |
| aw as ap a' a" a` a( a[ a{ at | |
| i:<esc>ggVG:normal.<cr> | |
| :%s/\s\+$//gc | |
| # folds | |
| zf zF zd zD zE | |
| - vim-go --------------------------------------------------- | |
| :GoUpdateBinaries | |
| ,r | |
| ,b | |
| ,c | |
| yif , yaf | |
| gS , gJ | |
| ff <tab> , json <tab> , <C-j> - code template | |
| :GoMetaLinter - style advises | |
| :GoAlternate - jump to test file | |
| gd , ctrl-] , ctrl-t - def movement | |
| :GoDecls , :GoDeclsDir - similar to F8 | |
| ]] , [[ - jump to func | |
| :GoFiles - list package files | |
| :GoDeps - list package dependency | |
| :GoReferrers - find who is calling | |
| :ccl , :pc , :lcl | |
| :GoCallees , GoCallers | |
| :GoRename | |
| :GoFreevars | |
| :GoImpl io.ReadWriteCloser | |
| :GoImpl b *B fmt.Stringer | |
| ,a | |
| :Ack | |
| <C-x><C-o> , <tab> | |
| - tmux ----------------------------------------------------- | |
| # session management | |
| tmux ls (or tmux list-sessions) | |
| tmux new -s session-name | |
| tmux attach -t [session name] | |
| tmux kill-session -t session-name | |
| Ctrl-b d Detach from session | |
| Ctrl-b s list out sessions | |
| Ctrl-b c Create new window | |
| Ctrl-b d Detach current client | |
| Ctrl-b n Move to the next window | |
| Ctrl-b p Move to the previous window | |
| Ctrl-b & Kill the current window | |
| Ctrl-b , Rename the current window | |
| Ctrl-b q Show pane numbers (used to switch between panes) | |
| Ctrl-b o Switch to the next pane | |
| Ctrl-b ? List all keybindings | |
| # moving between windows | |
| Ctrl-b n (Move to the next window) | |
| Ctrl-b p (Move to the previous window) | |
| Ctrl-b w (List all windows / window numbers) | |
| Ctrl-b window number (Move to the specified window number, the | |
| default bindings are from 0 -- 9) | |
| # Tiling commands | |
| Ctrl-b % (Split the window vertically) | |
| Ctrl-b " (Split window horizontally) | |
| Ctrl-b o (Goto next pane) | |
| Ctrl-b q (Show pane numbers, when the numbers show up type the key to go to that pane) | |
| Ctrl-b { (Move the current pane left) | |
| Ctrl-b } (Move the current pane right) | |
| # Make a pane its own window | |
| Ctrl-b : "break-pane" | |
| Ctrl-b : "swap-window -s 0 -t 1" | |
| # add to ~/.tmux.conf | |
| bind | split-window -h | |
| bind - split-window -v | |
| # vi keys in copy mode | |
| Ctrl-b [ - enter copy mode | |
| Ctrl-b PageUp - enter copy mode | |
| space - start selection | |
| enter - end selection | |
| Ctrl-b ] - paste | |
| ------------------------------------------------------------ |
https://github.com/neovim/neovim/wiki/Installing-Neovim#ubuntu https://github.com/neovim/neovim/wiki/FAQ#where-should-i-put-my-config-vimrc
https://github.com/Shougo/dein.vim
~/.local/share/dein
https://golang.org/doc/install/source
vi ~/.profile
~/.ssh/id_rsa
~/.ssh/id_rsa.pub
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


