let mapleader=" " " Basic stuff set mouse=a set nocompatible set nohlsearch filetype plugin on syntax on set encoding=utf-8 set number set termguicolors set splitbelow splitright set cursorline " restore cursor to the last position after reopening a file autocmd BufReadPost * \ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit' \ | exe "normal! g`\"" \ | endif " Enable spell checking, s for spell check map se :setlocal spell! spelllang=en map sr :setlocal spell! spelllang=ro " ### " # Plugins " ### call plug#begin('~/.local/share/nvim/plugged') " REMINDER - on a new system install go for hexokinase (color preview) Plug 'rrethy/vim-hexokinase', { 'do': 'make hexokinase' } Plug 'vimwiki/vimwiki' Plug 'franbach/miramare' call plug#end() colorscheme miramare " hexokinase let g:Hexokinase_refreshEvents = ['InsertLeave'] let g:Hexokinase_highlighters = ['backgroundfull'] autocmd VimEnter * HexokinaseTurnOn " ### " # Key Remapping " ### " Reload this config file map :source ~/.config/nvim/init.vim nnoremap e :Ex " Easier Write and Quit aliases nnoremap q :q nnoremap Q :wq nnoremap w :w " Split navigation with leader key nnoremap h h nnoremap j j nnoremap k k nnoremap l l " Make adjusing split sizes a bit more friendly noremap :vertical resize +3 noremap :vertical resize -3 noremap :resize +3 noremap :resize -3 " New splits nnoremap sv :Vex nnoremap sh :Sex nnoremap t :24sp:term:startinsert " exit insert mode in terminal easier tnoremap tnoremap k