aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2024-06-18 06:00:57 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2024-06-18 06:00:57 +0200
commit9342d9f890f7020577abe0255ae2e46b6bc8b385 (patch)
treecc6eabe5aa106da28cce04bd55c8f47ffc6771d2 /vimrc
parentadbff975d23a0cdd134648ebb3a09fe2de3e4b05 (diff)
downloaddotfiles-9342d9f890f7020577abe0255ae2e46b6bc8b385.tar.gz
Update vimrc
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc40
1 files changed, 8 insertions, 32 deletions
diff --git a/vimrc b/vimrc
index 7d1bf51..722530a 100644
--- a/vimrc
+++ b/vimrc
@@ -1,28 +1,15 @@
1set nocompatible 1set nocompatible
2set path+=** 2set path+=**
3set relativenumber 3set relativenumber autoindent
4set smartcase 4set smartcase ignorecase incsearch
5set ignorecase 5set hidden nowrap nobackup noswapfile autoread
6set incsearch 6set wildmenu laststatus=2
7set hidden 7set encoding=utf8 spelllang=en_us
8set nowrap 8set backspace=2 scrolloff=4
9set nobackup 9set shiftwidth=4 tabstop=4
10set noswapfile
11set autoread
12set wildmenu
13set autoindent
14set encoding=utf8
15set backspace=2
16set scrolloff=4
17set spelllang=en_us
18set laststatus=2
19set shiftwidth=4
20set tabstop=4
21set gp=grep\ -irn 10set gp=grep\ -irn
22 11
23filetype plugin on 12filetype plugin indent on
24filetype indent on
25
26syntax enable 13syntax enable
27 14
28nnoremap <C-Right> :bnext<cr> 15nnoremap <C-Right> :bnext<cr>
@@ -42,14 +29,3 @@ augroup END
42noremap <silent> gcc :<C-B>silent <C-E>s/^/<C-R>=escape(b:comment_leader,'\/')<CR>/<CR>:nohlsearch<CR> 29noremap <silent> gcc :<C-B>silent <C-E>s/^/<C-R>=escape(b:comment_leader,'\/')<CR>/<CR>:nohlsearch<CR>
43noremap <silent> gcu :<C-B>silent <C-E>s/^\V<C-R>=escape(b:comment_leader,'\/')<CR>//e<CR>:nohlsearch<CR> 30noremap <silent> gcu :<C-B>silent <C-E>s/^\V<C-R>=escape(b:comment_leader,'\/')<CR>//e<CR>:nohlsearch<CR>
44 31
45" Go autoformat.
46function! GoFmt()
47 let file = expand('%')
48 silent execute "!gofmt -w " . file
49 edit!
50endfunction
51command! GoFmt call GoFmt()
52augroup go_autocmd
53 autocmd BufWritePost *.go GoFmt
54augroup END
55