summaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-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