first commit
This commit is contained in:
commit
bf0abe3a2a
19
README.md
Normal file
19
README.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# til
|
||||||
|
|
||||||
|
_Inspired by [jbranchaud/til](https://github.com/jbranchaud/til)_
|
||||||
|
|
||||||
|
## Categories
|
||||||
|
|
||||||
|
- [git](./git/)
|
||||||
|
- [neovim](./neovim/)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### git
|
||||||
|
|
||||||
|
- [clone to worktree](./git/clone-to-worktree.md)
|
||||||
|
|
||||||
|
### neovim
|
||||||
|
|
||||||
|
- [debug what code set last filetype settings](./neovim/debug-what-code-set-last-filetype-settings.md)
|
||||||
|
- [netrw](./neovim/netrw.md)
|
17
git/clone-to-worktree.md
Normal file
17
git/clone-to-worktree.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Clone to worktree
|
||||||
|
|
||||||
|
Git branches is like an antipattern.
|
||||||
|
Its best to use `git worktree` to have already checked out git branches.
|
||||||
|
|
||||||
|
## Cloning
|
||||||
|
|
||||||
|
git clone https://git.xsfx.dev/xsteadfastx/til.git til/main
|
||||||
|
|
||||||
|
This will create the directory `til` and clones the branch `main` into it.
|
||||||
|
|
||||||
|
## Create new worktree
|
||||||
|
|
||||||
|
cd til/main
|
||||||
|
git worktree add ../foo main
|
||||||
|
|
||||||
|
This will create the worktree `foo` in `til/foo`.
|
3
neovim/debug-what-code-set-last-filetype-settings.md
Normal file
3
neovim/debug-what-code-set-last-filetype-settings.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Debug what code set last filetype settings
|
||||||
|
|
||||||
|
:verbose set ft
|
19
neovim/netrw.md
Normal file
19
neovim/netrw.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# netrw
|
||||||
|
|
||||||
|
`netrw` is a simple file and directory browser for vim.
|
||||||
|
|
||||||
|
## Opening netrw
|
||||||
|
|
||||||
|
:Explore
|
||||||
|
|
||||||
|
## Create file
|
||||||
|
|
||||||
|
%
|
||||||
|
|
||||||
|
## Create directory
|
||||||
|
|
||||||
|
d
|
||||||
|
|
||||||
|
## Remove directory or file
|
||||||
|
|
||||||
|
D
|
Loading…
Reference in New Issue
Block a user