What is your vim configuration

Programming, for all ages and all languages.
Post Reply
Cyao
Member
Member
Posts: 78
Joined: Tue Jun 07, 2022 11:23 am
Libera.chat IRC: Cyao
Location: France
Contact:

What is your vim configuration

Post by Cyao »

I am planning to switch from CLion to vim and I'm wondering what vim configs do you have?
klange
Member
Member
Posts: 679
Joined: Wed Mar 30, 2011 12:31 am
Libera.chat IRC: klange
Discord: klange

Re: What is your vim configuration

Post by klange »

Before I wrote my own editor, I had a a long vimrc I had inherited from a colleague many years ago. And now, even with my own editor, I still have an rc file with a bunch of stuff in it...
nullplan
Member
Member
Posts: 1766
Joined: Wed Aug 30, 2017 8:24 am

Re: What is your vim configuration

Post by nullplan »

Mine isn't quite that long:

Code: Select all

filetype plugin on
filetype indent on
filetype detect

syn on

set nu ruler showcmd
set et sta sw=4 ts=8 sts=4 ai si title
set cst

set bs=indent,eol,start

au FileType mail set tw=72 noai nosi
au FileType man set nonu

set cmdheight=2

au BufNewFile,BufRead *.asm set ft=nasm

set ls=2
set statusline=%f%m%r%w%y%q%=%B%20l,%c%V%20P
let g:tex_flavor = "latex"
let c_no_curly_error = 1
let g:is_posix = 1
set bg=dark
Carpe diem!
Cyao
Member
Member
Posts: 78
Joined: Tue Jun 07, 2022 11:23 am
Libera.chat IRC: Cyao
Location: France
Contact:

Re: What is your vim configuration

Post by Cyao »

klange wrote:Before I wrote my own editor, I had a a long vimrc I had inherited from a colleague many years ago. And now, even with my own editor, I still have an rc file with a bunch of stuff in it...
Oh wow thats realy fancy, hope you dont mind if i use it soo :lol:
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: What is your vim configuration

Post by Solar »

I have mine online for easy installing on whatever machine I happen to log on to. ;-)
Every good solution is obvious once you've found it.
ArsenArsen
Posts: 9
Joined: Wed Aug 05, 2020 3:38 pm

Re: What is your vim configuration

Post by ArsenArsen »

Check attached.

I've used this for managarm development (not that I do a lot of work lol) and it's served me well.
Though, I've been doing Emacs more as of late.

Here's the plugin list:

Code: Select all

[i] ~/.config/nvim/bundle$ ls
dhall-vim  editorconfig-vim  gruvbox  VimCompletesMe  vim-cpp  vim-fugitive  vim-ledger  vim-lion  vim-lsp  vim-minisnip  vim-restructuredtext
[i] ~/.config/nvim/bundle$ 
EDIT: notably, this does clangd over a container boundary inside the managarm build environment, so it's pretty snazzy
Attachments
init.vim.txt
(4.36 KiB) Downloaded 148 times
Post Reply