Skip to content
/ .vim Public

minimalist and modern vim configuration with sane settings, handwritten statusline and tabline, small custom plugins, and few external plugins

Notifications You must be signed in to change notification settings

alt-romes/.vim

Repository files navigation

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...

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 /"

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

About

minimalist and modern vim configuration with sane settings, handwritten statusline and tabline, small custom plugins, and few external plugins

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published