@@ 32,16 32,18 @@ BUNDLE_DIR = os.path.join(ROOT_DIR, "bun
SNIPPET_DIR = os.path.join(ROOT_DIR, "snippets")
plugin_paths = (
- ("https://github.com/scrooloose/nerdcommenter.git", "env:dev"),
"https://github.com/bling/vim-airline.git",
"https://github.com/vim-airline/vim-airline-themes.git",
- # Goyo / Limelight (together)
- ("https://github.com/junegunn/goyo.vim", "env:dev"),
- ("https://github.com/junegunn/limelight.vim", "env:dev"),
+ "https://github.com/junegunn/vim-easy-align.git",
# ReST
"https://github.com/Rykka/riv.vim.git",
# Markdown
"https://github.com/plasticboy/vim-markdown.git",
+ # Development plugins
+ ("https://github.com/scrooloose/nerdcommenter.git", "env:dev"),
+ # Goyo / Limelight (together)
+ ("https://github.com/junegunn/goyo.vim", "env:dev"),
+ ("https://github.com/junegunn/limelight.vim", "env:dev"),
("https://github.com/Yggdroot/LeaderF.git", "env:dev"),
("https://github.com/dense-analysis/ale.git", "env:dev"),
("https://github.com/fatih/vim-go.git", "env:dev"),
@@ 435,6 435,9 @@ augroup mdfiles
autocmd BufRead,BufNewFile *.mmd set spell ts=4 wm=2 tw=79
augroup END
+" Auto align highlighted section in visual mode
+autocmd FileType markdown vmap <Leader><Bslash> :EasyAlign*<Bar><Enter>
+
" LeaderF
let g:Lf_ShortcutF = '<C-P>'
let g:Lf_CommandMap = { '<CR>': ['<C-T>'], '<C-T>': ['<CR>'] }