|
@@ -2,8 +2,39 @@
|
2
|
2
|
" General Options
|
3
|
3
|
"
|
4
|
4
|
" Disable compatibility mode
|
5
|
|
-"set nocp
|
|
5
|
+set nocompatible
|
6
|
6
|
|
|
7
|
+"
|
|
8
|
+" File-Menu
|
|
9
|
+"
|
|
10
|
+" Enable plugin
|
|
11
|
+filetype plugin on
|
|
12
|
+" Search down into subfolders. Provides tab-completion for all file-related tasks
|
|
13
|
+set path+=**
|
|
14
|
+
|
|
15
|
+"
|
|
16
|
+" Tagging (^] go to tag source, ^t go back)
|
|
17
|
+"
|
|
18
|
+command! MakeTags !ctags -R .
|
|
19
|
+
|
|
20
|
+"
|
|
21
|
+" File Browsing
|
|
22
|
+"
|
|
23
|
+let g:netrw_banner=0 " disable annoying banner
|
|
24
|
+let g:netrw_browse_split=4 " open in prior window
|
|
25
|
+let g:netrw_altv=1 " open splits to the right
|
|
26
|
+let g:netrw_liststyle=3 " tree view
|
|
27
|
+let g:netrw_list_hide=netrw_gitignore#Hide()
|
|
28
|
+let g:netrw_list_hide.=',\(^}|\s\s)\zs\.\S\+'
|
|
29
|
+" Now WE CAN:
|
|
30
|
+" - edit a folder to open a file browser
|
|
31
|
+" - <CR>/v/t to open in an h-split/v-spli/tab
|
|
32
|
+" - check |netrw-browse-maps| for more mappings
|
|
33
|
+
|
|
34
|
+"
|
|
35
|
+" Snippets
|
|
36
|
+"
|
|
37
|
+nnoremap ,pyclass :-1read $HOME/.vim/skeletons/class.py<CR>6l
|
7
|
38
|
"
|
8
|
39
|
" Indent Options
|
9
|
40
|
"
|
|
@@ -12,13 +43,13 @@ set autoindent
|
12
|
43
|
" Convert tabs to spaces.
|
13
|
44
|
set expandtab
|
14
|
45
|
" Enable indentation rules that are file-type specific.
|
15
|
|
-"set filetype indent on
|
|
46
|
+"filetype indent on
|
16
|
47
|
" When shifting lines, round the indentation to the nearest multiple of "shiftwidth."
|
17
|
|
-set shiftround
|
|
48
|
+"set shiftround
|
18
|
49
|
" When shifting, indent using four spaces.
|
19
|
|
-set shiftwidth=4
|
|
50
|
+"set shiftwidth=4
|
20
|
51
|
" Insert "tabstop" number of spaces when the "tab" key is pressed.
|
21
|
|
-set smarttab
|
|
52
|
+"set smarttab
|
22
|
53
|
" Indent using four spaces.
|
23
|
54
|
set tabstop=4
|
24
|
55
|
|
|
@@ -97,7 +128,7 @@ set statusline+=\ [0x%B]\ " ASCII hex code u
|
97
|
128
|
" Always show cursor position.
|
98
|
129
|
"set ruler
|
99
|
130
|
" Display command line's tab complete options as a menu.
|
100
|
|
-"set wildmenu
|
|
131
|
+set wildmenu
|
101
|
132
|
" Maximum number of tab pages that can be opened from the command line.
|
102
|
133
|
"set tabpagemax=50
|
103
|
134
|
" Change color scheme.
|
|
@@ -159,4 +190,4 @@ set history=1000
|
159
|
190
|
" Enable spellchecking.
|
160
|
191
|
"set spell
|
161
|
192
|
" Ignore files matching these patterns when opening files based on a glob pattern.
|
162
|
|
-"set wildignore+=.pyc,.swp
|
|
193
|
+set wildignore+=.pyc,.swp
|