Git Product home page Git Product logo

dotfiles's Introduction

Stow

.stow-local.ignore is a file that contains a list of files that should be ignored by stow.

Neovim

vim-surround

Old text                    Command         New text

surr*ound_words             ysiw)           (surround_words)
*make strings               ys$"            "make strings"
[delete ar*ound me!]        ds]             delete around me!
remove <b>HTML t*ags</b>    dst             remove HTML tags
'change quot*es'            cs'"            "change quotes"
<b>or tag* types</b>        csth1<CR>       <h1>or tag types</h1>
delete(functi*on calls)     dsf             function calls
  • ys{motion}{char}, which surrounds a given |motion| or |text-object| with a delimiter pair associated with {char}. For example, ysa") means "you surround around quotes with parentheses".

  • There are insert-mode s and visual-mode S mappings, that add the delimiter pair around the cursor and visual selection, respectively.

  • To delete a delimiter pair, use the ds operator, which stands for "delete surround". It is used via ds[char].

  • To change a delimiter pair, use the cs operator, which stands for "change surround". It is used via cs{target}{replacement}, changing the surrounding pair associated with {target} to a pair associated with {replacement}.

Learn more here.

comment

  • Normal mode gcc - Toggles the current line using linewise comment gbc - Toggles the current line using blockwise comment [count]gcc - Toggles the number of line given as a prefix-count using linewise [count]gbc - Toggles the number of line given as a prefix-count using blockwise gc[count]{motion} - (Op-pending) Toggles the region using linewise comment gb[count]{motion} - (Op-pending) Toggles the region using blockwise comment

  • Visual mode gc - Toggles the region using linewise comment gb - Toggles the region using blockwise comment

  • Advanced mappings gco - Insert comment to the next line and enters INSERT mode gcO - Insert comment to the previous line and enters INSERT mode gcA - Insert comment to end of the current line and enters INSERT mode

Linewise

gcw - Toggle from the current cursor position to the next word gc$ - Toggle from the current cursor position to the end of line gc} - Toggle until the next blank line gc5j - Toggle 5 lines after the current cursor position gc8k - Toggle 8 lines before the current cursor position gcip - Toggle inside of paragraph gca} - Toggle around curly brackets

Blockwise

gb2} - Toggle until the 2 next blank line gbaf - Toggle comment around a function (w/ LSP/treesitter support) gbac - Toggle comment around a class (w/ LSP/treesitter support)

fzf

Make the following table Table markdown 2 columns Example | Description CTRL-t | Look for files and directories CTRL-r | Look through command history Enter | Select the item Ctrl-j or Ctrl-n or Down arrow | Go down one result Ctrl-k or Ctrl-p or Up arrow | Go up one result Tab | Mark a result Shift-Tab | Unmark a result cd **Tab | Open up fzf to find directory export **Tab | Look for env variable to export unset **Tab Look | for env variable to unset unalias **Tab | Look for alias to unalias ssh **Tab | Look for recently visited host names kill -9 **Tab | Look for process name to kill to get pid any command (like nvim or code) + **Tab | Look for files & directories to complete command

fzf-git

Keybinding | Description CTRL-GF | Look for git files with fzf CTRL-GB | Look for git branches with fzf CTRL-GT | Look for git tags with fzf CTRL-GR | Look for git remotes with fzf CTRL-GH | Look for git commit hashes with fzf CTRL-GS | Look for git stashes with fzf CTRL-GL | Look for git reflogs with fzf CTRL-GW | Look for git worktrees with fzf CTRL-GE | Look for git for-each-ref with fzf

dotfiles's People

Contributors

s4nsec avatar vjabrayilov avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

s4nsec

dotfiles's Issues

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.