dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

markdown.lua (725B)


      1 -- Set tabs and indents.
      2 vim.opt_local.tabstop = 2
      3 vim.opt_local.shiftwidth = 2
      4 vim.opt_local.softtabstop = 2
      5 vim.opt_local.expandtab = true
      6 
      7 -- Hard wrap at 100 columns.
      8 vim.opt_local.textwidth = 80
      9 vim.opt_local.colorcolumn = "80"
     10 
     11 -- Since some people fail to hard-wrap, remap common nav keys to move across
     12 -- physical lines instead of logical lines.
     13 vim.keymap.set({ 'n', 'v' }, 'j', 'gj', { buffer = true, silent = true })
     14 vim.keymap.set({ 'n', 'v' }, 'k', 'gk', { buffer = true, silent = true })
     15 vim.keymap.set({ 'n', 'v' }, '0', 'g0', { buffer = true, silent = true })
     16 vim.keymap.set({ 'n', 'v' }, '^', 'g^', { buffer = true, silent = true })
     17 vim.keymap.set({ 'n', 'v' }, '$', 'g$', { buffer = true, silent = true })