Coder Social home page Coder Social logo

.config's Introduction

Mac Terminal Setup

Mac 安装 zim, 相比oh my zsh更快更容易上手

kitty

相较于iterm2更加稳定,可以跨平台使用,配置也更容易
kitty

安装 kitty

brew install kitty

配置 kitty

  • Color Theme: midnight in mojave
  • Font: Monaco

Keyboard Shortcuts

  • Default

Key Action
⌘C copy to clipboard
⌘V paste from clipboard
⌘k scroll page up
⌘j scroll page down
⌘↩ toggle_maximized
  • Windows

splitwindows kitty_mod: ^⌘

Kitty_mod Action
= open a new window on horizontal
- open a new window on vertical
h previous window
l next window
x close window
1 first window
2 second window
  • Tabs

Key Action
⌘t new tab
⌥l next tab
⌥h previous tab
⌘⌥w close tab
⌘s set tab title
⌥1 go to first tab
⌥2 go to second tab

Neovim

nvim

安装Neovim

Pre-requirements

brew install fzf
$(brew --prefix)/opt/fzf/install
brew install the_silver_searcher
brew install ctags
pip  install pynvim

Install neovim

brew install neovim

Keyboard Shortcuts

Basic Mappings

Mapleader : Space

  • Normal Mode
Key Actin
; replace : enter into command mode
Q exit nvim
^q exit all nvims
S save the file
Y copy till the end of the line
space +rc edit the configure of nvim
space + no highlighting
space +o folding
  • Visual Mode
Key Actin
Y Copy to system clipboard
  • Insert Mode
Key Actin
jj enter into normal mode
space +wq save the file

Cursor Movement

  • Normal Mode
Key Actin
space+a Cursor to the start of the line
space+e Cursor to the end of the line
n /N Search next/previous
  • Insert Mode
Key Actin
^a Move cursor to the end of the line
  • Command Mode
Key Actin
^a Cursor to the start of the line
^e Cursor to the end of the line
^h Cursor to the left of the word
^l Cursor to the right of the word
^k Cursor to the previous of the command
^j Cursor to the next of the command

Windows management

Key Action
^h Move to left window
^j Move to bottom window
^k Move to top window
^l Move to right window
sd Open window at bottom
su Open windwo at top
sr Open windwo at right
sl Open windwo at left
sh Place the two screens up and down
sv Place the two screens side by side
space +q Close the window below the current window

Tab management

Key Action
tu new tab
th next tab
tl previous tab

Plugins Keybindings

AutoCompletion

  • COC
Key Action
space +y the history of cutboard
gd go to definition
gy go to type definition
gt go to implementation
^gr go to references
ts translator
F show documentation
^l snippets expand
^e snippets select
^j snippets expand jump

Python

  • Python-mode
Key Action
space +b breakpoint
r run pyhon
F show documentation
^] go to definition
  • AutoFormat
Key Action
space +p autoformat

File navigation

  • Fzf fzf
Key Action
space +fh file history
space +ff find files
space +tc color schemes
space +fa find words
space +l find line
space +; command historys
  • Defx
Key Action
ttt toggle file navigation
ttu toggle file navigation
dd remove into trash
o open vsplit
v open hsplit
  • Rnvimr
Key Action
R open ranger

Taglist

  • Vista
Key Action
space +v toggle vista

Editor Enhancement

  • vim-easymotion
Key Action
ss find keywords

.config's People

Contributors

pengjunw avatar

Stargazers

 avatar  avatar PengjunW avatar

Watchers

 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.