Vim | Neovim | +vim

You can check my vim/neovim configurations in my dotfiles

Incoming

Vim Hardware

  • vim-clutch - A hardware pedal for improved text editing in Vim

Vim Distributions

  • oni - Mouse-free productivity with the perks of modern code editors. Open-source, cross-platform, and easy to learn.
  • SpaceVim - A community-driven vim distribution inspired by spacemacs

Alternative Tab navigation

Source

Plugins

Incoming

  • vim-rubocop - The Vim RuboCop plugin runs RuboCop and displays the results in Vim

Autocompletion

Organization

Liners

  • ale: The best vim linter I have tried.
  • vim-fixmyjs: Not tested yet..

Markdown

Snippets

Setting ale tu autofix javascript

1
let g:ale_fix_on_save

Fix weird characters on nvim

Source

1
export VTE_VERSION="100"

Fix javascript file using standard

1
2
3
4
5
" From command mode
:!standard --fix %

" Automatically fix js files when save
autocmd bufwritepost *.js silent !standard --fix %

Sort lines alphabetically

Taken from here. Select lines to sort with visual mode (Ctrl + V)

Inoke sort:

1
:sort

To make it case-insensitive

1
:sort i

NerdTree

  • Set up toggle key binding:
1
nmap <C-e> :NERDTreeToggle<cr>

HOWTO See recent files

1
:ol

Comments

⬆︎TOP