summary refs log tree commit diff
path: root/home/.config/nvim/init.vim
blob: 8dee0fb3571729715651ce439d78455367b41051 (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
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>s vip:sort<CR>
nmap <leader>h :$?^#include <<CR>:nohlsearch<CR>vip:sort<CR>
nmap <leader>a :$?^#include <<CR>:nohlsearch<CR>o#include <
nmap <leader>l :0read ~/src/etc/agpl.c<CR>''