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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | " My vimrc
" enter the current millenium
set nocompatible
" enable syntax and plugins (for netrw)
syntax on
filetype plugin on
" fzf without fzf
set path+=**
" cool completion menu
set wildmenu
" always show statusline
set laststatus=2
" tabs settings
set expandtab
" numbers on the left
set number
" no wrap lines
set nowrap
" use system clipboard
set clipboard=unnamedplus
" show cursor position
set cursorcolumn
set cursorline
" tweaks for file browsing
let g:netrw_banner=0
let g:netrw_bworse_split=4
let g:netrw_altv=1
let g:netrw_liststyle=3
let g:netrw_list_hide=netrw_gitignore#Hide()
let g:netrw_list_hide.=',\(^\|\s\s\)\zs\.\S\+'
" insert skeletons
nnoremap ,html :-1read ~/.vim/snippets/html<CR>3jwf>a
nnoremap ,cpp :-1read ~/.vim/snippets/cpp<CR>2j5wa
" open file explorer
nmap <silent> <c-e> :Ex<CR>
" remap split navigation
nmap <silent> <c-k> :wincmd k<CR>
nmap <silent> <c-j> :wincmd j<CR>
nmap <silent> <c-h> :wincmd h<CR>
nmap <silent> <c-l> :wincmd l<CR>
" plugins
call plug#begin('~/.vim/plugged')
" hex color preview
Plug 'https://github.com/ap/vim-css-color'
" gruvbox colorscheme
Plug 'https://github.com/arcticicestudio/nord-vim'
" html preview
Plug 'turbio/bracey.vim'
call plug#end()
" set the color scheme
colorscheme nord
|
x
Notes
My garbage vimrc. Maybe you can find something useful tho.