Skip to content

Instantly share code, notes, and snippets.

@zoomlogo
Last active October 10, 2022 13:04
Show Gist options
  • Save zoomlogo/533ca77659771b4c4b47aa37f13afb63 to your computer and use it in GitHub Desktop.
Save zoomlogo/533ca77659771b4c4b47aa37f13afb63 to your computer and use it in GitHub Desktop.
very smol vim config
"plugins: vim-polygot cemant.vim vim-visual-multi vim-easy-align
" vim-abolish golden-ratio vim-surround vim-commentary vim-terminal-help
se nocp nohls nowrap et ts=4 sw=4 nobk ru is nu rnu ls=2 tgc noswf nowb so=1
se stal=2 list lcs=tab:→\ ,space:· bg=dark gfn=sevka,agave_NF_r:h13
se bs=2 sc wmnu shm=asWIcq ttimeout ttm=100 top rtp+=~/ngn_k/vim-k enc=utf-8
au bufreadpost * sil! norm! g`"zv
au bufnew,bufnewfile,bufread *.k :se ft=k
au vimleave * se gcr=a:ver25
au filetype python nn <cr> :w<cr>:!python %<cr>
au filetype k nn <cr> :w<cr>:!k %<cr>
au filetype c nn <cr> :w<cr>:!gcc % -Wall -Wextra -O2 -std=c17 && ./a.out<cr>
au filetype make se noet
filet plugin indent on
sy on
colo cemant
nm <space> <nop>
let mapleader=" "
nm Q @q
nm <leader>w <cmd>w<cr>
nm <leader>h <cmd>vsplit<cr>
nm <leader>v <cmd>split<cr>
nm <leader>t <cmd>tabnew<cr>
nm <leader>p <cmd>tabnext<cr>
nm <leader>cd <cmd>cd %/..<cr>
nm <m-w> viw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment