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,89 +1,50 @@
1 1
 execute pathogen#infect()
2 2
 
3
-
4
-" ###############################################################################
5
-" ## from vimrc_example.vim
6
-" ###############################################################################
7
-
8
-" allow backspacing over everything in insert mode
9 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 9
 if has('mouse')
17 10
   set mouse=a
18 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 13
 if &t_Co > 2 || has("gui_running")
23 14
   syntax on
24 15
   set hlsearch
25 16
 endif
26 17
 
27
-" Only do this part when compiled with support for autocommands.
28 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 19
   filetype plugin indent on
35
-
36
-  " Put these in an autocmd group, so that we can delete them easily.
37 20
   augroup vimrcEx
38 21
   au!
39
-
40
-  " For all text files set 'textwidth' to 78 characters.
41 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 23
   autocmd BufReadPost *
49 24
     \ if line("'\"") > 1 && line("'\"") <= line("$") |
50 25
     \   exe "normal! g`\"" |
51 26
     \ endif
52
-
53 27
   augroup END
54
-
55 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 32
 if !exists(":DiffOrig")
65 33
   command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis
66 34
 		  \ | wincmd p | diffthis
67 35
 endif
68 36
 
69
-
70
-" ###############################################################################
71
-" ## from me or anywhere
72
-" ###############################################################################
73
-
74 37
 set encoding=utf-8
75 38
 set list listchars=tab:→\ ,trail:·,precedes:←
76 39
 set list
77 40
 noremap <F2> :set list!<CR>
78 41
 
79
-" my favorite indent style
80 42
 set tabstop=4
81 43
 set shiftwidth=4
82 44
 set expandtab
83 45
 
84 46
 let g:local_vimrc=".vimrc_local.vim"
85 47
 
86
-" for gvim
87 48
 colorscheme pablo
88 49
 set gfn=Droid\ Sans\ Mono\ 9
89 50
 
@@ -99,14 +60,6 @@ set autoindent
99 60
 set pastetoggle=<F4>
100 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 63
 if isdirectory($HOME . '/.local/share/vim') == 0
111 64
   :silent !mkdir -p ~/.vim/swap >/dev/null 2>&1
112 65
   endif
@@ -115,9 +68,4 @@ if isdirectory($HOME . '/.local/share/vim') == 0
115 68
   set directory+=~/tmp//
116 69
   set directory+=.
117 70
 
118
-
119
-" ###############################################################################
120
-" ## from https://github.com/plasticboy/vim-markdown
121
-" ###############################################################################
122
-
123 71
 let g:vim_markdown_folding_disabled=1