summary refs log tree commit diff
path: root/home/.config/nvim/init.vim
blob: 32341c6028cf91d7eaef0dca186961a6251ae5c6 (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
35
36
37
38
39
40
set hidden
set shortmess=atI
set wildmode=list:longest
set splitbelow splitright

set ignorecase smartcase inccommand=nosplit
set tabstop=4 expandtab shiftwidth=4 shiftround smartindent
set foldmethod=syntax foldlevel=99
set undofile

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

nmap <leader><leader> :nohlsearch<CR>
tmap <Esc><Esc> <C-\><C-n>
tmap <C-w><C-w> <C-\><C-n><C-w><C-w>
command! W w

colorscheme trivial

autocmd TermOpen * setlocal statusline=%{b:term_title}
autocmd BufEnter term://* startinsert
autocmd BufNewFile,BufRead *.asm,*.mac setfiletype nasm
autocmd FileType sh,zsh,ruby setlocal shiftwidth=2

" Tarmak 1
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

execute pathogen#infect()