Skip to content

Commit 7ae9a9f

Browse files
author
Stanislas Polu
committed
Merge branch 'master' of github.com:spolu/dwm.vim
2 parents bd24108 + 53e0ef4 commit 7ae9a9f

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

Readme.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,38 @@ Use the following commands to create, browse and close windows:
2222
- `C-C` Close the current window if no unsaved changes
2323
- `C-J` Jumps to next window (clockwise)
2424
- `C-K` Jumps to previous window (anti-clockwise)
25-
- `C-H` Focus the current window, that is, place it in the master pane [M] & stacks all other windows in the stacked pane [S]
26-
- `C-L` Fullscreen mode for the current window (use focus to return to normal mode)
25+
- `C-Space` Focus the current window, that is, place it in the master pane [M] & stacks all other windows in the stacked pane [S]
26+
- `C-M` Fullscreen mode for the current window (use focus to return to normal mode)
2727

2828
### ScreenShot
2929

3030
![](http://i.imgur.com/TKL4i.png)
3131

32+
### Installation
33+
34+
Install to `~/.vim/plugin/dwm.vim`.
35+
36+
Or copy and paste:
37+
38+
```
39+
mkdir -p ~/.vim/plugin ~/.vim/doc; \
40+
wget -qO ~/.vim/plugin/dwm.vim \
41+
https://raw.github.com/spolu/dwm.vim/master/plugin/dwm.vim; \
42+
wget -qO ~/.vim/doc/dwm.txt \
43+
https://raw.github.com/spolu/dwm.vim/master/doc/dwm.txt;
44+
```
45+
46+
You can use `curl -so` if you prefer it over `wget`.
47+
3248
### Optional Settings
3349

3450
- `g:dwm_map_keys`: if set to a falsey value, prevents key mapping.
3551
- `g:dwm_master_pane_width`: set the width of the master pane (e.g. `g:dwm_master_pane_width=85`)
3652

53+
To use a mouse to select windows and resize panes:
54+
- `set mouse=a`: enable the use of the mouse in all modes
55+
- `set ttymouse=xterm2`: recognize mouse codes for the xterm2 terminal type
56+
3757
### Remarks
3858

3959
There is only one tiled layout available right now, but do not hesitate to *fork it*!

doc/dwm.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ mapped:
7979

8080
<c-n> |:DWM_New|
8181
<c-c> |:DWM_Close|
82-
<c-h> |:DWM_Focus|
83-
<c-l> |:DWM_Full|
82+
<c-space> |:DWM_Focus|
83+
<c-m> |:DWM_Full|
8484
<c-j> Move cursor clockwise to the next window
8585
<c-k> Move cursor counter-clockwise to the previous window
8686

0 commit comments

Comments
 (0)