From e3bbee81de559c1b4dea7a83d46da3b4e00cc2a8 Mon Sep 17 00:00:00 2001 From: la-ninpre Date: Mon, 12 Jul 2021 16:27:52 +0300 Subject: move to GNU stow approach on managing dotfiles --- .config/nvim/init.vim | 156 -------------------------------------------------- 1 file changed, 156 deletions(-) delete mode 100644 .config/nvim/init.vim (limited to '.config/nvim/init.vim') diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim deleted file mode 100644 index 52d7176..0000000 --- a/.config/nvim/init.vim +++ /dev/null @@ -1,156 +0,0 @@ -" la-ninpre init.vim " - -" misc: {{{ - -" use space as leader key -let mapleader=" " - -" enter new era :D -set nocompatible -set encoding=utf-8 - -" enable 24-bit colors -set termguicolors - -" enable hybrid numbers -set nu rnu - -" mouse is bad, but sometimes is useful -set mouse=a - -" this is for better file searching -set path=.,** -set wildmenu - -" more intuitive splits -set splitbelow splitright - -" search options -set nohlsearch incsearch ignorecase smartcase showmatch - -" ruler -set rulerformat=%35(%{strftime('%F\ %H:%M')}%=%l/%L%=%c%V%=%p%%\ %) - -" expand tabs to spaces -set tabstop=4 softtabstop=4 -set shiftwidth=4 -set expandtab - -" use autoindents -set smartindent - -" replace default behaviour with undotree plugin -set noswapfile nobackup -set undodir=~/.local/share/nvim/undodir -set undofile - -" actually, i don't remember what is this... -set hidden - -" fix update time -set updatetime=50 - -" remind yourself about 80 column rule -set colorcolumn=81 - -" this could be used to show unprintable characters -set listchars=tab:>-,eol:$,space:•,trail:~ - -" }}} -" plugins: {{{ - -" pluggins are installed with vim plug -call plug#begin('~/.local/share/nvim/plugged') -Plug '~/.local/share/nvim/plugged/gruvbox', {'branch': 'la-ninpre/la-ninpre'} -Plug 'junegunn/goyo.vim' -Plug 'junegunn/limelight.vim' -Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } -Plug 'junegunn/fzf.vim' -Plug 'mattn/emmet-vim' -Plug 'ap/vim-css-color' -Plug 'preservim/nerdcommenter' -Plug 'tpope/vim-surround' -Plug 'mbbill/undotree' -Plug 'dense-analysis/ale' -Plug 'cespare/vim-toml' -Plug 'https://tildegit.org/sloum/gemini-vim-syntax' -call plug#end() -filetype plugin indent on - -" }}} -" colorscheme: {{{ -" colorscheme tweaks -if exists('+termguicolors') - let &t_8f = "\[38;2;%lu;%lu;%lum" - let &t_8b = "\[48;2;%lu;%lu;%lum" -endif - -let g:gruvbox_contrast_dark='hard' -let g:gruvbox_italic=1 -let g:gruvbox_transparent_bg=1 -let g:gruvbox_invert_selection='0' - -set background=dark -colorscheme gruvbox - -" }}} -" mappings: {{{ - -" easier navigation in splits -map -map -map -map - -" replace all occurencies of the word under the cursor -nnoremap su :%s/\<\>/ - -" show or hide undo tree -nnoremap u :UndotreeToggle - -" open helptags -nnoremap h :Helptags - -" open file with fzf -nnoremap o :Files - -" easy source init.vim -nnoremap :so ~/.config/nvim/init.vim -" easy open init.vim -nnoremap vc :e ~/.config/nvim/init.vim - -" show or hide unprintable characters -nnoremap sl :set list -nnoremap sn :set nolist - -" goyo -nnoremap go :Goyo - -" actually magick! -" this moves higlighted block up or down -vnoremap J :m '>+1gv=gv -vnoremap K :m '<-2gv=gv - -" alias for capturing group in command mode (for use with regexps) -cmap ;( \(\) - -" }}} -" autocommands: {{{ - -" limelight on when goyo -autocmd! User GoyoEnter Limelight -autocmd! User GoyoLeave Limelight! - -" fix wrong nvim size when starting in alacritty -autocmd VimEnter * :silent exec "!kill -s SIGWINCH $PPID" - -" enable insert mode when entering git commit message -autocmd VimEnter */COMMIT_EDITMSG startinsert - -" highlight yanked text (needs nvim 0.5.x) -augroup highlight_yank - autocmd! - autocmd TextYankPost * silent! lua require'vim.highlight'.on_yank({timeout = 40}) -augroup END - -" vim: ft=vim fdm=marker: -- cgit v1.2.3