Skip to content

Instantly share code, notes, and snippets.

View mawkler's full-sized avatar

Melker Ulander mawkler

View GitHub Profile
@mawkler
mawkler / vim-plugins.md
Last active November 30, 2021 10:26
List of recommended (Neo)vim plugins and resources
@mawkler
mawkler / tips.md
Created November 24, 2021 13:59
Generella vim-tips

Generella tips

För att få överblick över alla Vims kommandon: :help quickref.txt

Vims syntax för kommandon. Exempelvis:

  • <c-d> betyder ctrl-d
  • <m-d> betyder alt-d (m läses "meta")
  • <c-w>w betyder tryck ctrl-w, sen w
  • är samma sak som
@mawkler
mawkler / zoom.vim
Last active October 13, 2021 18:03
Functions for zooming in GUI versions of Vim/Neovim
" Increases the font size with `amount`
function! Zoom(amount) abort
call ZoomSet(matchstr(&guifont, '\d\+$') + a:amount)
endfunc
" Sets the font size to `font_size`
function ZoomSet(font_size) abort
let &guifont = substitute(&guifont, '\d\+$', a:font_size, '')
endfunc