Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alt-romes/.vim
minimalist and modern vim configuration with sane settings, handwritten statusline and tabline, small custom plugins, and few external plugins
https://github.com/alt-romes/.vim
vim
Last synced: 6 days ago
JSON representation
minimalist and modern vim configuration with sane settings, handwritten statusline and tabline, small custom plugins, and few external plugins
- Host: GitHub
- URL: https://github.com/alt-romes/.vim
- Owner: alt-romes
- Created: 2021-11-18T14:53:49.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-12-12T19:34:10.000Z (22 days ago)
- Last Synced: 2024-12-12T20:35:39.644Z (22 days ago)
- Topics: vim
- Language: Vim Script
- Homepage:
- Size: 173 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Getting started
```
cd $HOME
git clone --recurse-submodules https://github.com/alt-romes/.vim
```# Included plugins
| Plugin name | Repository | Description |
| --- | --- | --- |
| ALE | https://github.com/dense-analysis/ale | LSP integration |
| Tabular | https://github.com/godlygeek/tabular | Table creation |
| vim-commentary | https://github.com/tpope/vim-commentary | Minimalist commenting plugin |
| vim-surround | https://github.com/tpope/vim-surround | Mappings for "surrounding" |
| vim-polyglot | https://github.com/sheerun/vim-polyglot | Language pack |
| emmet-vim (to be opt) | https://github.com/mattn/emmet-vim | HTML and CSS |---
| Action | Keys |
| ------------------- | --------------------- |
| Enable ALE | a |
| Toggle File Browser | t |
| Comment | gc |
| Comment Line | gcc |
| Toggle all folds | f |
| Create Fold | zf |
| Toggle fold | za |---
| Netrw Action | Keys |
| -------------------------- | ---------------- |
| Open in Current Window | enter |
| Open in New Tab | t |
| Open in New Vertical Split | v |---
Tabularize example...
```vim
set statusline=%1*\ %{mode_map[mode()]}\ " Mode
set statusline+=%0*%(\ %r%) " Read-only flag
set statusline+=\ %t\ " File name
set statusline+=%(%M\ %) " Modified flag
set statusline+=%2*\ %n\ " Buffer number
set statusline+=%0*%= " Switch to right-side
set statusline+=%2*%(\ %{&filetype}\ %) " Filetype
set statusline+=%0*%(\ %{FileSize()}\ \|%) " File size
set statusline+=%(\ %{&fenc?&fenc:&enc}\ \|%) " Encoding
set statusline+=\ %p%%\ " Percentage
set statusline+=%3*\ %3l:%-2c\ " Line:Column
```Tabularize against `"` by selecting these lines and executing `:Tabularize /"`
```vim
set statusline=%1*\ %{mode_map[mode()]}\ " Mode
set statusline+=%0*%(\ %r%) " Read-only flag
set statusline+=\ %t\ " File name
set statusline+=%(%M\ %) " Modified flag
set statusline+=%2*\ %n\ " Buffer number
set statusline+=%0*%= " Switch to right-side
set statusline+=%2*%(\ %{&filetype}\ %) " Filetype
set statusline+=%0*%(\ %{FileSize()}\ \|%) " File size
set statusline+=%(\ %{&fenc?&fenc:&enc}\ \|%) " Encoding
set statusline+=\ %p%%\ " Percentage
set statusline+=%3*\ %3l:%-2c\ " Line:Column
```---
## Markers
For latex slides, use
```
set foldmethod=marker foldmarker=\\begin{frame},\\end{frame}
```
Additionally, add
```
% vim: foldmethod=marker foldmarker=\\begin{frame},\\end{frame}
```
To the bottom of the file to set that option for that file always