aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2020-12-27 01:46:33 +0100
committerMax Christian Pohle2020-12-27 01:46:33 +0100
commit9747ae42e4201b0991152d45a604b81c01d3e81c (patch)
tree0017957c8ce35e0579cdaf5634fdd50dfe8c3420
parent785fa78f80e79a72f479a1e7ba2fcebe6151f6ba (diff)
downloadvim-karlmarks-9747ae42e4201b0991152d45a604b81c01d3e81c.tar.bz2
vim-karlmarks-9747ae42e4201b0991152d45a604b81c01d3e81c.zip
Enabled syntax highlighting in READMEHEADmaster
-rw-r--r--README.md47
1 files changed, 29 insertions, 18 deletions
diff --git a/README.md b/README.md
index 1a353ee..3f7231e 100644
--- a/README.md
+++ b/README.md
@@ -18,7 +18,9 @@ always deinstall it again.
18 18
19I recommend you use this in your `~/.vim/vimrc` 19I recommend you use this in your `~/.vim/vimrc`
20 20
21 set signcolumn=yes 21```vim
22set signcolumn=yes
23```
22 24
23because if you set it to `signcolumn=auto` it will flicker when you change 25because if you set it to `signcolumn=auto` it will flicker when you change
24the window. 26the window.
@@ -30,31 +32,37 @@ and extract it inside `~/.vim/pack/coderonline/start/`.
30 32
31### Example 33### Example
32 34
33 mkdir ~/.vim/pack/coderonline/start/ 35```sh
34 cd ~/.vim/pack/coderonline/start/ 36mkdir ~/.vim/pack/coderonline/start/
35 # download plugin in that directory: 37cd ~/.vim/pack/coderonline/start/
36 curl -o vim-karlmarks.zip https://git.entwicklerseite.de/vim-karlmarks/snapshot/vim-karlmarks-master.zip 38# download plugin in that directory:
37 # unzip the zip file 39curl -o vim-karlmarks.zip https://git.entwicklerseite.de/vim-karlmarks/snapshot/vim-karlmarks-master.zip
38 unzip vim-karlmarks.zip 40# unzip the zip file
39 # remove zip file (not needed any more) 41unzip vim-karlmarks.zip
40 rm vim-karlmarks.zip 42# remove zip file (not needed any more)
43rm vim-karlmarks.zip
44```
41 45
42## Configure optional and additional marks 46## Configure optional and additional marks
43 47
44Here comes some inspiration for additional marks you could enable. Some 48Here comes some inspiration for additional marks you could enable. Some
45are potentially disturbing and are not pre-configured for that reason: 49are potentially disturbing and are not pre-configured for that reason:
46 50
47 let g:karlmarks = '"' " position in buffer when left 51```vim
48 let g:karlmarks .= '{}' " start/end paragraph 52let g:karlmarks = '"' " position in buffer when left
49 let g:karlmarks .= '()' " start/end sentence 53let g:karlmarks .= '{}' " start/end paragraph
50 let g:karlmarks .= '[]' " start/end sentence 54let g:karlmarks .= '()' " start/end sentence
51 let g:karlmarks .= '.' " last change 55let g:karlmarks .= '[]' " start/end sentence
52 let g:karlmarks .= "^" " insert mode stopped 56let g:karlmarks .= '.' " last change
53 let g:karlmarks .= "'`" 57let g:karlmarks .= "^" " insert mode stopped
58let g:karlmarks .= "'`"
59```
54 60
55but the `g_karlmarks` setting defaults to 61but the `g_karlmarks` setting defaults to
56 62
57 let g:karlmarks = "<>" 63```vim
64let g:karlmarks = "<>"
65```
58 66
59to allow easier modification of the last selected block, e.g. reposition the 67to allow easier modification of the last selected block, e.g. reposition the
60start of the block with `m<` and use `gv` to show the new selection. 68start of the block with `m<` and use `gv` to show the new selection.
@@ -66,5 +74,8 @@ Remove the folder `~/.vim/pack/coderonline/start/vim-karlmarks` (if you named
66it as suggested in the Installation section) 74it as suggested in the Installation section)
67 75
68### Exmaple 76### Exmaple
69 rm -irv ~/.vim/pack/coderonline/start/vim-karlmarks 77
78```sh
79rm -irv ~/.vim/pack/coderonline/start/vim-karlmarks
80```
70 81
..