summary refs log tree commit diff
path: root/home/.config/nvim/init.vim
blob: 3651af628d7913160d276463b5627556e7dcbba2 (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
set hidden
set undofile
set shortmess=atI
set wildmode=list:longest wildignore=*.o
set splitbelow splitright
command! W w
command! Q q
autocmd BufNewFile,BufRead *.asm,*.mac setfiletype nasm

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

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

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

let g:clipboard = {'copy':{'+':'pbcopy'},'paste':{'+':'pbpaste'}}

nmap <leader>h :0/^#include </,$?^#include <?sort<CR>:nohlsearch<CR>
nmap <leader>a ?^#include <<CR>:nohlsearch<CR>o#include <
nmap <leader>u :0/^use/,$?^use?sort<CR>:nohlsearch<CR>
nmap <leader>c :0/extern crate/,$?extern crate?sort<CR>:nohlsearch<CR>
>2022-02-19Reimplement text macrosJune McEnroe 2022-02-19Factor out input handling to input.cJune McEnroe 2022-02-19Factor out window management to window.cJune McEnroe 2022-02-19Enable -Wmissing-prototypesJune McEnroe 2022-02-19Fix edit.[ch] license notice additional permissionsJune McEnroe 2022-02-19Run line editing testsJune McEnroe 2022-02-18Implement new line editing "library"June McEnroe 2022-02-18Simplify cursor positioning in inputJune McEnroe 2022-02-18Fix M-f orderingJune McEnroe 2022-02-12Move sandman build to scripts/MakefileJune McEnroe 2022-02-12Use compat_readpassphrase.c on LinuxJune McEnroe 2022-02-12Copy RPP defines from oconfigureJune McEnroe