summary refs log tree commit diff
path: root/home/.config/nvim/init.vim
diff options
context:
space:
mode:
Diffstat (limited to 'home/.config/nvim/init.vim')
-rw-r--r--home/.config/nvim/init.vim36
1 files changed, 36 insertions, 0 deletions
diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim
new file mode 100644
index 00000000..f09485de
--- /dev/null
+++ b/home/.config/nvim/init.vim
@@ -0,0 +1,36 @@
+set hidden
+set undofile
+set shortmess=atI
+set wildmode=list:longest
+set splitbelow splitright
+command! W w
+autocmd BufNewFile,BufRead *.asm,*.mac setfiletype nasm
+
+set tabstop=8 expandtab shiftwidth=4 shiftround smartindent
+autocmd FileType sh,zsh,ruby setlocal shiftwidth=2
+set ignorecase smartcase inccommand=nosplit
+nmap <leader><leader> :nohlsearch<CR>
+set foldmethod=syntax foldlevel=99
+
+autocmd TermOpen * setlocal statusline=%{b:term_title}
+autocmd BufEnter term://* startinsert
+tmap <C-w> <C-\><C-n><C-w>
+
+set title
+set scrolloff=1
+set number colorcolumn=80,100
+set list listchars=tab:»·,trail:·
+colorscheme trivial
+
+noremap n j
+noremap e k
+noremap k n
+noremap j e
+noremap N J
+noremap E K
+noremap K N
+noremap J E
+nmap <C-w>n <C-w>j
+nmap <C-w>e <C-w>k
+nmap <C-w>N <C-w>J
+nmap <C-w>E <C-w>K