Skip to content

Instantly share code, notes, and snippets.

@BjoernSchilberg
Created December 23, 2023 09:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BjoernSchilberg/3d003584de98f8b92d0d941a0cb578b9 to your computer and use it in GitHub Desktop.
Save BjoernSchilberg/3d003584de98f8b92d0d941a0cb578b9 to your computer and use it in GitHub Desktop.
My .vimrc file I use mostly with gVim
set number
color desert
syntax on
filetype plugin indent on
set tabstop=4
set shiftwidth=4
set expandtab
set wildmenu
set hidden
set wildignore=*.exe,*.dll,*.pdb
set guifont=Lucida_Console:h25
set guioptions-=m
set guioptions-=T
set guioptions-=r
set cursorline
call plug#begin('~/vimplugins')
Plug 'prabirshrestha/vim-lsp'
Plug 'mattn/vim-lsp-settings'
call plug#end()
function! s:on_lsp_buffer_enabled() abort
setlocal omnifunc=lsp#complete
setlocal signcolumn=yes
nmap <buffer> gi <plug>(lsp-definition)
nmap <buffer> gd <plug>(lsp-declaration)
nmap <buffer> gr <plug>(lsp-references)
nmap <buffer> gl <plug>(lsp-document-diagnostics)
nmap <buffer> <f2> <plug>(lsp-rename)
nmap <buffer> <f3> <plug>(lsp-hover)
endfunction
augroup lsp_install
au!
autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled()
augroup END
set spell
set is
set ignorecase
set smartcase
set gp=git\ grep\ -n
set ruler
packadd! matchit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment