|
diff --git a/vimrc b/vimrc
|
| ... |
| 21 |
autocmd Filetype c,cpp,lua,zig setlocal expandtab tabstop=4 shiftwidth=4 |
21 |
autocmd Filetype c,cpp,lua,zig setlocal expandtab tabstop=4 shiftwidth=4 |
| 22 |
autocmd Filetype nix,html,javascript,css setlocal expandtab tabstop=2 shiftwidth=2 |
22 |
autocmd Filetype nix,html,javascript,css setlocal expandtab tabstop=2 shiftwidth=2 |
| 23 |
|
23 |
|
| 24 |
" Commenting blocks of code. |
24 |
" Code commenting - https://stackoverflow.com/a/1676672. |
| 25 |
" https://stackoverflow.com/a/1676672 |
|
|
| 26 |
augroup CodeCommenting |
25 |
augroup CodeCommenting |
| 27 |
autocmd! |
26 |
autocmd! |
| 28 |
autocmd FileType c,cpp,go,zig let b:comment_leader = '// ' |
27 |
autocmd FileType c,cpp,go,zig let b:comment_leader = '// ' |
| ... |
| 38 |
autocmd FileType c,cpp setlocal formatprg=clang-format |
37 |
autocmd FileType c,cpp setlocal formatprg=clang-format |
| 39 |
autocmd FileType go setlocal formatprg=gofmt |
38 |
autocmd FileType go setlocal formatprg=gofmt |
| 40 |
|
39 |
|
| 41 |
" FZF integration. |
40 |
" FZF fuzzy finder integration. |
| 42 |
function! FZF() |
41 |
function! FZF() |
| 43 |
let t=tempname() |
42 |
let t=tempname() |
| 44 |
silent execute '!fzf --preview=''cat {}'' --multi|awk ''{print $1":1:0"}'' > '.fnameescape(t) |
43 |
silent execute '!fzf --preview=''cat {}'' --multi|awk ''{print $1":1:0"}'' > '.fnameescape(t) |
| ... |