File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
" Sample .vimrc file by Martin Brochhaus
2
2
" Presented at PyCon APAC 2012
3
- " Slides: TODO
4
3
5
4
6
5
" ============================================
14
13
15
14
16
15
" Better copy & paste
16
+ " When you want to paste large blocks of code into vim, press F2 before you
17
+ " paste. At the bottom you should see ``-- INSERT (paste) --``.
18
+
17
19
" " set pastetoggle=<F2>
18
20
" " set clipboard=unnamed
19
21
24
26
25
27
26
28
" Rebind <Leader> key
29
+ " I like to have it here becuase it is easier to reach than the default and
30
+ " it is next to ``m`` and ``n`` which I use for navigating between tabs.
27
31
" " let mapleader = ","
28
32
29
33
30
34
" Bind nohl
31
35
" Removes highlight of your last search
36
+ " ``<C>`` stands for ``CTRL`` and therefore ``<C-n>`` stands for ``CTRL+n``
32
37
" " noremap <C-n> :nohl<CR>
33
38
" " vnoremap <C-n> :nohl<CR>
34
39
" " inoremap <C-n> :nohl<CR>
46
51
47
52
48
53
" bind Ctrl+<movement> keys to move around the windows, instead of using Ctrl+w + <movement>
54
+ " Every unnecessary keystroke that can be saved is good for your health :)
49
55
" " map <c-j> <c-w>j
50
56
" " map <c-k> <c-w>k
51
57
" " map <c-l> <c-w>l
62
68
63
69
64
70
" easier moving of code blocks
71
+ " Try to go into visual mode (v), thenselect several lines of code here and
72
+ " then press ``>`` several times.
65
73
" " vnoremap < <gv " better indentation
66
74
" " vnoremap > >gv " better indentation
67
75
Original file line number Diff line number Diff line change 2
2
3
3
This is the code for my PyCon APAC 2012 talk about Vim as Python IDE.
4
4
5
- You can find the slides here: TODO
5
+ You can find the slides as a PDF in this repository.
6
6
7
7
If you want to start using Vim for the first time, have a look at the
8
8
`` .vimrc `` file in this repository and gradually uncomment everything.
You can’t perform that action at this time.
0 commit comments