Browse Source

Remove unnecessary (i.e. all) comments

Alois Mahdal 10 years ago
parent
commit
d74c382a16
1 changed files with 6 additions and 58 deletions
  1. 6
    58
      dotfiles/vim/vimrc

+ 6
- 58
dotfiles/vim/vimrc View File

1
 execute pathogen#infect()
1
 execute pathogen#infect()
2
 
2
 
3
-
4
-" ###############################################################################
5
-" ## from vimrc_example.vim
6
-" ###############################################################################
7
-
8
-" allow backspacing over everything in insert mode
9
 set backspace=indent,eol,start
3
 set backspace=indent,eol,start
10
-set history=500		" keep 50 lines of command line history
11
-set ruler		" show the cursor position all the time
12
-set showcmd		" display incomplete commands
13
-set incsearch		" do incremental searching
4
+set history=500
5
+set ruler
6
+set showcmd
7
+set incsearch
14
 
8
 
15
-" In many terminal emulators the mouse works just fine, thus enable it.
16
 if has('mouse')
9
 if has('mouse')
17
   set mouse=a
10
   set mouse=a
18
 endif
11
 endif
19
 
12
 
20
-" Switch syntax highlighting on, when the terminal has colors
21
-" Also switch on highlighting the last used search pattern.
22
 if &t_Co > 2 || has("gui_running")
13
 if &t_Co > 2 || has("gui_running")
23
   syntax on
14
   syntax on
24
   set hlsearch
15
   set hlsearch
25
 endif
16
 endif
26
 
17
 
27
-" Only do this part when compiled with support for autocommands.
28
 if has("autocmd")
18
 if has("autocmd")
29
-
30
-  " Enable file type detection.
31
-  " Use the default filetype settings, so that mail gets 'tw' set to 72,
32
-  " 'cindent' is on in C files, etc.
33
-  " Also load indent files, to automatically do language-dependent indenting.
34
   filetype plugin indent on
19
   filetype plugin indent on
35
-
36
-  " Put these in an autocmd group, so that we can delete them easily.
37
   augroup vimrcEx
20
   augroup vimrcEx
38
   au!
21
   au!
39
-
40
-  " For all text files set 'textwidth' to 78 characters.
41
   autocmd FileType text setlocal textwidth=78
22
   autocmd FileType text setlocal textwidth=78
42
-
43
-  " When editing a file, always jump to the last known cursor position.
44
-  " Don't do it when the position is invalid or when inside an event handler
45
-  " (happens when dropping a file on gvim).
46
-  " Also don't do it when the mark is in the first line, that is the default
47
-  " position when opening a file.
48
   autocmd BufReadPost *
23
   autocmd BufReadPost *
49
     \ if line("'\"") > 1 && line("'\"") <= line("$") |
24
     \ if line("'\"") > 1 && line("'\"") <= line("$") |
50
     \   exe "normal! g`\"" |
25
     \   exe "normal! g`\"" |
51
     \ endif
26
     \ endif
52
-
53
   augroup END
27
   augroup END
54
-
55
 else
28
 else
29
+  set autoindent
30
+endif
56
 
31
 
57
-  set autoindent		" always set autoindenting on
58
-
59
-endif " has("autocmd")
60
-
61
-" Convenient command to see the difference between the current buffer and the
62
-" file it was loaded from, thus the changes you made.
63
-" Only define it when not defined already.
64
 if !exists(":DiffOrig")
32
 if !exists(":DiffOrig")
65
   command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis
33
   command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis
66
 		  \ | wincmd p | diffthis
34
 		  \ | wincmd p | diffthis
67
 endif
35
 endif
68
 
36
 
69
-
70
-" ###############################################################################
71
-" ## from me or anywhere
72
-" ###############################################################################
73
-
74
 set encoding=utf-8
37
 set encoding=utf-8
75
 set list listchars=tab:→\ ,trail:·,precedes:←
38
 set list listchars=tab:→\ ,trail:·,precedes:←
76
 set list
39
 set list
77
 noremap <F2> :set list!<CR>
40
 noremap <F2> :set list!<CR>
78
 
41
 
79
-" my favorite indent style
80
 set tabstop=4
42
 set tabstop=4
81
 set shiftwidth=4
43
 set shiftwidth=4
82
 set expandtab
44
 set expandtab
83
 
45
 
84
 let g:local_vimrc=".vimrc_local.vim"
46
 let g:local_vimrc=".vimrc_local.vim"
85
 
47
 
86
-" for gvim
87
 colorscheme pablo
48
 colorscheme pablo
88
 set gfn=Droid\ Sans\ Mono\ 9
49
 set gfn=Droid\ Sans\ Mono\ 9
89
 
50
 
99
 set pastetoggle=<F4>
60
 set pastetoggle=<F4>
100
 nmap <F3> :set invnumber<CR>
61
 nmap <F3> :set invnumber<CR>
101
 
62
 
102
-
103
-" ###############################################################################
104
-" ## from http://stackoverflow.com/a/9528322/835945
105
-" ###############################################################################
106
-
107
-" Save your swp files to a less annoying place than the current directory.
108
-" If you have .vim-swap in the current directory, it'll use that.
109
-" Otherwise it saves it to ~/.vim/swap, ~/tmp or .
110
 if isdirectory($HOME . '/.local/share/vim') == 0
63
 if isdirectory($HOME . '/.local/share/vim') == 0
111
   :silent !mkdir -p ~/.vim/swap >/dev/null 2>&1
64
   :silent !mkdir -p ~/.vim/swap >/dev/null 2>&1
112
   endif
65
   endif
115
   set directory+=~/tmp//
68
   set directory+=~/tmp//
116
   set directory+=.
69
   set directory+=.
117
 
70
 
118
-
119
-" ###############################################################################
120
-" ## from https://github.com/plasticboy/vim-markdown
121
-" ###############################################################################
122
-
123
 let g:vim_markdown_folding_disabled=1
71
 let g:vim_markdown_folding_disabled=1