From 9342d9f890f7020577abe0255ae2e46b6bc8b385 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Tue, 18 Jun 2024 06:00:57 +0200 Subject: Update vimrc --- vimrc | 40 ++++++++-------------------------------- 1 file changed, 8 insertions(+), 32 deletions(-) diff --git a/vimrc b/vimrc index 7d1bf51..722530a 100644 --- a/vimrc +++ b/vimrc @@ -1,28 +1,15 @@ set nocompatible set path+=** -set relativenumber -set smartcase -set ignorecase -set incsearch -set hidden -set nowrap -set nobackup -set noswapfile -set autoread -set wildmenu -set autoindent -set encoding=utf8 -set backspace=2 -set scrolloff=4 -set spelllang=en_us -set laststatus=2 -set shiftwidth=4 -set tabstop=4 +set relativenumber autoindent +set smartcase ignorecase incsearch +set hidden nowrap nobackup noswapfile autoread +set wildmenu laststatus=2 +set encoding=utf8 spelllang=en_us +set backspace=2 scrolloff=4 +set shiftwidth=4 tabstop=4 set gp=grep\ -irn -filetype plugin on -filetype indent on - +filetype plugin indent on syntax enable nnoremap :bnext @@ -42,14 +29,3 @@ augroup END noremap gcc :silent s/^/=escape(b:comment_leader,'\/')/:nohlsearch noremap gcu :silent s/^\V=escape(b:comment_leader,'\/')//e:nohlsearch -" Go autoformat. -function! GoFmt() - let file = expand('%') - silent execute "!gofmt -w " . file - edit! -endfunction -command! GoFmt call GoFmt() -augroup go_autocmd - autocmd BufWritePost *.go GoFmt -augroup END - -- cgit v1.2.3