Created
December 23, 2023 09:25
-
-
Save BjoernSchilberg/3d003584de98f8b92d0d941a0cb578b9 to your computer and use it in GitHub Desktop.
My .vimrc file I use mostly with gVim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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