blob: 6f4ea868ddafc7312c0ae65c3c01330328f9dbfb [file] [log] [blame]
Copybara botca5ce642024-11-08 17:38:08 +01001vim.o.tabstop = 2 -- tab width is 2 spaces
2vim.o.shiftwidth = 2 -- indent also with 2 spaces
3
4vim.o.number = true
5vim.o.relativenumber = true
6vim.g.mapleader = ','
7
8-- use indentation of previous line
9vim.o.autoindent = true
10vim.o.expandtab = true -- expand tabs to spaces
11
12-- intelligent comments
13vim.opt.comments = {
14 sl = '/*',
15 mb = ' *',
16 elx = ' */',
17}
18
19vim.opt.mouse = 'a'
20vim.opt.ruler = true
21
22-- Vimscript syntax highlighting unused:
23-- hi jjdescriptionHeader guifg=#b3deef ctermfg=153 guibg=NONE ctermbg=NONE gui=NONE cterm=NONE
24-- hi jjdescriptionSelectedType guifg=#9faa00 ctermfg=142 guibg=NONE ctermbg=NONE gui=NONE cterm=NONE
25-- hi jjdescriptionSelectedFile guifg=#c9d05c ctermfg=185 guibg=NONE ctermbg=NONE gui=NONE cterm=NONE
26
27-- == Mac fixes: ==
28-- So the backspace key works correctly with brew's vim
29-- vim.opt.backspace = "2"
30
31-- So MD italics show in italics
32vim.cmd.highlight('Comment', 'cterm=italic')
33
34-- To show nbsp characters (added by Alt+Space) as dots
35vim.opt.listchars={
36 tab = '» ',
37 extends = '›',
38 precedes = '‹',
39 nbsp = '·',
40 trail = '·',
41}
42vim.opt.list = true