This commit is contained in:
Niko Abeler 2022-12-07 14:08:39 +01:00
commit 9f042c923e
1 changed files with 34 additions and 0 deletions

34
nvim/init.vim Normal file
View File

@ -0,0 +1,34 @@
set nocompatible
set showmatch
set ignorecase
set number
set tabstop=4
set expandtab
set shiftwidth=4
colorscheme habamax
set colorcolumn=120
call plug#begin()
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plug 'preservim/nerdtree'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
call plug#end()
"NERDTree
nnoremap <C-t> :NERDTreeToggle<CR>
nnoremap <C-p> :FZF<CR>
"fzf
let g:fzf_action = { 'enter': 'tab split' }
" tabs
nnoremap th :tabfirst<CR>
nnoremap tk :tabnext<CR>
nnoremap tj :tabprev<CR>
nnoremap tl :tablast<CR>
nnoremap tt :tabedit<Space>
nnoremap tn :tabnext<Space>
nnoremap tm :tabm<Space>
nnoremap td :tabclose<CR>