💾 Archived View for hajime.4teri.de › dotfiles › file › vimrc.gmi captured on 2021-12-04 at 18:04:22. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-03)

-=-=-=-=-=-=-

vimrc - dotfiles - Collection of my dotfiles

Log

Files

Refs

---

vimrc (1898B)

---

1 syntax enable

2 filetype plugin on

3

4 " Set Options

5 set nocompatible

6 set path+=**

7 set wildmenu

8 set number

9 set incsearch

10 set hlsearch

11 set history=1024

12 set nomodeline

13 set tabstop=8

14 set shiftwidth=8

15 colo elflord

16

17 call plug#begin('/home/zocki/.vim/plugged')

18 Plug 'reedes/vim-pencil'

19 Plug 'vim-airline/vim-airline'

20 " Plug 'preservim/tagbar'

21 Plug 'majutsushi/tagbar'

22 Plug 'xolox/vim-misc'

23 Plug 'xolox/vim-easytags'

24 Plug 'tpope/vim-fugitive'

25 Plug 'ollykel/v-vim'

26 Plug 'junegunn/goyo.vim'

27 Plug 'rust-lang/rust.vim'

28 call plug#end()

29

30 augroup pencil

31 autocmd!

32 autocmd FileType markdown,mkd call pencil#init()

33 autocmd FileType text call pencil#init({'wrap': 'hard'})

34 augroup END

35

36 let g:pencil#textwidth = 80

37

38 " Airline config

39 let g:airline_section_x = '%{PencilMode()}'

40 let g:airline_section_b = '%{strftime("%c")} | %{FugitiveStatusline()}'

41 let g:airline_section_y = 'BN: %{bufnr("%")}'

42 let g:airline#extensions#tabline#enabled = 1

43 let g:airline#tabline#formatter = 'unique_tail'

44 set t_Co=256

45

46 function! s:tagbar_integration()

47 endfunction

48

49 " Tagbar config

50 let g:tagbar_width = max([25, winwidth(0) / 5])

51 let g:tagbar_show_data_type = 1

52 let g:tagbar_autoshowtag = 1

53 let g:tagbar_wrap = 1

54

55 let g:goyo_width = 82

56

57 " Nmaps

58 nmap <F5> :PlugUpgrade<CR>:PlugUpdate<CR>

59 nmap <F4> :TagbarToggle<CR>

60 nmap <F6> :Goyo<CR>

61 nmap <F10> :RustFmt<CR>

62 nmap <F7> :call pencil#init({'wrap': 'hard'})<CR>

63 nmap <F8> :call deadkeys#ToggleDeadKeys()<CR>

64

65 " Tagbar customs

66

67 if !exists('g:tagbar_type_rust')

68 let g:tagbar_type_rust = {

69 \ 'ctagstype' : 'rust',

70 \ 'kinds' : [

71 \'T:types',

72 \'f:functions',

73 \'g:enumerations',

74 \'s:structures',

75 \'m:modules',

76 \'c:constants',

77 \'t:traits',

78 \'i:trait implementations',

79 \ ]

80 \ }

81 endif

generated w/ stagit-gemini