From c2a13ef3f498d90fb9f46b830e14c31156635676 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Mon, 9 May 2016 17:00:35 +0200 Subject: moved repository up again this repo shell be used for vim exclusively --- doc/INSTALL | 42 ++++++++++++++++++++++++++++++++++++++++ doc/coderonline-vim.png | Bin 0 -> 195172 bytes doc/readme.md | 8 ++++++++ doc/shortcuts.txt | 50 ++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 100 insertions(+) create mode 100644 doc/INSTALL create mode 100644 doc/coderonline-vim.png create mode 100644 doc/readme.md create mode 100644 doc/shortcuts.txt (limited to 'doc') diff --git a/doc/INSTALL b/doc/INSTALL new file mode 100644 index 0000000..50a2f08 --- /dev/null +++ b/doc/INSTALL @@ -0,0 +1,42 @@ +# INSTALL +# this should briefly show you how to install this bundle +# +# step 1) +# download the current version using git +git clone http://git.entwicklerseite.de/vim .vim/ + +# step 2) +# create a symbolic link to the downloaded vim.rc in you $HOME-directory +ln -s .vim/vimrc .vimrc + +# step 3) +# get vim submodules, namely this is just vundle as this will download the rest by itsown +git submodule update --init --recursive + +# step 4) +# 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: +vim vimrc + +# step 5) +# download plugins and spell file for your language +vim -c ":VundleUpdate" +vim -c ":set spell" +# vim +set\ spell # < maybe that works as well + +# step 6) +# build YouCompleteMe (if you plan to use it) +cd plugins/YouCompleteMe +python2 ./install.py --clang-completer + + +# step 7) +# create an entry in file managers right click menu 'open with' allowing you to open the file in a vim tab +mkdir -p .local/share/Thunar/sendto/ +cp ~/.vim/gvim-tab.desktop ~/.local/share/Thunar/sendto/ + +# step 8) +# 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) +cp ~/.vim/gvim-tab.desktop ~/.local/share/applications/ +update-desktop-database ~/.local/share/applications/ + + diff --git a/doc/coderonline-vim.png b/doc/coderonline-vim.png new file mode 100644 index 0000000..ac76bff Binary files /dev/null and b/doc/coderonline-vim.png differ diff --git a/doc/readme.md b/doc/readme.md new file mode 100644 index 0000000..800c1a2 --- /dev/null +++ b/doc/readme.md @@ -0,0 +1,8 @@ +

vim configuration

+This is the configuration I am using. + + +

coderonline.vim - colorscheme

+ + screenshot of vim + diff --git a/doc/shortcuts.txt b/doc/shortcuts.txt new file mode 100644 index 0000000..9c168f9 --- /dev/null +++ b/doc/shortcuts.txt @@ -0,0 +1,50 @@ +[normal mode] +f{char} - move cursor to the character {char} + + +[visual mode] - with selected lines +gq - formats text so that it fits in whatever :set textwidth was set +iB - select block between curly braces (:help object-select) + + +[commands] +:spell [word] - adds a word to the current dictionary (no mistake any more) +:set list - display non printable characters +:retab - replaces tabs with spaces +:set expandtab - in insert mode: replace tab with spaces + + +[navigation] + - look up the tag under the cursor (help links as well) + - return back from tag under the cursor + + +[macros] - record and play back a series of vim commands +qa - start (q) macro recording in register a (can be anything) +q - stop macro recording +@a - replay macro a +:'<,'>normal @a - apply a to every line in the current selection + + +[marker] +ma - set marker a-z (a in this case) +'a - go to marker a + + +[hotkeys] +, - increment, decrement number under the cursor + + +[windows] +v - splits buffer vertically (screen uses |) +s - splits buffer horizontally (same as screen) +w - moves the cursor to the next window and back +[dir] - moves the cursor in that direction (use hjkl or arrow keys) + + +[vimdiff] +do - get changes from other window into the current +dp - put changes from current window into the other +]c - jump to the next change +[c - jump to the prevous change +zR - opens all folds (unfold all) -- cgit v1.2.3