summaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-05-29 12:51:04 -0500
committerMarc Coquand <marc@mccd.space>2024-05-29 12:51:04 -0500
commitc2fcd44b6a64ec7fd44f364a64396f680babbf8d (patch)
treeb7d0b5902d682985392991ae430ef9fef2431e03 /vimrc
parent3b42452a37117bace208a2085980e7c1b79b3738 (diff)
downloadrcm-c2fcd44b6a64ec7fd44f364a64396f680babbf8d.tar.gz
rcm-c2fcd44b6a64ec7fd44f364a64396f680babbf8d.tar.bz2
rcm-c2fcd44b6a64ec7fd44f364a64396f680babbf8d.zip
Updates
Diffstat (limited to '')
-rw-r--r--vimrc36
1 files changed, 36 insertions, 0 deletions
diff --git a/vimrc b/vimrc
new file mode 100644
index 0000000..7a47e75
--- /dev/null
+++ b/vimrc
@@ -0,0 +1,36 @@
+packadd lsp
+packadd vim-colors-plain
+set tabstop=2
+set expandtab
+set shiftwidth=2
+set shiftround
+set nobackup
+set autoindent
+set smartindent
+set cindent
+let mapleader=" "
+syntax on
+colorscheme plain-cterm
+
+call LspAddServer([#{
+ \ name: 'caml',
+ \ filetype: ['ocaml'],
+ \ path: '/home/mccd/.opam/default/bin/ocamllsp',
+ \ args: [],
+ \ syncInit: v:true
+ \ }])
+
+
+noremap , :
+noremap <leader>e :e **/
+noremap gd mB:LspGotoDefinition<Enter>
+noremap <leader>ca :LspCodeAction<Enter>
+noremap <leader>k :LspDiagCurrent<Enter>
+nnoremap <leader>l :ls<CR>:b<space>
+
+au BufEnter *.org set spell
+
+set wildmenu
+set wildmode=longest:full,lastused
+set wildignore=_build/**,release/**
+set grepprg=git\ grep\ -nH