aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2024-09-18 23:56:25 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2024-09-18 23:56:25 +0200
commit484dcba76bdc1aed43779a8e116a2eac0fb20044 (patch)
tree5d8339067cb8360f76f33f3445342413afb53116 /vimrc
parent6739aad5481fa32f02458ca72aaba4728fd4abfa (diff)
downloaddotfiles-484dcba76bdc1aed43779a8e116a2eac0fb20044.tar.gz
Update
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc5
1 files changed, 4 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index b69193d..5952011 100644
--- a/vimrc
+++ b/vimrc
@@ -11,6 +11,9 @@ set path+=** gp=grep\ -irn
11filetype plugin indent on 11filetype plugin indent on
12syntax enable 12syntax enable
13 13
14" Disable auto-formatting for Zig files.
15let g:zig_fmt_autosave = 0
16
14nnoremap <C-Right> :bnext<cr> 17nnoremap <C-Right> :bnext<cr>
15nnoremap <C-Left> :bprevious<cr> 18nnoremap <C-Left> :bprevious<cr>
16nnoremap <C-b> :buffers<cr>:buffer 19nnoremap <C-b> :buffers<cr>:buffer
@@ -37,7 +40,7 @@ augroup END
37noremap <silent> cc :<C-B>silent <C-E>s/^/<C-R>=escape(b:comment_leader,'\/')<CR>/<CR>:nohlsearch<CR> 40noremap <silent> cc :<C-B>silent <C-E>s/^/<C-R>=escape(b:comment_leader,'\/')<CR>/<CR>:nohlsearch<CR>
38noremap <silent> cu :<C-B>silent <C-E>s/^\(\s*\)\V<C-R>=escape(b:comment_leader,'\/')<CR>//e<CR>:nohlsearch<CR> 41noremap <silent> cu :<C-B>silent <C-E>s/^\(\s*\)\V<C-R>=escape(b:comment_leader,'\/')<CR>//e<CR>:nohlsearch<CR>
39 42
40" FZF fuzzy finder integration. 43" FZF - fuzzy finder integration.
41function! FZF() 44function! FZF()
42 let t=tempname() 45 let t=tempname()
43 silent execute '!fzf --preview=''cat {}'' --multi|awk ''{print $1":1:0"}'' > '.fnameescape(t) 46 silent execute '!fzf --preview=''cat {}'' --multi|awk ''{print $1":1:0"}'' > '.fnameescape(t)