aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2015-11-10 02:59:02 +0100
committerMax Christian Pohle2015-11-10 02:59:02 +0100
commit09ab7308632cd5949dbcc6289aaf095ce9eb09a3 (patch)
treec74195fcc16f8335fa252a77849658b94ac6d821
parentd3ff5513b7d7707273a1d47e52832ec1a3aa0005 (diff)
downloadvim-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.txt8
l---------.vimrc1
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]
2f{char} - move cursor to the character {char} 2f{char} - move cursor to the character {char}
3 3
4
4[visual mode] - with selected lines 5[visual mode] - with selected lines
5gq - formats text so that it fits in whatever :set textwidth was set 6gq - 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]
27ma - set marker a-z (a in this case) 29ma - 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
39dp - put changes from current window into the other 46dp - 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
diff --git a/.vimrc b/.vimrc
deleted file mode 120000
index 3f2626c..0000000
--- a/.vimrc
+++ /dev/null
@@ -1 +0,0 @@
1.vim/vimrc \ No newline at end of file
..