Colorscheme
[[Vim-like]]
NLKNguyen/papercolor-theme
[[Manjaro]] terminal
Color Schemes For Ubuntu, Linux Mint, Elementary OS and all distributions that use Gnome Terminal, Pantheon Terminal, Tilix, or XFCE4 Terminal; initially inspired by Elementary OS Luna. Also works on iTerm for macOS. You can check out the themes here.
https://mayccoll.github.io/Gogh/
Use 22: Bluloco Zsh Light
Vim
Clipboard
:%y+
copy all to clipboard
Windows
CTRL-W=
equal size
CTRL-W-
decreases the current window
:vsp
vertically split windows
:e
edit new file in current buffer
<C-^>
quickly switch buffer (this and before, only 2 buffers will be loaded)
dot .
Available only after insert
Plugins
coc.nvim
install nodejs curl -sL install-node.vercel.app/lts | bash
- coc-json
- coc-html
- coc-yank
- ccls via pacman
Vim-plug
- sneak
s
find 2 character, ;
find next
Macros
Src
q<letter><commands>q
where letter is a-z
<number>@<letter>
to use
Movements
HJKL
move 5 lines
setxkbmap -option caps:swapescape
swap caps lock with esc key
R
replace more char
Remap
<leader>
->
Indent
<G
, >G
to indent (.
to repeat)
[[ranger]]
CLI
Cursor moving
Src
- alt (⌥)+F to jump Forward by a word
- alt (⌥)+B to jump Backward by a word
- alt (⌥)+D to delete a word starting from the current cursor position
- ctrl+A to jump to start of the line
- ctrl+E to jump to end of the line
- ctrl+K to
d$
- ctrl+Y to paste text from the kill buffer
- ctrl+R to reverse search for commands you typed in the past from your history
- ctrl+F to move forward by a char
- ctrl+B to move backward by a char
- ctrl+W to remove the word backwards from cursor position
Modern linux command
fd
fd --extension txt
fzf
Add fzf
to plugins
M-c
= cd
C-r
= search history(same as before)
C-t
= list current directory
zsh
bat
ranger
zh
= show hidden
空格选中一个文件,对选中的文件再按空格取消选中
ranger --copy-config=all
copy config to
install highlight
to preview code
Bookmark
m
+ key to save a bookmark
use '
to navigate
Basic keybinding
g
for navigation and tabs
r
for :open_with command
y
for yank(copy)
d
for cut/delete
p
for paste
o
for sort
.
for filter_stack
z
for changing settings
u
for "undo"
M
for line mode
+
, -
, =
for setting access rights to files
config
rc.conf
# Use yc to copy content to system clipboard
map yc shell cat %p | xclip -sel clip