Giter VIP home page Giter VIP logo

dotfiles's Introduction

Happy Hacking

install

$ ./install.sh

install fonts

$ cp your_font.ttf ~/.local/share/fonts
$ fc-cache -vf

tools

shell

neovim

:CocInstall coc-tsserver :CocInstall coc-python :CocInstall coc-json :CocInstall coc-html

lua

wget https://www.lua.org/ftp/lua-5.3.5.tar.gz
tar zxvf lua-5.3.5.tar.gz
cd lua-5.3.5
make linux
sudo make linux install

gvm

zsh < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
gvm install go1.20

npm

https://github.com/nvm-sh/nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
nvm install node
npm config set registry https://registry.npm.taobao.org

gem

sudo apt install ruby-dev

universal ctags

git clone https://github.com/universal-ctags/ctags ctags_build
cd ctags_build && ./autogen.sh && ./configure
make
sudo make install

tmux

gnome terminal colorscheme

excellent tutorial

tips

%s//gc                    # replace the pattern which you had just searched
%s///gn                   # can calculate how many matching in this file
%s/\r//g                  # delete all ^M
g/^--/d                   # delete all line start from --
g//d                      # delete all line which you had just searched
set ff=unix               # change line break to unix style
e ++enc=cp936             # open file with specific encoding (for instance, cp936)
set expandtab | %retab!   # replace tab with space (expand tab)
set noexpandtab | %retab! # replace space with tab (no expand tab)
%bw                       # wipe out all buffer
gf, gF                    # go to file under cursor
vim --clean               # skips initializations from files and environment variables
history | vim -           # read from stdin
vim --startuptime profile # profile startup time
git remote prune origin   # deletes all stale remote-tracking branches
ctrl+a z                  # tmux zoom in / zoom out
stty sane                 # make your tty sane
reset                     # reset your terminal
ctrl+x ctrl+e             # edit command line in $EDITOR
ctrl+k / ctrl+u / ctrl+w  # command line cut
ctrl+y                    # command line yank
less +F                   # ctrl+c, shift+f, q to quit, use it instead of tail -f
zf                        # create folding, zfa{
zf%                       # create folding with %
zR                        # open all folding
za                        # toggle folding
zj                        # moves the cursor to the next fold
zk                        # moves the cursor to the previous fold
[z                        # move to the start of the current open fold
]z                        # move to the end of the current open fold
gq                        # format the lines by textwidth
ctrl+r                    # reverse-i-search, ctrl+r to next, ctrl+g to cancel
ctrl+s                    # i-search, ctrl+s to next, ctrl+g to cancel
du -ah | sort -h          # find max file (current directory)
du / -ah | sort -hr       # find max file (root directory) in reverse order
df -lh                    # report file system disk space usage
rlwrap -m nc              # enable ctrl-x ctrl-e in rlwrap
tmux list-keys | vim -    # list tmux all key bindings
cfilter pattern           # filter a quickfix list
cfdo %s/old/new/gc        # execute command in each valid entry in the quickfix list
c-h                       # same as backspace, but vim-tmux-navigator will remap c-h
c-d                       # delete the character under the cursor
%!lua                     # execute current buffer as lua code and then replace buffer with result

# disable keyboard in mac
sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/
sudo kextload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/

install for windows

Powershell

iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |`
    ni "$(@($env:XDG_DATA_HOME, $env:LOCALAPPDATA)[$null -eq $env:XDG_DATA_HOME])/nvim-data/site/autoload/plug.vim" -Force

Git Bash

mkdir -p ~/AppData/Local/nvim
ln -f -s ~/dotfiles/_nvimrc ~/AppData/Local/nvim/init.vim
ln -f -s ~/dotfiles/_gnvimrc ~/AppData/Local/nvim/ginit.vim
choco install neovim
choco install ripgrep
choco install ag
choco install universal-ctags

dotfiles's People

Contributors

mrvon 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.