diff options
author | Max Christian Pohle | 2015-11-10 02:59:02 +0100 |
---|---|---|
committer | Max Christian Pohle | 2015-11-10 02:59:02 +0100 |
commit | 09ab7308632cd5949dbcc6289aaf095ce9eb09a3 (patch) | |
tree | c74195fcc16f8335fa252a77849658b94ac6d821 | |
parent | d3ff5513b7d7707273a1d47e52832ec1a3aa0005 (diff) | |
download | vim-karlmarks-09ab7308632cd5949dbcc6289aaf095ce9eb09a3.tar.bz2 vim-karlmarks-09ab7308632cd5949dbcc6289aaf095ce9eb09a3.zip |
new vim shortcut and vimrc location
vimrc can resist in ~/.vim/vimrc instead of ~/.vimrc, which looks tidier
-rw-r--r-- | .vim/doc/shortcuts.txt | 8 | ||||
l--------- | .vimrc | 1 |
2 files changed, 8 insertions, 1 deletions
diff --git a/.vim/doc/shortcuts.txt b/.vim/doc/shortcuts.txt index 6b88797..fe61034 100644 --- a/.vim/doc/shortcuts.txt +++ b/.vim/doc/shortcuts.txt | |||
@@ -1,6 +1,7 @@ | |||
1 | [normal mode] | 1 | [normal mode] |
2 | f{char} - move cursor to the character {char} | 2 | f{char} - move cursor to the character {char} |
3 | 3 | ||
4 | |||
4 | [visual mode] - with selected lines | 5 | [visual mode] - with selected lines |
5 | gq - formats text so that it fits in whatever :set textwidth was set | 6 | gq - formats text so that it fits in whatever :set textwidth was set |
6 | 7 | ||
@@ -23,10 +24,16 @@ q - stop macro recording | |||
23 | @a - replay macro a | 24 | @a - replay macro a |
24 | :'<,'>normal @a - apply a to every line in the current selection | 25 | :'<,'>normal @a - apply a to every line in the current selection |
25 | 26 | ||
27 | |||
26 | [marker] | 28 | [marker] |
27 | ma - set marker a-z (a in this case) | 29 | ma - set marker a-z (a in this case) |
28 | 'a - go to marker a | 30 | 'a - go to marker a |
29 | 31 | ||
32 | |||
33 | [hotkeys] | ||
34 | <C-A>, <C-X> - increment, decrement number under the cursor | ||
35 | |||
36 | |||
30 | [windows] | 37 | [windows] |
31 | <C-W>v - splits buffer vertically (screen uses |) | 38 | <C-W>v - splits buffer vertically (screen uses |) |
32 | <C-W>s - splits buffer horizontally (same as screen) | 39 | <C-W>s - splits buffer horizontally (same as screen) |
@@ -39,3 +46,4 @@ do - get changes from other window into the current | |||
39 | dp - put changes from current window into the other | 46 | dp - put changes from current window into the other |
40 | ]c - jump to the next change | 47 | ]c - jump to the next change |
41 | [c - jump to the prevous change | 48 | [c - jump to the prevous change |
49 | |||
@@ -1 +0,0 @@ | |||
1 | .vim/vimrc \ No newline at end of file | ||