From f0bc38802a7dd6fd1c39a900983e2edf893badee Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 20 Jun 2024 05:17:10 +0200 Subject: Update vimrc --- vimrc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 4c6c531..081b32c 100644 --- a/vimrc +++ b/vimrc @@ -21,8 +21,7 @@ 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 -" Commenting blocks of code. -" https://stackoverflow.com/a/1676672 +" Code commenting - https://stackoverflow.com/a/1676672. augroup CodeCommenting autocmd! autocmd FileType c,cpp,go,zig let b:comment_leader = '// ' @@ -38,7 +37,7 @@ noremap cu :silent s/^\(\s*\)\V=escape(b:comment_leader, autocmd FileType c,cpp setlocal formatprg=clang-format autocmd FileType go setlocal formatprg=gofmt -" FZF integration. +" FZF fuzzy finder integration. function! FZF() let t=tempname() silent execute '!fzf --preview=''cat {}'' --multi|awk ''{print $1":1:0"}'' > '.fnameescape(t) -- cgit v1.2.3