Skip to content

Instantly share code, notes, and snippets.

@kghose
Created February 13, 2024 02:59
Show Gist options
  • Save kghose/9041f7c3dc5088e00d6c212a85dc49d4 to your computer and use it in GitHub Desktop.
Save kghose/9041f7c3dc5088e00d6c212a85dc49d4 to your computer and use it in GitHub Desktop.
Vim configuration
" ~/.vimrc
set mouse=a
set nu
set laststatus=2
set statusline=
set statusline+=%=
set statusline+=\[%c]
set statusline+=\ %l/
set statusline+=%L
filetype plugin on
let g:ale_completion_enabled=1
let g:ale_linters = {
\ 'go': ['gopls'],
\}
" ~/.vim/ftplugin/markdown.vim
setlocal tw=80
setlocal wrap
setlocal statusline^=\%{wordcount().cursor_words}/%{wordcount().words}\ words
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment