Parcourir la source

vimrc update

master
Dirk Alders il y a 1 an
Parent
révision
a310d897a7
2 fichiers modifiés avec 42 ajouts et 7 suppressions
  1. 4
    0
      vim_skeletons/class.py
  2. 38
    7
      vimrc

+ 4
- 0
vim_skeletons/class.py Voir le fichier

1
+class  (object):
2
+    def __init__(self):
3
+        pass
4
+

+ 38
- 7
vimrc Voir le fichier

2
 " General Options
2
 " General Options
3
 "
3
 "
4
 " Disable compatibility mode
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
 " Indent Options
39
 " Indent Options
9
 "
40
 "
12
 " Convert tabs to spaces.
43
 " Convert tabs to spaces.
13
 set expandtab
44
 set expandtab
14
 " Enable indentation rules that are file-type specific.
45
 " Enable indentation rules that are file-type specific.
15
-"set filetype indent on 
46
+"filetype indent on 
16
 " When shifting lines, round the indentation to the nearest multiple of "shiftwidth."
47
 " When shifting lines, round the indentation to the nearest multiple of "shiftwidth."
17
-set shiftround 
48
+"set shiftround 
18
 " When shifting, indent using four spaces.
49
 " When shifting, indent using four spaces.
19
-set shiftwidth=4 
50
+"set shiftwidth=4 
20
 " Insert "tabstop" number of spaces when the "tab" key is pressed.
51
 " Insert "tabstop" number of spaces when the "tab" key is pressed.
21
-set smarttab 
52
+"set smarttab 
22
 " Indent using four spaces.
53
 " Indent using four spaces.
23
 set tabstop=4 
54
 set tabstop=4 
24
 
55
 
97
 " Always show cursor position.
128
 " Always show cursor position.
98
 "set ruler
129
 "set ruler
99
 " Display command line's tab complete options as a menu.
130
 " Display command line's tab complete options as a menu.
100
-"set wildmenu
131
+set wildmenu
101
 " Maximum number of tab pages that can be opened from the command line.
132
 " Maximum number of tab pages that can be opened from the command line.
102
 "set tabpagemax=50
133
 "set tabpagemax=50
103
 " Change color scheme.
134
 " Change color scheme.
159
 " Enable spellchecking.
190
 " Enable spellchecking.
160
 "set spell
191
 "set spell
161
 " Ignore files matching these patterns when opening files based on a glob pattern.
192
 " Ignore files matching these patterns when opening files based on a glob pattern.
162
-"set wildignore+=.pyc,.swp
193
+set wildignore+=.pyc,.swp

Chargement…
Annuler
Enregistrer