aboutsummaryrefslogtreecommitdiff
path: root/.vim/doc
diff options
context:
space:
mode:
authorMax Christian Pohle2015-10-15 09:50:47 +0200
committerMax Christian Pohle2015-10-15 09:50:47 +0200
commitb9469a391087870d700253cc0fc915b08cdb3820 (patch)
tree902967957125071ee1fcacce80a467b7f80275ca /.vim/doc
parent1239c1b8d6929d78cc29bce8bd8b3933a4aebb1b (diff)
parente4a3b3ce20fb6db3590b5065678e39817afe9083 (diff)
downloadvim-karlmarks-b9469a391087870d700253cc0fc915b08cdb3820.tar.bz2
vim-karlmarks-b9469a391087870d700253cc0fc915b08cdb3820.zip
Merge remote-tracking branch 'vim/master'
Diffstat (limited to '.vim/doc')
-rw-r--r--.vim/doc/INSTALL40
-rw-r--r--.vim/doc/coderonline-vim.pngbin0 -> 195172 bytes
-rw-r--r--.vim/doc/readme.md8
-rw-r--r--.vim/doc/shortcuts.txt41
4 files changed, 89 insertions, 0 deletions
diff --git a/.vim/doc/INSTALL b/.vim/doc/INSTALL
new file mode 100644
index 0000000..14fb286
--- /dev/null
+++ b/.vim/doc/INSTALL
@@ -0,0 +1,40 @@
1# INSTALL
2# this should briefly show you how to install this bundle
3#
4# step 1)
5# download the current version using git
6git clone http://git.entwicklerseite.de/vim .vim/
7
8# step 2)
9# create a symbolic link to the downloaded vim.rc in you $HOME-directory
10ln -s .vim/vimrc .vimrc
11
12# step 3)
13# get vim submodules, namely this is just vundle as this will download the rest by itsown
14git submodule update --init --recursive
15
16# step 4)
17# fix errors caused by the different vim version you might be using and define the spell checkers language. Starting Vim will show you which lines are not supported on your vim installation so that you can fix them:
18vim vimrc
19
20# step 5)
21# download spell file for you language
22vim -c ":au! SpellFileMissing"
23
24# step 6)
25# build YouCompleteMe (if you plan to use it)
26cd plugins/YouCompleteMe
27python2 ./install.py --clang-completer
28
29
30# step 7)
31# create an entry in file managers right click menu 'open with' allowing you to open the file in a vim tab
32mkdir -p .local/share/Thunar/sendto/
33cp ~/.vim/gvim-tab.desktop ~/.local/share/Thunar/sendto/
34
35# step 8)
36# add gvim functionality to thunar, so that sendto can be used to open a file in an existing vim instance (as a tab in this case)
37cp ~/.vim/gvim-tab.desktop ~/.local/share/applications/
38update-desktop-database ~/.local/share/applications/
39
40
diff --git a/.vim/doc/coderonline-vim.png b/.vim/doc/coderonline-vim.png
new file mode 100644
index 0000000..ac76bff
--- /dev/null
+++ b/.vim/doc/coderonline-vim.png
Binary files differ
diff --git a/.vim/doc/readme.md b/.vim/doc/readme.md
new file mode 100644
index 0000000..800c1a2
--- /dev/null
+++ b/.vim/doc/readme.md
@@ -0,0 +1,8 @@
1<h1>vim configuration</h1>
2This is the configuration I am using.
3
4
5<h2>coderonline.vim - colorscheme</h2>
6<a href="/vim/plain/doc/coderonline-vim.png">
7 <img src="/vim/plain/doc/coderonline-vim.png" width="720" alt="screenshot of vim" />
8</a>
diff --git a/.vim/doc/shortcuts.txt b/.vim/doc/shortcuts.txt
new file mode 100644
index 0000000..6b88797
--- /dev/null
+++ b/.vim/doc/shortcuts.txt
@@ -0,0 +1,41 @@
1[normal mode]
2f{char} - move cursor to the character {char}
3
4[visual mode] - with selected lines
5gq - formats text so that it fits in whatever :set textwidth was set
6
7
8[commands]
9:spell [word] - adds a word to the current dictionary (no mistake any more)
10:set list - display non printable characters
11:retab - replaces tabs with spaces
12:set expandtab - in insert mode: replace tab with spaces
13
14
15[navigation]
16<CTRL-]> - look up the tag under the cursor (help links as well)
17<CTRL-T> - return back from tag under the cursor
18
19
20[macros] - record and play back a series of vim commands
21qa - start (q) macro recording in register a (can be anything)
22q - stop macro recording
23@a - replay macro a
24:'<,'>normal @a - apply a to every line in the current selection
25
26[marker]
27ma - set marker a-z (a in this case)
28'a - go to marker a
29
30[windows]
31<C-W>v - splits buffer vertically (screen uses |)
32<C-W>s - splits buffer horizontally (same as screen)
33<C-W>w - moves the cursor to the next window and back
34<C-W>[dir] - moves the cursor in that direction (use hjkl or arrow keys)
35
36
37[vimdiff]
38do - get changes from other window into the current
39dp - put changes from current window into the other
40]c - jump to the next change
41[c - jump to the prevous change
..