Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/sansyrox/macsimus into main
Browse files Browse the repository at this point in the history
  • Loading branch information
sansyrox committed Jun 23, 2021
2 parents c38300e + 4be1d05 commit e1d50f7
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 7 deletions.
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,22 @@ bash <(curl -s https://raw.githubusercontent.com/sansyrox/macsimus/main/utils/in
brew upgrade neovim --fetch-HEAD # Sometimes you need to update
```

- Ubuntu (tested on 20.04)
- Ubuntu

Option 1
```
sudo add-apt-repository ppa:neovim-ppa/unstable
sudo apt-get update
sudo apt-get install neovim
```

Option 2
```
git clone https://github.com/neovim/neovim
cd neovim
make CMAKE_BUILD_TYPE=RelWithDebInfo
sudo make install
cd ~
sudo rm -rf neovim
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage -o /tmp/nvim.appimage
sudo mv /tmp/nvim.appimage /usr/local/bin/nvim
chmod +x /usr/local/bin/nvim
```

- Arch
Expand Down
86 changes: 86 additions & 0 deletions docs/basic_tutorial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# Macsimus Tutorials

'Space' key is the super key in Macsimus (to be used when not in any mode like insert or view)

## General Navigation

1. j -> down
2. k -> up
3. h -> left
4. l -> right

## Navigation in Insert Mode

1. ctrl + j -> down
2. ctrl + k -> up
3. ctrl + h -> left
4. ctrl + l -> right

## Word-wise Navigation Keys

1. b -> backwards for each word
2. w -> start of the next word
3. e -> end of the current word

## Line-wise Navigation Keys

1. 0 -> zeroth character of the line
2. $ -> last character of the line
3. o -> downwards one line and enable insert mode
4. O -> upwards one line and enable insert mode

## Page-wise Navigation Keys

1. gg -> first character of the page
2. G -> last line of the page
3. ctrl + u -> 50% of the page upwards
4. ctrl + d -> 50% of the page downwards

## Navigation According to Relational Line Numbering

To set relational line numbering, first exit all modes using 'esc' key. Then, type
:set rnu

1. 4K -> 4 units upwards
2. 4J -> 4 units downwards

## Undo-Redo Commands

1. u -> undo
2. ctrl + R -> redo


## Copy-paste Commands

1. V+j -> Copying line
2. y -> Copy (yank)
3. p -> paste

## Important features

1. Open Explorer
```
space + e
```
1.1. Split Screen from Explorer
v -> vertical split
h -> horizontal split

2. Navigating Between Splits (Normal Mode) <br>
ctrl + h -> towards left <br>
ctrl + l -> towards right <br>
ctrl + w -> press w to move alternatively among all splits in cw direction
ctrl + w + directional key -> to move directly to a split

3. Closing Splits <br>
ctrl + q

4. Opening a Terminal <br>
```
space + t + ;
```

5. Opening a Python Shell <br>
```
space + t + p
```

0 comments on commit e1d50f7

Please sign in to comment.