Skip to content

Commit e542662

Browse files
committed
Added README and more help texts
1 parent 779cb6f commit e542662

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.vimrc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
" Sample .vimrc file by Martin Brochhaus
22
" Presented at PyCon APAC 2012
3-
" Slides: TODO
43

54

65
" ============================================
@@ -14,6 +13,9 @@
1413

1514

1615
" 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+
1719
"" set pastetoggle=<F2>
1820
"" set clipboard=unnamed
1921

@@ -24,11 +26,14 @@
2426

2527

2628
" 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.
2731
"" let mapleader = ","
2832

2933

3034
" Bind nohl
3135
" Removes highlight of your last search
36+
" ``<C>`` stands for ``CTRL`` and therefore ``<C-n>`` stands for ``CTRL+n``
3237
"" noremap <C-n> :nohl<CR>
3338
"" vnoremap <C-n> :nohl<CR>
3439
"" inoremap <C-n> :nohl<CR>
@@ -46,6 +51,7 @@
4651

4752

4853
" 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 :)
4955
"" map <c-j> <c-w>j
5056
"" map <c-k> <c-w>k
5157
"" map <c-l> <c-w>l
@@ -62,6 +68,8 @@
6268

6369

6470
" 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.
6573
"" vnoremap < <gv " better indentation
6674
"" vnoremap > >gv " better indentation
6775

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This is the code for my PyCon APAC 2012 talk about Vim as Python IDE.
44

5-
You can find the slides here: TODO
5+
You can find the slides as a PDF in this repository.
66

77
If you want to start using Vim for the first time, have a look at the
88
``.vimrc`` file in this repository and gradually uncomment everything.

0 commit comments

Comments
 (0)