summary refs log tree commit diff
path: root/home/.config/nvim/init.vim
blob: 0eeae16521ec4f9e4cd52ff071088410bf19f323 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
set hidden
set undofile
set shortmess=atI
set wildmode=list:longest wildignore=*.o
set splitbelow splitright
command! W w
command! Q q

set tabstop=4 shiftwidth=4 shiftround
set smartindent cinoptions=l1(sU1m1
set ignorecase smartcase inccommand=nosplit
nmap <leader><leader> :nohlsearch<CR>
set foldmethod=syntax foldlevel=99 foldopen-=block
let asmsyntax = "nasm"
let c_syntax_for_h = 1
let is_posix = 1
let man_hard_wrap = 1

set title laststatus=1
set scrolloff=1
set noruler colorcolumn=80
set list listchars=tab:\ \ ,trail:·
colorscheme trivial

autocmd TermOpen * setlocal statusline=%{b:term_title}
autocmd BufEnter term://* startinsert
tmap <C-w> <C-\><C-n><C-w>

let g:clipboard = {'copy':{'+':'pbcopy'},'paste':{'+':'pbpaste'}}
nmap gp `[v`]

nmap <leader>s vip:sort<CR>
nmap <leader>a :0/^#include <<CR>:nohlsearch<CR>O#include <
nmap <leader>l :0read ~/src/etc/agpl.c<CR>''
ef8b782291fb68b643d67bdc2cc0757290591&follow=1'>Support simple assignment in orderJune McEnroe 2019-05-15Implement sizeof in orderJune McEnroe 2019-05-15Add orderJune McEnroe 2019-05-12Add T suffix in bitJune McEnroe 2019-05-10Highlight yacc and lex files as CJune McEnroe Their %-prefixed directives should probably be highlighted Macro. 2019-05-10Use val instead of suboptargJune McEnroe suboptarg doesn't exist in GNU. Hopefully BSD getsubopt also sets val on failure? 2019-05-09Add Parable of the SowerJune McEnroe 2019-05-07Add bit without buildJune McEnroe Need to do some stuff in the Makefile for lex and yacc and generating HTML pages for it. 2019-05-04Fix MANDIR typoJune McEnroe 2019-05-04Move relay to binJune McEnroe