capsula-gemini/source/notes/vim.gmi

93 lines
978 B
Plaintext

## Vim
### Mi archivo .vimrc
```
set number
set hidden
```
### Comando más usados
* Salir
```
:q
```
* Guardar
```
:w
```
* Abrir pestaña
```
:tabnew
```
* Listar buffers
```
:ls
```
* Buffer siguiente
```
:bn
* Buffer previo
```
:bp
```
* Dividir ventana horizontalmente
```
:split
```
* Dividir ventana verticalmente
```
:vsplit
```
* Moverte entre ventanas
```
CTRL+W Flecha
```
* Cerrar ventana
```
CTRL+W c
```
### Para tener la barra de estado PowerLine.
* Instalamos
```
pip install -U powerline-status
```
* Configuramos en .vimrc
```
set rtp+=/home/mau/.local/lib/python3.9/site-packages/powerline/bindings/vim/
set laststatus=2
set t_Co=256
```
### Para instalar cualquier plugin.
* Creamos el directorio
```
mkdir -p ~/.vim/pack/vendor/start
```
* Clonamos el repositorio
```
git clone URL_GIT_PLUGIN ~/.vim/pack/vendor/start/NOMBRE_PLUGIN
```
=> gemini://elmau.net/chuletas.gmi Regresar el índice
=> gemini://elmau.net Regresar el inicio