From 64a1e8466b6281674afecdf67b959fb594884d85 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 20 Jun 2024 15:40:57 +0200 Subject: Update vimrc --- alacritty.yml | 8 ++++++++ vimrc | 8 ++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/alacritty.yml b/alacritty.yml index bc7eb22..b17e57c 100644 --- a/alacritty.yml +++ b/alacritty.yml @@ -15,6 +15,14 @@ font: italic: family: Berkeley Mono +cursor: + blink_timeout: 0 + style: + blinking: "Always" + colors: primary: background: "#111111" + cursor: + text: "#000000" + cursor: "#ffffff" diff --git a/vimrc b/vimrc index 3b6201c..6e4080c 100644 --- a/vimrc +++ b/vimrc @@ -21,6 +21,10 @@ autocmd Filetype make,go,sh setlocal noexpandtab tabstop=4 shiftwidth=4 autocmd Filetype c,cpp,lua,zig setlocal expandtab tabstop=4 shiftwidth=4 autocmd Filetype nix,html,javascript,css setlocal expandtab tabstop=2 shiftwidth=2 +" External auto-formatters. +autocmd FileType c,cpp setlocal formatprg=clang-format +autocmd FileType go setlocal formatprg=gofmt + " Code commenting - https://stackoverflow.com/a/1676672. augroup CodeCommenting autocmd! @@ -33,10 +37,6 @@ augroup END noremap cc :silent s/^/=escape(b:comment_leader,'\/')/:nohlsearch noremap cu :silent s/^\(\s*\)\V=escape(b:comment_leader,'\/')//e:nohlsearch -" External auto-format programs. -autocmd FileType c,cpp setlocal formatprg=clang-format -autocmd FileType go setlocal formatprg=gofmt - " FZF fuzzy finder integration. function! FZF() let t=tempname() -- cgit v1.2.3