Code Monkey home page Code Monkey logo

dotfiles's Introduction

dotfiles

ln -sf ~/dotfiles/nvim/init.vim ~/.config/nvim/init.vim
# others also

activate current vim file

source %

git command behaves like less

git config --global --replace-all core.pager "less -F -X"

plugins

coc.nvim

After update coc-settings.json
Restart coc server by command :CocRestart

fzf

Ctrl-t (tab split)
Ctrl-x (split)
Ctrl-v (vsplit)

nerdtree

shift + ? (quickhelp)

m (insert/delete file in nerd tree)
i (a split split) 
s (a vertical split)

tmux

prefix(Ctrl-a) + :
tmux source-file ~/.tmux.conf
  • tpm
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

prefix(Ctrl-a) + I (install plugin)
prefix(Ctrl-a) + U (update plugin)
prefix(Ctrl-a) + alt + u (delete plugin)
  • tmux-resurrect
prefix + Ctrl-s (save)
prefix + Ctrl-r (restore)

zsh

gst (take a peek at the diff of each file returned by git status)

glo (take a peek at each file returned by git logs)

shortcut

space + p (search file)

Ctrl-w (num) + / Ctrl-w (num) - (resize split window)
Ctrl-w (num) > / Ctrl-w (num) < (resize vsplit window)

<leader>z (vim-jsdoc) 

<leader>r (find and replace)
<leader>/ (claer highlighted search terms while preserving history)

<leader>y (automatically remove trailing whitespace)

zc (close a fold)
zo (open a fold)

<leader>t (tabnew)
<leader>w (tabclose)
<leader>l (tabnext)
<leader>h (tabprev)

// External grep
<leader>a -> :grep -r xxx *
             :copen
q         -> quit

// Find and Replace
<leader>r -> :%s/pattern/replace/g

vscode vim plugins move problem

defaults write com.microsoft.VSCodeInsiders ApplePressAndHoldEnabled -bool false

iterm2

Remapping iTerm 2's shortcut for clear buffer

dotfiles's People

Contributors

tony40508 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.