Page 1 of 1

What is your vim configuration

Posted: Wed Oct 26, 2022 3:02 pm
by Cyao
I am planning to switch from CLion to vim and I'm wondering what vim configs do you have?

Re: What is your vim configuration

Posted: Wed Oct 26, 2022 5:45 pm
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...

Re: What is your vim configuration

Posted: Thu Oct 27, 2022 9:30 am
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

Re: What is your vim configuration

Posted: Sat Oct 29, 2022 12:20 am
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:

Re: What is your vim configuration

Posted: Mon Oct 31, 2022 5:33 am
by Solar
I have mine online for easy installing on whatever machine I happen to log on to. ;-)

Re: What is your vim configuration

Posted: Wed Nov 02, 2022 2:27 pm
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